Hi Anrea,
thanks for the info.
Indeed, the string is not WKT. The one i added to the epsg.properties file is the following:
909090=PROJCS[“Amersfoort / RD New”,GEOGCS[“Amersfoort”,DATUM[“Amersfoort”,SPHEROID[“Bessel 1841”,6377397.155,299.1528128,AUTHORITY[“EPSG”,“7004”]],TOWGS84[565.237, 50.0087, 465.658, -0.406857, 0.350733, -1.87035, 4.0812],AUTHORITY[“EPSG”,“6289”]], PRIMEM[“Greenwich”, 0.0,AUTHORITY[“EPSG”,“8901”]], UNIT[“degree”, 0.017453292519943295],AXIS[“Geodetic longitude”, EAST], AXIS[“Geodetic latitude”, NORTH],AUTHORITY[“EPSG”,“4289”]], PROJECTION[“Oblique Stereographic”,AUTHORITY[“EPSG”,“9809”]], PARAMETER[“central_meridian”, 5.387638888888891],PARAMETER[“latitude_of_origin”, 52.15616055555556],PARAMETER[“scale_factor”, 0.9999079], PARAMETER[“false_easting”, 155000.0],PARAMETER[“false_northing”, 463000.0], UNIT[“m”, 1.0], AXIS[“Easting”,EAST], AXIS[“Northing”, NORTH], AUTHORITY[“EPSG”,“28992”]]
909090 is my fake 28992 code.
However this does not change the position of the data. It stays some 50m wrong. That reminds me,…does someone have a measure tool for openlayers?
Thanks,
Mike
2008/10/21 Andrea Aime <aaime@anonymised.com>
Mike2 ha scritto:
Hi,
i have some shapefiles in EPSG:28992 which i would like to overlay on Google
Maps or OpenStreetMap. When i set the layer to be EPSG:28992 it is incorrect
for 50+ meters in regards to let’s say Maps or OSM. I cannot determine how
much, but it is definitely wrong.
I added it manually to
‘…\geoserver\data_dir\user_projections\epsg.properties’ but there seems to
be no difference.
The string used is: +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908
+x_0=155000 +y_0=463000 +ellps=bessel +units=m
towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.8703473836068,4.0812
+no_defs no_defs
This is a proj definition, GeoServer can only handle wkt ones.
I’m not sure how do that btw, does anybody know a set of rules or,
say, a command line tool that can perform the translation?
From someone else in this forum i read this is an accurate one.
What am i doing wrong here?
Is my EPSG set in user_projections overruling the ‘default’?
Nope, user_projections is only there to allow you to extend the
projections set, not to override the official EPSG database.
You have to define a custom code in that file and then
force it upon your data in the feature type configuration.
Cheers
Andrea
–
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.