I created a jira with the patch:
http://jira.codehaus.org/browse/GEOT-2493

I also reverted the change I made from Mercator (1SP) so you shouldn't 
have to deal with that (however if you are interested it's at line 
17682).  As a result the test case I added currently fails :)

Emily

Andrea Aime wrote:
> Emily Gouge ha scritto:
>> I had the need the other day to use the projection 3785 in uDig.  The 
>> current version of the epsg-hsql jar didn't support this projection 
>> code so I went digging.
>>
>> In the epsg-hsql I found Martin's instructions for updating the 
>> EPSG.sql file.  So I followed these instructions and created a new 
>> EPSG.sql for my use.
>>
>> 1) I downloaded the latest EPSG database (Version 6.18) from 
>> http://www.epsg.org/.
>> 2) I followed Martin's instructions for creating EPSG.sql database file.
>> 3) I added a test case to the test cases to see if would read this 
>> projection from my new file.  Here I found a minor problem with this 
>> projection.  Apparently GeoTools doesn't support 'Mercator (1SP) 
>> (Spherical)' operation method; so I updated the EPSG.sql file to use 
>> 'Mercator (1SP)'.  I'm not sure if there is a difference between these 
>> two, however it seemed to work for me.
> 
> I think you'll notice significant differences if you try to
> overlay with Google Maps or anything else using the Google projection
> for good, the referencing code is most probably going to compensate
> for the difference between the WGS84 ellipsoid and the EPSG 3785
> spheroid.
> 
>> 4) I created myself a new epsg-hsql jar using this new EPSQ.sql file 
>> and I was able to use the 3785 projection in uDig.
>>
>> If the community is interested I can provide this new EPSG.sql file & 
>> other modifications to the code (test case & version number updates) 
>> as a patch.
> 
> I am interested :-)
> Please open a jira and attach a patch, I'll have a look into it.
> Can you also point out at your modification in the SQL, I would like
> to revert it and add explicit support for the 'Mercator (1SP) 
> (Spherical)' case.
> 
> Cheers
> Andrea

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to