From: Johannes E. <J.E...@co...> - 2010-05-31 15:14:42
|
Hi, I'll try to implement that. Just to let me understand, the gt2-epsg-hsql-2.4.5.jar will somehow look in the META-INF/services/ folder of its servlet context where I put these two textfiles and if it finds the classes specified in org.opengis.referencing.crs.CRSAuthorityFactory on the classpath it will use them whenever geotools is requestet for a SRS? What does the class in org.geotools.referencing.operation.MathTransformProvider correspond to in my case? As I understand in 2.4.5 google isnt supported and I figure org.geotools.referencing.operation.projection.Mercator1SPGoogle$Provider wont be available? Thanks, Johannes -----Ursprüngliche Nachricht----- Von: Andrea Aime [mailto:aa...@op...] Gesendet: Montag, 31. Mai 2010 09:43 An: Johannes Elsinghorst Cc: Michael Bedward; geo...@li... Betreff: Re: AW: [Geotools-gt2-users] Epsg.sql and EPSG:102100 Johannes Elsinghorst ha scritto: > I actually confused me that much that I wrote 2.5.4 instead of 2.4.5 > which I am actually using :-) Aaah, right, way too old to have the new EPSG codes. > I searched the 2.4.5 EPSG.sql for both 3785 and 3857 but they are not included. I tried to use the WKT Michael posted by putting this line at the end of the epsg.properties in the tomcat temp folder: epsg.properties in the tomcat temp folder? What in the world is that? Anyways, if you want to add codes you should try using gt-epsg-extension and roll your custom factory subclass that knows where to pick the extra property file, something that GeoServer does, here it is as an example: http://svn.codehaus.org/geoserver/trunk/src/main/src/main/java/org/vfny/geoserver/crs/GeoserverCustomWKTFactory.java and the two files here too for registration purposes: http://svn.codehaus.org/geoserver/trunk/src/main/src/main/java/META-INF/services/ Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. |