Opened 11 years ago

Closed 11 years ago

Last modified 11 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:


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 11 years ago.
set_srs_from_OGC_URLs_test.patch (914 bytes ) - added by misev 11 years ago.

Download all attachments as: .zip

Change History (6)

by misev, 11 years ago

Attachment: set_srs_from_OGC_URLs.patch added

comment:1 by misev, 11 years ago


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, 11 years ago

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, 11 years ago

Thanks for the fixes. The document is at (seems like it's not yet published on the website)

comment:4 by misev, 11 years ago

An older document which also specifies the URL identifiers in addition to the URN is [ 09-048r3]

Note: See TracTickets for help on using tickets.