[gdal-dev] ogr2ogr: How can I get GML output file in 2D?
Stefan Keller
sfkeller at gmail.com
Mon Sep 29 14:24:19 EDT 2008
There is an option for 2.5D ("-nlt polygon25d"), so you can try to add
parameter "-nlt polygon".
-- Stefan
2008/9/25 <kai.zimmerl at srv.se>:
> 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:Box><gml:coordinates>1623780.59514724,6580981.45879942 1627316.12905318,6583481.45879942</gml:coordinates></gml:Box></gml:boundedBy><gml:featureMember><g:PROPERTIES fid="UID.1"><g:CONC>17,6</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FF1E90FF</g:COLOR><g:LEGEND> > ERPG-1 (17,5 mg/mł)</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><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:featureMember><gml:featureMember><g:PROPERTIES fid="UID.2"><g:CONC>61,25</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FF1E90FF</g:COLOR><g:LEGEND> > ERPG-1 (17,5 mg/mł)</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><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:featureMember><gml:featureMember><g:PROPERTIES fid="UID.3"><g:CONC>105,1</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FFFFFF00</g:COLOR><g:LEGEND> > ERPG-2 (105 mg/mł)</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><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:featureMember><gml:featureMember><g:PROPERTIES fid="UID.4"><g:CONC>157,5</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FFFFFF00</g:COLOR><g:LEGEND> > ERPG-2 (105 mg/mł)</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><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:featureMember><gml:featureMember><g:PROPERTIES fid="UID.5"><g:CONC>210,1</g:CONC><g:UNIT>mg/mł</g:UNIT><g:COLOR>FFFF4500</g:COLOR><g:LEGEND> > IDLH</g:LEGEND><g:GEOMETRY><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><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:featureMember></g:TATUKGIS>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list