gfs output in Maserver 4.5 using gdal1.2.5

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Tue Mar 8 15:47:48 EST 2005


Hi There,

  I was just testing the wfs output and came accross an issue that I do
not really understand.  The wfs get feature request produces a gml and a
gfs file.  In Mapserver 4.4.X (using gdal1-2.5), the gfs contains
attribute informations (<PropertyDefn>) . In Mapserver 4.5 (gdal1.2.5),
the attributes informations are not included in the file.

  Does anyone has a quick explanation on this ? I am using the same test
map file in both cases.

Thanks,


  Here is an example of a gfs produced in 4.4 :

   <GMLFeatureClassList>
   <GMLFeatureClass>
     <Name>popplace</Name>
     <ElementPath>popplace</ElementPath>
     <DatasetSpecificInfo>
       <FeatureCount>28</FeatureCount>
       <ExtentXMin>2279399.00000</ExtentXMin>
       <ExtentXMax>2600377.00000</ExtentXMax>
       <ExtentYMin>-55344.50391</ExtentYMin>
       <ExtentYMax>461586.81250</ExtentYMax>
     </DatasetSpecificInfo>
     <PropertyDefn>
       <Name>AREA</Name>
       <ElementPath>AREA</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>PERIMETER</Name>
       <ElementPath>PERIMETER</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>POPPLACE_</Name>
       <ElementPath>POPPLACE_</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>POPPLACE_I</Name>
       <ElementPath>POPPLACE_I</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>UNIQUE_KEY</Name>
       <ElementPath>UNIQUE_KEY</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>NAME</Name>
       <ElementPath>NAME</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>NAME_E</Name>
       <ElementPath>NAME_E</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>NAME_F</Name>
       <ElementPath>NAME_F</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>UNIQUE_K_1</Name>
       <ElementPath>UNIQUE_K_1</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>UNIQUE_K_2</Name>
       <ElementPath>UNIQUE_K_2</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>REG_CODE</Name>
       <ElementPath>REG_CODE</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>NTS50</Name>
       <ElementPath>NTS50</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>LAT</Name>
       <ElementPath>LAT</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>LONG</Name>
       <ElementPath>LONG</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>SGC_CODE</Name>
       <ElementPath>SGC_CODE</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>CAPITAL</Name>
       <ElementPath>CAPITAL</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
     <PropertyDefn>
       <Name>POP_RANGE</Name>
       <ElementPath>POP_RANGE</ElementPath>
       <Type>String</Type>
     </PropertyDefn>
   </GMLFeatureClass>
</GMLFeatureClassList>

  The 4.5 gfs for the same data/map is :

  GMLFeatureClassList>
   <GMLFeatureClass>
     <Name>popplace</Name>
     <ElementPath>popplace</ElementPath>
     <DatasetSpecificInfo>
       <FeatureCount>28</FeatureCount>
       <ExtentXMin>2279399.00000</ExtentXMin>
       <ExtentXMax>2600377.00000</ExtentXMax>
       <ExtentYMin>-55344.50391</ExtentYMin>
       <ExtentYMax>461586.81250</ExtentYMax>
     </DatasetSpecificInfo>
   </GMLFeatureClass>
</GMLFeatureClassList>

--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-dev mailing list