Thanks, Stefan, I tried it but it didn't help! (I wonder what the 2.5D option is for since the output seems to default to 2.5D) /Kai
-----Ursprungligt meddelande----- Från: Stefan Keller [mailto:[EMAIL PROTECTED] Skickat: den 29 september 2008 20:24 Till: Zimmerl Kai Kopia: [email protected] Ämne: Re: [gdal-dev] ogr2ogr: How can I get GML output file in 2D? There is an option for 2.5D ("-nlt polygon25d"), so you can try to add parameter "-nlt polygon". -- Stefan 2008/9/25 <[EMAIL PROTECTED]>: > Hi! > > I tried to use ogr2ogr to reproject/transform a gml file from epsg: 3021 to > epsg:4326 but I get the output file in 2,5D (z=0) even though both epsg: 3021 > and epsg:4326 are 2D. > > I need to have the result in 2D (with only x,y values). > > I use FWTools2.2.6 and the command line: ogr2ogr -t_srs EPSG:4326 > -s_srs EPSG:3021 -f GML Output.gml Input.gml My input file content is > attached below. > > Is there a solution to this? > > Best Regards > Kai Zimmerl > > > <?xml version="1.0" encoding="UTF-8" standalone="no"?><g:TATUKGIS > xmlns:gml="http://www.opengis.net/gml" > xmlns:g="http://www.tatukgis.com/GML" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/gml feature.xsd > http://www.tatukgis.com/GML > DispersionResult.xsd"><gml:description>Geographic Markup Language > (GML)</gml:description><gml:name>Layer</gml:name><gml:boundedBy><gml:B > ox><gml:coordinates>1623780.59514724,6580981.45879942 > 1627316.12905318,6583481.45879942</gml:coordinates></gml:Box></gml:bou > ndedBy><gml:featureMember><g:PROPERTIES > fid="UID.1"><g:CONC>17,6</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FF1E90 > FF</g:COLOR><g:LEGEND> > ERPG-1 (17,5 > mg/mł)</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:Li > nearRing><gml:coordinates>1625548.36210021,6580981.45879942 > 1623780.59514724,6583481.45879942 1627316.12905318,6583481.45879942 > 1625548.36210021,6580981.45879942</gml:coordinates></gml:LinearRing></ > gml:outerBoundaryIs></gml:Polygon></g:GEOMETRY></g:PROPERTIES></gml:fe > atureMember><gml:featureMember><g:PROPERTIES > fid="UID.2"><g:CONC>61,25</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FF1E9 > 0FF</g:COLOR><g:LEGEND> > ERPG-1 (17,5 > mg/mł)</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:Li > nearRing><gml:coordinates>1625548.36210021,6580981.45879942 > 1624369.85079823,6583064.79213275 1626726.87340219,6583064.79213275 > 1625548.36210021,6580981.45879942</gml:coordinates></gml:LinearRing></ > gml:outerBoundaryIs></gml:Polygon></g:GEOMETRY></g:PROPERTIES></gml:fe > atureMember><gml:featureMember><g:PROPERTIES > fid="UID.3"><g:CONC>105,1</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FFFFF > F00</g:COLOR><g:LEGEND> > ERPG-2 (105 > mg/mł)</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:Li > nearRing><gml:coordinates>1625548.36210021,6580981.45879942 > 1624664.47862373,6582767.17308513 1626432.24557669,6582767.17308513 > 1625548.36210021,6580981.45879942</gml:coordinates></gml:LinearRing></ > gml:outerBoundaryIs></gml:Polygon></g:GEOMETRY></g:PROPERTIES></gml:fe > atureMember><gml:featureMember><g:PROPERTIES > fid="UID.4"><g:CONC>157,5</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FFFFF > F00</g:COLOR><g:LEGEND> > ERPG-2 (105 > mg/mł)</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:Li > nearRing><gml:coordinates>1625548.36210021,6580981.45879942 > 1624959.10644922,6582496.61031457 1626137.6177512,6582496.61031457 > 1625548.36210021,6580981.45879942</gml:coordinates></gml:LinearRing></ > gml:outerBoundaryIs></gml:Polygon></g:GEOMETRY></g:PROPERTIES></gml:fe > atureMember><gml:featureMember><g:PROPERTIES > fid="UID.5"><g:CONC>210,1</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FFFF4 > 500</g:COLOR><g:LEGEND> > > IDLH</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:Line > arRing><gml:coordinates>1625548.36210021,6580981.45879942 > 1625106.42036197,6582231.45879942 1625990.30383845,6582231.45879942 > 1625548.36210021,6580981.45879942</gml:coordinates></gml:LinearRing></ > gml:outerBoundaryIs></gml:Polygon></g:GEOMETRY></g:PROPERTIES></gml:fe > atureMember></g:TATUKGIS> > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
