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 2022 alle ore 20:54  ha scritto:

> 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 the link, here you go https://epsg.org/terms-of-use.html
>
>
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] [openjump-gis/openjump] b45221: minor cleanup of imports

2022-08-21 Thread edeso via Jump-pilot-devel
  Branch: refs/heads/main
  Home:   https://github.com/openjump-gis/openjump
  Commit: b45221ef706655a78753922e75750fec62a9ba3c
  
https://github.com/openjump-gis/openjump/commit/b45221ef706655a78753922e75750fec62a9ba3c
  Author: ede 
  Date:   2022-08-21 (Sun, 21 Aug 2022)

  Changed paths:
M 
src/com/vividsolutions/jump/workbench/ui/renderer/SimpleFeatureCollectionRenderer.java

  Log Message:
  ---
  minor cleanup of imports


  Commit: b5dd56eb7ccb3e1978ed0176b23a859255406ad0
  
https://github.com/openjump-gis/openjump/commit/b5dd56eb7ccb3e1978ed0176b23a859255406ad0
  Author: ede 
  Date:   2022-08-21 (Sun, 21 Aug 2022)

  Changed paths:
M src/org/openjump/core/ui/plugin/file/open/JFCWithEnterAction.java

  Log Message:
  ---
  add workaround to prefill file field in JfileChooser


  Commit: bd7a058c98440a640778fa9f1acfce637c3b04ab
  
https://github.com/openjump-gis/openjump/commit/bd7a058c98440a640778fa9f1acfce637c3b04ab
  Author: ede 
  Date:   2022-08-21 (Sun, 21 Aug 2022)

  Changed paths:
M src/org/openjump/core/ui/plugin/file/FindFile.java
M src/org/openjump/core/ui/plugin/file/open/OpenProjectWizard.java

  Log Message:
  ---
  improve handling of moved/missing data files when loading project

OpenProjectWizard
remove useless deprecation warning suppressions
fix typo in method name
improve loading of relative file paths in JMP project files
continue loading project when user opts not to find singular files
start looking for missing data files in current project folder
FindFile
rework caching changed prefix, fix stacktraces like
https://sourceforge.net/p/jump-pilot/bugs/522/#1cb9
replace path string manipulation with proper nio.Path handling
for better cross platform compatibility


  Commit: 0418bf5683b51ef3c43ab9252f04ff477c9f703f
  
https://github.com/openjump-gis/openjump/commit/0418bf5683b51ef3c43ab9252f04ff477c9f703f
  Author: ede 
  Date:   2022-08-21 (Sun, 21 Aug 2022)

  Changed paths:

  Log Message:
  ---
  improve handling of moved/missing data files when loading project

OpenProjectWizard
remove useless deprecation warning suppressions
fix typo in method name
improve loading of relative file paths in JMP project files
continue loading project when user opts not to find singular files
start looking for missing data files in current project folder
FindFile
rework caching changed prefix, fix stacktraces like
https://sourceforge.net/p/jump-pilot/bugs/522/#1cb9
replace path string manipulation with proper nio.Path handling
for better cross platform compatibility


Compare: 
https://github.com/openjump-gis/openjump/compare/042219b21dec...0418bf5683b5


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


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 the link, here you go https://epsg.org/terms-of-use.html


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


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 could extract 
epsg-id and just the name from them. ..ede


On 21.08.2022 19:00, Giuseppe Aruta wrote:

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 mailto:giuseppe.ar...@gmail.com>> ha scritto:

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 file from raster).
Among them method decodeProjDescription is important as it can read some 
aliases, like ESRI prj files, and decode them as EPSG

srid2prj.txt which was responsible to relate an epsg code with a valid prj
SridLookUpTable.getOGCWKTFromWkidCode method used to read an EPSG code and 
relate it into a prj
Peppe

Il giorno dom 21 ago 2022 alle ore 13:21 mailto:edgar.sol...@web.de>> ha scritto:

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 
curious).
 >
 > Using several reference file is far from ideal, but until we find a 
better option, your proposition seems reasonable to me.

hmm, a quick text search does not find all of these in 
https://github.com/Esri/projection-engine-db-doc/ 


and what i can find is spread over several files. any idea why that is?

why is there not a _complete_ epsgid/name mapping file somewhere? or is 
there and we are just not using it?
registering and downloading wkt files-zip from https://epsg.org/download-dataset.html 
 seems to inlude "all" of the missing 
epsg-ids. should we reformat and use those?

sunny regards ..ede


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net 

https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel 




___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


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 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 file from raster).
> Among them method decodeProjDescription is important as it can read some
> aliases, like ESRI prj files, and decode them as EPSG
>
> srid2prj.txt which was responsible to relate an epsg code with a valid prj
> SridLookUpTable.getOGCWKTFromWkidCode method used to read an EPSG code and
> relate it into a prj
> Peppe
>
> Il giorno dom 21 ago 2022 alle ore 13:21  ha scritto:
>
>> 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 curious).
>> >
>> > Using several reference file is far from ideal, but until we find a
>> better option, your proposition seems reasonable to me.
>>
>> hmm, a quick text search does not find all of these in
>> https://github.com/Esri/projection-engine-db-doc/
>>
>> and what i can find is spread over several files. any idea why that is?
>>
>> why is there not a _complete_ epsgid/name mapping file somewhere? or is
>> there and we are just not using it?
>> registering and downloading wkt files-zip from
>> https://epsg.org/download-dataset.html seems to inlude "all" of the
>> missing epsg-ids. should we reformat and use those?
>>
>> sunny regards ..ede
>>
>>
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


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 file from raster).
Among them method decodeProjDescription is important as it can read some
aliases, like ESRI prj files, and decode them as EPSG

srid2prj.txt which was responsible to relate an epsg code with a valid prj
SridLookUpTable.getOGCWKTFromWkidCode method used to read an EPSG code and
relate it into a prj
Peppe

Il giorno dom 21 ago 2022 alle ore 13:21  ha scritto:

> 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 curious).
> >
> > Using several reference file is far from ideal, but until we find a
> better option, your proposition seems reasonable to me.
>
> hmm, a quick text search does not find all of these in
> https://github.com/Esri/projection-engine-db-doc/
>
> and what i can find is spread over several files. any idea why that is?
>
> why is there not a _complete_ epsgid/name mapping file somewhere? or is
> there and we are just not using it?
> registering and downloading wkt files-zip from
> https://epsg.org/download-dataset.html seems to inlude "all" of the
> missing epsg-ids. should we reformat and use those?
>
> sunny regards ..ede
>
>
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


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 
curious).

Using several reference file is far from ideal, but until we find a better 
option, your proposition seems reasonable to me.


hmm, a quick text search does not find all of these in 
https://github.com/Esri/projection-engine-db-doc/

and what i can find is spread over several files. any idea why that is?

why is there not a _complete_ epsgid/name mapping file somewhere? or is there 
and we are just not using it?
registering and downloading wkt files-zip from https://epsg.org/download-dataset.html 
seems to inlude "all" of the missing epsg-ids. should we reformat and use those?

sunny regards ..ede


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


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 ideal, but until we find a better option, your proposition seems reasonable to me.Michaël envoyé : 18 août 2022 à 09:55de : Giuseppe Aruta à : OpenJump develop and use objet : [JPP-Devel] OpenJUMP throws a null point exception if coord_ref_sys is foundHi 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 file cannot be saved (no problem with GML).Until OpenJUMP 1.16, the process to generate OGC code was related to the method SridLookupTable.getOGCWKTFromWkidCode(...) which reads a text file integrated into OpenJUMP (srid2prj.txt) with all the prj codes (even if related to some years ago).To avoid the previous error, my proposal is, in the file ShapeFileWritersubstitute method: private String getPrjString(String code) throws Exception {        try {           int srid = Integer.parseInt(code);           return EsriProj.findProj(srid);        } catch(IOException e) {            Logger.warn(e);            return null;        }    }with method:    private String getPrjString(String code) throws Exception {        try {        int srid = Integer.parseInt(code);        return EsriProj.findProj(srid);        } catch(IOException e) {            return SridLookupTable.getOGCWKTFromWkidCode(code);        } catch (Exception e) {        Logger.warn(e);            return null;        }    }  Note that   SridLookupTable.getOGCWKTFromWkidCode(...) and srid2prj.txt)  are used also on saving sextante raster to export a .prj or .aux file with all the projection infoBest ragardsPeppe___Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel