[Gdal-dev] Usin OGR and GML with files of http://www.geoportal-idec.net/wfs

sergio andres perez navaez nerwolf at yahoo.es
Thu Aug 25 12:55:37 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
312537.18,4721380.89 311505.56,4722107.54
311404.91,4724097.31 311143.18,4725761.2
310533.54,4726150.76 309942.27,4726797.58
309368.77,4728254.61 308906.92,4728427.1
308409.21,4729349.81 308881.43,4729285.73
309062.722726946,4729162.95504505 309684.75,4729302.22
309557.73,4729928.62 309846.33,4730680.54
310302.32,4731306.25 309586.01,4732522.82
310144.06,4732888.18 309679.44,4733601.67
309410.91,4733742.56 309120.85,4734511.59
309145.35,4734601.18 308835.12,4735140.49
308859.2,4735843.54 308349.79,4736154.99
306850.25,4736409.43 307843.94,4737476.88
308480.38,4738026.85 309196.63,4738531.01
308469.01,4738890.12 307665.36,4739529.1
308078.27,4740079.81 308642.55,4741101.07
309555.16,4741724.57 309456.87,4742558.58
309226,4743324.07 309531.05,4744257.86
309440.29,4744357.47 309038.81,4744668.04
308787.49,4745676.36 310118.86,4746562.93
310363.24,4747445.11 311109.89,4747560.09
312741.84,4748098.29 313455.53,4747914.19
313826.07,4747983.22 314751.32,4747409.2
315101.36,4746665.19 317122.75,4746008.47
318004.34,4745457.54 318890.73,4745274.03
319860.92,4745541.8 320639.2,4745578.13
322813.35,4744365.58 323583.05,4744299.59
324975.85,4743962.64 326070.88,4742760.3
326587.86,4742637.55 327935.41,4741782.56
328787.43,4741103.16 329258.57,4740555.02
329782.5,4740220.2 330865.06,4739629.76
331204.2,4739601.47 331336.17,4740222.43
332047.17,4740804.87 333243.25,4741428.87
333812.723099468,4741041.86148034 334060.68,4740685.57
334609.598111436,4740315.29896943 334717.61,4739851.73
335148.660619532,4739307.48645429 335558.72,4739173.79
336927.61,4739712.99 338711.9,4739092.96
339589.24,4739124.24 339349.89,4738456.74
338833.42,4737544.02 338847.11,4736585.42
338740.72,4735946.67 339099.51,4735825.31
338965.37,4735476.9 338679.9,4733953.77
338586.87,4733098.18 338074.64,4732488.05
338581.75,4731002.85 337386.89,4730666.81
336798.51,4731077.87 335945.95,4730047.98
334762.41,4729615.15 334150.98,4728808.79
335169.89,4727769.05 334763.56,4727109.9
334021.08,4724183.95 333873.76,4724164.85
333594.19,4723024.44 333183.8,4722303.41
332932.05,4721526.89 332702.9,4721162.19
333012.81,4720379.59 333494,4720301.61
333196.98,4718981.11 332185.19,4718753.81
332106.71,4717943.53 331374.39,4717441.16
330884.3,4717476.24 330005.33,4717656.35
329182.59,4718148.39 329021.31,4718852.89
328547.29,4719565.53 327890.83,4719871
327402.9,4720022.82 327354.64,4720137.09
327365.23,4720473.45 327514.14,4720821.97
327589.85,4721364.41 327189.9,4721696.44
326501.82,4722007.93 325996.98,4722360.27
325709.69,4721635.62 324351.54,4721138.13
323736.98,4720703.33 323278.54,4720125.43
322584.88,4719710.9 321775.49,4719416.44
321355.59,4720280.78 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


	
	
		
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es



More information about the Gdal-dev mailing list