Anna Petrášová wrote > Hi, > > I ran into a weird problem with KML with 3D line, v.import failed when > reprojecting it: > > WARNING: pj_transform() failed: latitude or longitude exceeded limits > > This happened with GRASS 7.4.0 64bit (GDAL 2.2.3) on Windows 10, on my > Ubuntu with latest GRASS it works (GDAL 2.2.1). Weird thing is that I > installed the same version of GRASS on Windows 10 virtual machine and > there it worked without problems. > > this is the output of ogrinfo - apparently it is confused with the > geometry and misinterprets the coordinates: > > > C:\Users\akratoc\Downloads>ogrinfo -al -so Vincent_Sarah_Flight1.kml > INFO: Open of `Vincent_Sarah_Flight1.kml' > using driver `LIBKML' successful. > > Layer name: Flight 1 > Geometry: Unknown (any) > Feature Count: 1 > Extent: (-78.692375, 0.000000) - (201.124211, 121.723811) > Layer SRS WKT: > ... > > The KML itself looks good to me, I attached a smaller version of it. > Anyone has experience with 3D KML? Maybe some GDAL trick is needed?
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 . ----- best regards Helmut -- Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html _______________________________________________ grass-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-dev
