Ticket #1906 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

GMLJP2 sometimes has srsName only on boundedBy.Envelope

Reported by: warmerdam Assigned to: warmerdam
Priority: normal Milestone: 1.4.3
Component: GDAL_Raster Version: 1.4.2
Severity: normal Keywords: jp2kak gmljp2
Cc: gaopeng

Description

some jpeg2000 files with gmljp2 coordinate system information only place the srsName on the boundedBy.Envelope object, not on the rectified grids origin and offset vectors as GDAL expects.

A small dummied up example is attached.

Attachments

ll.jp2 (28.1 kB) - added by warmerdam on 10/12/07 21:39:24.
Small file demonstrating issue.

Change History

10/12/07 21:39:24 changed by warmerdam

  • attachment ll.jp2 added.

Small file demonstrating issue.

10/12/07 21:43:35 changed by warmerdam

  • status changed from new to assigned.

gdaljp2metadata.cpp code modified to search for boundedBy.Envelope to use as srsName source if other srsName sources not found.

Also had to restructure the urn handling a bit (to use OGRSpatialReference.importFromURN()) because this sample uses urn:x-ogc instead of urn:ogc.

A test script was added with the dummied up file (r12387).

Fixed applied in trunk (r12388).

10/12/07 21:48:57 changed by warmerdam

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed ported into 1.4 branch as r12389.

10/13/07 00:24:59 changed by warmerdam

Fixed in 1.4-esri branch as r12395.