[GRASS-dev] problem with reading KML

Helmut Kudrnovsky hellik at web.de
Mon Feb 5 10:20:16 PST 2018


Helmut Kudrnovsky wrote
> trying 
> 
> ogr2ogr -f KML ogr2ogr_flight.kml attachment-0001.kml
> Warning 1: Layer name 'Flight 1' adjusted to 'Flight_1' for XML validity.
> Warning 1: The output driver does not natively support DateTime type for
> field timestamp. Misconversion can happen. -mapFieldType can be used to
> control field type conversion.
> Warning 1: The output driver does not natively support DateTime type for
> field begin. Misconversion can happen. -mapFieldType can be used to
> control
> field type conversion.
> Warning 1: The output driver does not natively support DateTime type for
> field end. Misconversion can happen. -mapFieldType can be used to control
> field type conversion.
> ERROR 1: Latitude 121.723811 is invalid. Valid range is [-90,90]. This
> warning will not be issued any more
> Warning 1: Longitude 191.180111 has been modified to fit into range
> [-180,180]. This warning will not be issued any more
> 
> it seems to be an ogr2ogr/gdal issue as altitude 121.7238106567 is handled
> as Longitude .

trying the ogr2ogr libkml driver:

ogr2ogr -f libkml test.kml attachment-0001.kml

test.kml
<-----------------------------------
 [...]         
            <coordinates>
            -78.6923748875,35.7235439266,99.9306106567
            35.7239171513,121.7238106567,35.7246767788 <==!!
            150.1845106567,0,35.7253095533
            177.9213106567,0,35.7258927098
            -168.8198893433,0,35.7259360254
            -166.3052893433,0,35.7253638697
            -164.6669893433,0,35.7247474817
            -162.1142893433,0,35.7240815902
            -162.5333893433,0,35.7234947668
            -163.0667893433,0,35.7229379664
            -162.0761893433,0,0
          </coordinates>
 [...] 
----------------------------------->

not sure which driver is used in v.in.ogr




-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


More information about the grass-dev mailing list