[Gdal-dev] GML in gdal1.3

sergio andres perez navaez nerwolf at yahoo.es
Thu Aug 25 13:49:36 EDT 2005


I built my Gdal 1.3 with Xerces 2.6 

I have download GML files of Catalonia in
http://www.geoportal-idec.net. the files start like
this:

--------------
----------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection
xmlns:wfs="http://www.geoportal-idec.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.geoportal-idec.net/wfs
Comarques.xsd">
<gml:boundedBy>
<gml:Box
srsName="EPSG:23031"><gml:coordinates>260422.092189937,4488999.69
527466.55,4748098.29</gml:coordinates></gml:Box>
</gml:boundedBy>
<gml:featureMember>
<wfs:comp_polygon>
<wfs:AREA>632964864.50882</wfs:AREA>
<wfs:PERIMETER>122696.14333</wfs:PERIMETER>
<wfs:COMARCA_>1</wfs:COMARCA_>
<wfs:COMARCA_ID>1</wfs:COMARCA_ID>
<wfs:COMARCA>39</wfs:COMARCA>
<wfs:COM1252>Val d'Aran</wfs:COM1252>
<wfs:CCOM1252>Vielha</wfs:CCOM1252>
<wfs:COM7BIT>Val d'Aran</wfs:COM7BIT>
<wfs:CCOM7BIT>Vielha</wfs:CCOM7BIT>
<wfs:COM850>Val d'Aran</wfs:COM850>
<wfs:CCOM850>Vielha</wfs:CCOM850>
<wfs:COM437>Val d'Aran</wfs:COM437>
<wfs:CCOM437>Vielha</wfs:CCOM437>
<gml:polygonProperty>
<gml:Polygon srsName="EPSG:23031">
<gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>317077.25,4720209.01
316128.18,4720368.32 315294.42,4720616.93
314859.54,4720481.07 313591.4,4720806.06
329021.31,4718852.89
328547.29,4719565.53 320719.96,4720864.02
320160.89,4721058.58 318996.07,4720613.67
317077.25,4720209.01</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonProperty>
</wfs:comp_polygon>
</gml:featureMember>
<gml:featureMember>
<wfs:comp_polygon>
<wfs:AREA>425690990.17148</wfs:AREA>
<wfs:PERIMETER>129579.79274</wfs:PERIMETER>
<wfs:COMARCA_>2</wfs:COMARCA_>
.................
..............

when I do ogr2ogr -f "GML" of this format i lost all
of the wfs atributes. Ogr2ogr can eat <wfs:...>. I'm
connecting to Intenet and I have all of the .xsd
files.    

Can you help me? If I change wfs: to wfs_ works , but
i prefer not to change it. 

Thank you


	

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.es 



More information about the Gdal-dev mailing list