Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1906 closed defect (fixed)

GMLJP2 sometimes has srsName only on boundedBy.Envelope

Reported by: warmerdam Owned by: 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 (1)

ll.jp2 (28.1 KB ) - added by warmerdam 17 years ago.
Small file demonstrating issue.

Download all attachments as: .zip

Change History (4)

by warmerdam, 17 years ago

Attachment: ll.jp2 added

Small file demonstrating issue.

comment:1 by warmerdam, 17 years ago

Status: newassigned

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).

comment:2 by warmerdam, 17 years ago

Resolution: fixed
Status: assignedclosed

Fixed ported into 1.4 branch as r12389.

comment:3 by warmerdam, 17 years ago

Fixed in 1.4-esri branch as r12395.

Note: See TracTickets for help on using tickets.