Ticket #2093 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

KML & GPX drivers may output invalid coordinates

Reported by: rouault Assigned to: warmerdam
Priority: normal Milestone: 1.5.0
Component: OGR_SF Version: unspecified
Severity: normal Keywords: kml gpx
Cc:

Description

'winkey' has a raster dataset whose longitudes maps from 0 to 360, and uses it with GDALContourGenerate to output KML. The KML driver writes longitudes above 180, which is invalid according to the KML specification. The KML driver should probably output error message when fed with invalid coordinates.

Change History

12/16/07 16:35:02 changed by rouault

  • keywords changed from kml to kml gpx.
  • summary changed from KML driver may output invalid coordinates to KML & GPX drivers may output invalid coordinates.

In fact, it's also the case for the GPX driver, and maybe other OGR drivers.

12/17/07 15:37:10 changed by rouault

Fix commited for the GPX driver in r13357. Longitude are wrapped to fit into [-180,180]. CPLError(CE_Failure, ....) emitted if latitude outside [-90,90].

12/17/07 15:51:04 changed by rouault

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 1.5.0.

Similar fix commited for the KML driver in r13358