Andrea Aime ha scritto:
Hi,
I've committed Alexander patches (small patch, very high value per line of code :-)) to geoserver, in the org.vfny.geoserver.crs package.
The release configuration has the custom crs file with all the extra
CRS Martin already added to trunk (ones that are missing from EPSG, but
widely used), so there's plenty of samples.
Oh well, today I noticed Alex solution (to custom projection definitions) had issues in that, extending the WKT authority, made
that one register as well, and it registered before the hsql
one, as a result the more correct EPSG definitions were replaced
by the ones contained in the epsg-wkt factory (no more TOWGS84
parameters in most projections, holy cow!).
So, I took a peek at Martin's code on trunk, and backported it
into Geoserver (directly), merging it with the external file
loading logic Alexander prepared. This removed the dependency
to espg-wkt, still allowing us to have custom CRS in a directly
modifiable file.
Martin, I hope you don't mind I did copy your code in Geoserver,
we badly needed it, and backporting the whole module to 2.3.x
may have triggered more complaints I guess. I'm open to other
solutions, thought.
In Geoserver 1.6.x I'll simply subclass the FactoryUsingWKT
instead, since we do reference geotools trunk.
Btw, I'm wondering, is there any way to prevent the registration
of FactoryUsingWKT and FactoryESRI? The latter is problematic,
since in Geoserver we handle only EPSG authority, the former
would really be around simply to allow subclassing.
Cheers
Andrea