Farrukh Najmi wrote:
> I am unclear on how DefaultGeographicCRS implementation of 
> CoordinateReferenceSystem works and whether what I am observing is 
> correct behavior.
>
> I have the following code:
>
>                 String srsName = "urn:ogc:def:crs:EPSG:6.0:4277";
>                 CoordinateReferenceSystem crs = CRS.decode(srsName);
>                 String srsName1 = crs.getName().toString();
>
> What I was expecting is that srsName1 would be the same as srsName that 
> was used to create the CoordinateReferenceSystem. What I am observing is 
> that srsName1 is "EPSG:OSGB 1936".
>   
The CoordinateReferenceSystem objects are actually known by many 
different names; try going through the set of identifiers to see the 
information you want.
> Why is the behavior the way it is? Where in a CoordinateReferenceSystem 
> instance can I find the name that was used to decode the 
> CoordinateReferenceSystem?
>   
I am not sure you can in all cases. The CoordinateReferneceSystems have 
a strict formal definition (the formal definition for the one you refer 
to above is provided by the European Petroleum Standards Group in 
version 6.0 of an Access database they publish.

That was fine for lookup.

When we actually get the definition the it is expressed in terms 
provided by the EPSG; and they don't really care about making their 
codes and names unique for all time. They only need their codes to be 
unique within version 6.0 of their database.

I hope this helps?

I think I added some post process code that sticks the 
RefernecedIdentifier used for lookup into the set of identifiers for the 
CoordinateReferenceSystem; if you can check the set of identifiers you 
may find the information you are looking for. Please note that if the 
EPSG organization has not changed its mind the same definition may be 
available in version 5.0 and version 6.0 etc... of the database; and for 
common codes like "EPSG:4326" you will find they are defined in exactly 
the same fashion by other organizations as well.

Including GeoTools; DefaultGeographicCRS.WGS84 the constant should have 
a similar definition to "EPSG:4326".

Jody

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

Reply via email to