Justin Deoliveira a écrit :
> As part of my ows4 work I need to support CRS codes with both styles:
> 
> EPSG:4326
> urn:x-ogc:def:crs:EPSG:6.11.2:4326

This is GEOT-859:

http://jira.codehaus.org/browse/GEOT-859


> I remember this coming up in IRC at one time, but i cant quite remember
> what was needed to implement it. I am not all that familiar with this
> part of the code base but does it boil down to implementing an new
> authority factory. Or perhaps modifying an existing one so it can handle
> strings in the urn syntax.

The anoying thing in this URN syntax is the version number. There is no 
mechanism in Geotools at this time for connecting to a specific version of EPSG 
database.

If we choose to ignore the vesion number, I think that the easiest way is to 
create a new factory in the org.geotools.referencing.factory package (probably 
an AuthorityFactoryAdapter subclass), registered under the "urn:ogc:def:crs" 
authority name, which trim the "urn:ogc:def:crs" part and pass the remaining 
(minus the version number) to the EPSG authority factory (specified at the 
AuthorityFactoryAdapter construction time).

If we want to take the version number in account, it may be better to think 
about it right now since I'm not sure that the approach would be the same...

        Martin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to