Rob Atkinson a écrit :
> wouldnt
> 
> getCode(authority:URN)
> 
> be more flexible, and potentially allow future plugin of authority handling.
> 
> there is nothing fundamentally special about EPSG from a programmatic sense.

Note that there is already a method doing this kind of job, but I admit that it
is not in an obvious place:

AbstractIdentifiedObject.getIdentifier(IdentifiedObject crs, Citation 
authority);

As as see things, Justin method could be a wrapper for the above with the
following additional conveniences:

- Hard coded EPSG value for the "authority" argument just because it is
  a common one

- Returns the identifier as an Integer instead of a String, which is applicable
  to the EPSG authority but not necessarly to other authorities.

        Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to