|
From: Martin D. <mar...@te...> - 2004-07-14 08:51:09
|
Bryce L Nordgren a =E9crit :
> Stage 2: Write a "CoordinateSystemAntiAuthorityFactory" which takes a
> coordinate system and returns the registration code and authority name.
> Suggest a better name for this if you're concerned. :)
Some observations:
* Using CoordinateReferenceSystem (the GeoAPI replacement for
CoordinateSystem), it is possible to just invoke 'getIdentifiers()'
in order to get the EPSG identifier, providing it was specified at
the CRS creation time.
* Otherwise, I guess there is two possible approachs:
- "CoordinateSystemAntiAuthorityFactory" search in the EPSG database
for all CRS attributes like the coordinate system axis, the datum,
etc. It may be a difficult task and would probably requires one
anti-authority factory for each authority factory.
- "CoordinateSystemAntiAuthorityFactory" just contains a poll of
well-know CRS with their identifiers, in which case the problem is
much easier but also has more limited capabilities.
Martin.
|