Re: [JPP-Devel] convert a prj/proj code to epsg code

2016-05-02 Thread Giuseppe Aruta
Hi Michaël, Jukka, Thanks for the commets, My idea is to develop a way to save a layer projection to .prj/.aux files starting from a selected SRID (EPSG) code. I will probably explore an alternative way using a - file list. I found several lists like this one ( http://sharpmapv2.googlecode.com

Re: [JPP-Devel] convert a prj/proj code to epsg code

2016-05-02 Thread Rahkonen Jukka (MML)
Hi, I fear that it is very hard to map the .prj text to EPSG-codes in a reliable way. GDAL tries to do it with this code https://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogr_srs_esri.cpp but sometimes it does fails with interpreting the .prj file. Roundtrip fails more frequently (read prj,

Re: [JPP-Devel] convert a prj/proj code to epsg code

2016-05-02 Thread Michaël Michaud
Hi Peppe, It is not possible to find an epsg code from the prj with CTS. I think it is not an obvious thing (I think we can find several prj refering to the same srs, but with small differences in datum name or in parameters precision). I'll try to have a look at geotools to see how they do.

[JPP-Devel] convert a prj/proj code to epsg code

2016-04-25 Thread Giuseppe Aruta
Hi Michael, I gave a look into your library cts 1.3.2 and found that there are parsers for prj/proj codes. How do they work? Is there a method that gives back an epsg code from prj string, like in geotools? thanks Peppe --