Start a new topic

900_ExtImagery

Hi


Can the CDB_API read the dataset 900_ExtImagery from Yemen CDB 3.2 ?


I know it's an extended dataset but getFileParameters() return false when trying to read it.


Patrick



Hi Patrick,


Yes, CDB API is able to read extended dataset given that you provide the definition in a "CDB enhancement file". In the case of the dataset 900, Presagis provides the enhancement file with its delivered products.


The content is:


<?xml version="1.0" encoding="UTF-8"?>

<CDB name="DatasetExtension" version="1.0">

 <DATASETDIR code="900" topdir="Tiles" dir="900_ExtImagery"/>

 <DATASET code="900" type="Raster">

  <ENCODING name="Directory" Lat="true" Lon="true" Dataset="true" Subset="false" SubsetIdx="false" LOD="true" URef="true" RRef="false" FACC="false" FSC="false" MODL="false" MipMap="false" Texture="false" Filename="false" EntityType="false" Format=""/>

  <ENCODING name="Filename" Lat="true" Lon="true" Dataset="true" Subset="true" SubsetIdx="true" LOD="true" URef="true" RRef="true" FACC="false" FSC="false" MODL="false" MipMap="false" Texture="false" Filename="false" EntityType="false" Format=".jp2"/>

  <ENCODING name="Archive" Lat="false" Lon="false" Dataset="false" Subset="false" SubsetIdx="false" LOD="false" URef="false" RRef="false" FACC="false" FSC="false" MODL="false" MipMap="false" Texture="false" Filename="false" EntityType="false" Format=""/>

 </DATASET>

</CDB>


Read the CDB API documentation to know how to provide the extension files upon open of the CDB in your code.


Regards,


Herm


1 person likes this

So I am passing the xml you gave me to cdb.initialize(extension_array, 1) (where extension_array[0] is the path of the xml file) and I get the error "The operation is not allowed by the available license (20001000)" . Is this expected ?


also FYI in the doc they say "CDB API: CDB API: CdbDB Class Reference

CDB Enhancements are XML documents; they must conform to the schema provided with the CDB API, see CdbEnhancement.xsd in the doc folder"  the file is not in the CDB 2.1 API installation.

I did not find other documentation describing the xml structure or how to use it. Am I looking at the right place ????

Pat


Hi Patrick,


Custom dataset require the pro version of the CDB API. CDB API page (ref Read/Write CDB custom extension datasets)


You can acquire the license key to unlock this capability at low cost by contacting Presagis.


Regards,


Herm

thanks


Login to post a comment