A note to Jesse, I would prefer it if udig showed a warning dialog (or
something easier to see than a logged message) to tell users that you
are not preforming any datum shifts and that this may be a bad thing.
That way they will not wonder as much why their roads are 200 m from
where they expect them to be.
Rueben
I agree rueben, although nothing as annoying as a dialog. Each layer
has various decorations one being a warning. if you click on the layer
a message appears in the status line explaining what the warning or
error is about. The getPositionalAccuracy should be able to provide
enough information to set that warning.
On Mon, 2005-25-04 at 21:06 +1100, Martin Desruisseaux wrote:
What about the following algorithm? Could it work?
1) If the CRS contains an authority element, uses the authority
code for loading the full CRS from the database.
2) Otherwise, search a datum or CRS with the same name in the
EPSG database. Alias are compared. If a match is found, returns
the full CRS or datum.
3) Otherwise, if and only if the datum name is "unknow", be lenient
on datum shift (just log a warning instead of throwing an exception).
3) Otherwise (if the datum name is not "unknow"), throws the usual
exception.
Martin.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Geotools-devel mailing list
Geotools-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/geotools-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel