Andrea Aime a écrit :
> trying to load EPSG:3031 from the EPSG database we
> get the following exception:
>
> org.opengis.referencing.NoSuchIdentifierException:
> Can't set a value to the parameter "Longitude of origin".
Added a "Longitude of origin" alias to MapProjection.CENTRAL_MERIDIAN. Will
commit a little bit later (after usual "mvn test").
In long term, I wonder if overloading a single constant with full of alias is
the right thing to do. MapProjection.CENTRAL_MERIDIAN now has:
NamedIdentifier(Citations.OGC, "central_meridian"),
NamedIdentifier(Citations.EPSG, "Longitude of natural origin"),
NamedIdentifier(Citations.EPSG, "Longitude of false origin"),
NamedIdentifier(Citations.EPSG, "Longitude of origin"),
NamedIdentifier(Citations.ESRI, "Longitude_Of_Origin"),
NamedIdentifier(Citations.ESRI, "Longitude_Of_Center"),
NamedIdentifier(Citations.GEOTIFF, "NatOriginLong")
EPSG uses "Longitude of origin" and "Longitude of false origin" for different
projections, while other authorities use the same name for all of them. By
overloading the same CENTRAL_MERIDIAN constant, we erase the distinction done
by
EPSG, so maybe we lost a small opportunity to catch some errors (setting the
wrong parameters to the wrong projection). But not every authorities perform
this distinction anyway...
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