On 1/21/07, Justin Deoliveira <jdeolive@anonymised.com> wrote:
Sorry, I forgot to include geoserver-users in my post to geotools.
Explanation below.
Martin Desruisseaux wrote:
> I think that Geoserver is still using the deprecated epsg-wkt plugin,
> which defines EPSG codes there:
>
> http://svn.geotools.org/geotools/trunk/gt/modules/plugin/epsg-wkt/src/main/resources/org/geotools/referencing/crs/epsg.properties
>
> New code should uses the epsg-hsql plugin, which defines EPSG codes
> there:
>
> http://svn.geotools.org/geotools/trunk/gt/modules/plugin/epsg-hsql/src/main/resources/org/geotools/referencing/factory/epsg/EPSG.sql
>
> In both cases, the units are correctly defined in feet as far as I can
> see (Geotools can handle parameters in arbitrary units). Can you
> provides a "System.out.println(crs)" of yours CRS please? We can see
> from this dump which units are used.
>
> Martin
It appears that geoserver 1.4 RC5 is using epsg-wkt. I am not very
strong with Java, so I not quite sure how to do a
"System.out.println(crs)" however I did:
localhost:8080/geoserver/srsHelp.do
and got:
PROJCS["NAD27 / Wyoming West", GEOGCS["NAD27",
DATUM["North_American_Datum_1927", SPHEROID["Clarke 1866", 6378206.4,
294.9786982138982, AUTHORITY["EPSG","7008"]], TOWGS84[-9.0, 151.0,
185.0, 0.0, 0.0, 0.0, 0.0], AUTHORITY["EPSG","6267"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree",
0.017453292519943295], AXIS["Lon", EAST], AXIS["Lat", NORTH],
AUTHORITY["EPSG","4267"]], PROJECTION["Transverse_Mercator"],
PARAMETER["central_meridian", -110.0833333333333],
PARAMETER["latitude_of_origin", 40.666666666666664],
PARAMETER["scale_factor", 0.999941177], PARAMETER["false_easting",
500000.0], PARAMETER["false_northing", 0.0], UNIT["[m*0.3048006]",
0.3048006], AXIS["X", EAST], AXIS["Y", NORTH],
AUTHORITY["EPSG","32058"]]
Notice that the false northing has a unit definition, but not the
easting. My data appears to be shifted quite a ways to the east, which
would be consistent with false easting (which is defined in feet,
above) being interpreted as meters.
I am not currently a member of geotools-gt2-users. Let me know if you
prefer to continue this thread there.
Thanks,
Rich
--
Richard Greenwood
richard.greenwood@anonymised.com
www.greenwoodmap.com