Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-25 Thread Giuseppe Aruta
There is another solution like the one adopted byQGIS which used also .qpj with OGC, see Supported Data Formats (qgis.org) at Supported Data Formats (qgis.org)

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-25 Thread edgar . soldin
reads like Esri is cooking it's own soup there, https://gis.stackexchange.com/questions/129764/how-are-esri-wkt-projections-different-from-ogc-wkt-projections so the clean way probably would be, using the Esri definition if we got one or none, if we have not presuming that SHP is an Esri

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-25 Thread Giuseppe Aruta
Hi Michael, Ede I try to summarize all the aspects (development and reasons) going back to 2016 when I added Vector/Raster SRS reading and (at that moment) writing with the great help of Michael To, please, forgive me if I am a bit verbose. *Reading (This was my first purpose)* Since the idea

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-25 Thread Michaud Michael
Ede, PeppeEPSG is good at listing all known coordinate systems in the world but unfortunately,standardization to describe them is a slow process and we sometime have to deal withdifferent identifiers (ex. epsg/esri), names (wkt/esri convention), formats (wkt, wkt2).This post gives some good

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-21 Thread Giuseppe Aruta
Hi Michael >You're right, I found 171 srid in srid2prj which are not in pe_list_projcs_geogcs.zip. there are codes that I manually added: * ESRI codes * Coordinate Systems of Géoportail de l'IGN (France) * IGNF SRID The file srid.txt is a patch work from other files Peppe Il giorno dom 21 ago

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-21 Thread edgar . soldin
On 21.08.2022 20:50, edgar.sol...@web.de wrote: a little hard to find, but here's the current EPSG "license" info. afaics we just need to acknowledge that it came from them "Ownership of the EPSG Dataset by IOGP must be acknowledged" didn't check Readme.txt if we do already. whoops. forgot

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-21 Thread edgar . soldin
a little hard to find, but here's the current EPSG "license" info. afaics we just need to acknowledge that it came from them "Ownership of the EPSG Dataset by IOGP must be acknowledged" didn't check Readme.txt if we do already. i'll send Mike a wetransfer link with the wkt files. i guess we

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-21 Thread Giuseppe Aruta
I made srid2prj.txt trying to add all the codes available in that year (2016), not sure which database I used from EPSG Il giorno dom 21 ago 2022 alle ore 18:58 Giuseppe Aruta < giuseppe.ar...@gmail.com> ha scritto: > Hi Michael and Ede > in the package org.openjump.core.ccordsys.utils there are

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-21 Thread Giuseppe Aruta
Hi Michael and Ede in the package org.openjump.core.ccordsys.utils there are two text files: srid.txt which was and, i think, is still responsible to relate an epsg code with a readable explanation and the unit In the same package the file ProjUtils has all the methods to read a prj (or an aux

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-21 Thread edgar . soldin
On 21.08.2022 10:56, Michaud Michael wrote: Hi Peppe, You're right, I found 171 srid in srid2prj which are not in  pe_list_projcs_geogcs.zip. Can you remember where the srid2prj file comes from ? And can you telle me which projection you use which are not in pe_list_projcs_geogcs.zip (just

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-21 Thread Michaud Michael
Hi Peppe,You're right, I found 171 srid in srid2prj which are not in pe_list_projcs_geogcs.zip.Can you remember where the srid2prj file comes from ? And can you telle me which projection you use which are not in pe_list_projcs_geogcs.zip (just curious).Using several reference file is far from

Re: [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-18 Thread edgar . soldin
same here :), better as an issue on github and definitely Mikes cup of coffee .. sunny regards ede On 18.08.2022 09:55, Giuseppe Aruta wrote: Hi all, with the new OJ 2.1 adopted an external file (coord_ref_sys) to read OGC code on saving to.prj file (shapefile).  Reading code is related to

[JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is found

2022-08-18 Thread Giuseppe Aruta
Hi all, with the new OJ 2.1 adopted an external file (coord_ref_sys) to read OGC code on saving to.prj file (shapefile). Reading code is related to the method EsriProj.findProj(...) If the external coord_ref_sys file is not found, when I try to save to shapefile, OJ throws an exception and the