Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4752 closed enhancement (fixed)

Set spatial reference from OGC URLs

Reported by: misev Owned by: warmerdam
Priority: normal Milestone: 1.10.0
Component: OGR_SRS Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

Currently it is possible to set the SRS from OGC URNs (which are deprecated in OGC), but not from OGC URLs (OGC best practice document 11-135). The attached patch adds support for such URL identifiers.

Attachments (2)

set_srs_from_OGC_URLs.patch (8.6 KB ) - added by misev 10 years ago.
set_srs_from_OGC_URLs_test.patch (914 bytes ) - added by misev 10 years ago.

Download all attachments as: .zip

Change History (6)

by misev, 10 years ago

Attachment: set_srs_from_OGC_URLs.patch added

comment:1 by misev, 10 years ago

Milestone: 2.0.01.9.2

Couldn't figure how to run the tests against my build of gdal, but attachment:set_srs_from_OGC_URLs_test.patch adds a test that should verify the changes.

comment:2 by Even Rouault, 10 years ago

Milestone: 1.9.22.0.0
Resolution: fixed
Status: newclosed

I've lightly adapted your patch to reuse the existing importFromURNPart(), and fix the memory leak of pszComponentUrl. But I couldn't find on the OGC website the 11-135 document. Do you have a link to it ?

r24689 /trunk/ (3 files in 2 dirs): OSR: add support for OGC URLs (patch by misev, #4752)

comment:3 by misev, 10 years ago

Thanks for the fixes. The document is at https://portal.opengeospatial.org/files/?artifact_id=45128 (seems like it's not yet published on the website)

comment:4 by misev, 10 years ago

An older document which also specifies the URL identifiers in addition to the URN is [portal.opengeospatial.org/files/37802 09-048r3]

Note: See TracTickets for help on using tickets.