Martin Desruisseaux ha scritto: > Andrea Aime a écrit : >> I believe there are cleaner ways to do this, but it's the only one >> I could come up in the allotted time. For example, in proj they define >> the CRS as it really is (mercator over a sphere) and they have a way >> to say the lat/lon correction must be avoided. > > Do you know how Proj4 said that lat/lon correction must be avoided? If it is a > parameter, a very simple fix would be to add that parameter (using the same > name) in the standard Mercator1SP class.
They do use "[EMAIL PROTECTED]". One question thought... were is one supposed to specify that parameter in WKT? I need to be able and specify it somewhere, because the google crs is a custom one, and we specify it in a property file that backs epsg-ext, otherwise I won't be able to use it in GeoServer (anyways, being able to use it from code it's a good start). Proj4 uses a special parameter in WKT, "EXTENSION", but apparently the gt2 wkt parser cannot handle it (at least, I think last time I tried the wkt parser threw an error stating the parameter wasn't recognized... not so sure thought, I may be mistaken). For more examples see: http://www.spatialreference.org/ref/user/google-projection/ http://www.spatialreference.org/ref/user/google-projection/ogcwkt/ Cheers Andrea ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
