Re: [JPP-Devel] OpenJUMP extensions migration - Cad Tools

2021-05-02 Thread Michaud Michael


Hi Peppe,I uploaded CADTools extension. I spent some time to clean a little bit the code (remove or comment dead or redundant code, add some generics, replaced some deprecated metods but not all...), but it was working right, thanks.Hopefully, I fixed the problem with jython, but I did not add the console to the CAD Toolbox (just jython algnment tools in the menu). Is that what you wanted ?It gave me the chance to have a better comprehension of CAD Tools and jython.I'll probably upload the measure tool next week. Michaël  envoyé : 29 avril 2021 à 07:01de : Giuseppe Aruta à : Michaud Michael , OpenJump develop and use objet : Re: [JPP-Devel] OpenJUMP extensions migration - Cad Toolsthere are still some deprecated classes from JTS, for instance LineString.clone in es.kosmo.desktop.tools.algorithms.bezierCurve class.I need to find a way to find all these deprecated classes into the code in one timePeppeIl giorno gio 29 apr 2021 alle ore 06:57 Giuseppe Aruta  ha scritto:I decided to remove the Jython start up from CAD plugin. I added it only  to have an "easy" access to align tools, which are available opening a python console, anyhow. I will activate them again or find a pure java solution in the future (maybe).The new code of Cad plugin is available here, recompiled also substituting deprecated JTS classeshttps://sourceforge.net/projects/opensit/files/Openjump/CadTools/PeppeIl giorno mer 28 apr 2021 alle ore 18:15 Giuseppe Aruta  ha scritto:I recompiled CAD tools substituting deprecated components with newer JTS 1.8 one.Everything seems to work fine except Python tools.The problem is connected to classes AlignSelected$py.class and UnionSelected$py.class located into OJ\ib/ext/jython.The problem is that we don't have the original code of these classes, or I was not able to find them into OJ repository.I opened AlignSelected$py.class with a Java decompiler and might work to rebuild it but It would be preferred if Larry could provide a copy of the code.PeppeIl giorno mer 28 apr 2021 alle ore 07:11 Giuseppe Aruta  ha scritto:Hi Michael,this is a start of migration of CadTools to JTS 1,18:https://sourceforge.net/projects/opensit/files/Openjump/CadTools/There are still some issue that I did not solved:a) Plugin still uses ToolboxPlugIn class which is deprecated (org.openjump.advancedtools.EditToolboxCADPlugIn)b) tools use some jts class which seems to be deprecated (org.locationtech.jts.algorithm.CGAlgorithms)c) Draw parallel line uses a Udig class (es.axios.udig.ui.editingtools.precisionparallels.internal.OffsetBuilder) embedded into CAD plugin.this class uses deprecated JTS classes which seems not used anymore (CentralEndpointIntersector). I left the class as it is as I feel that we can remove it and try to use your implementation in OffsetCurvePlugIn pluginLast year I did some modification in CAD plugin:- I added a dependency to VertexSymbols cadplan plugin:a) Cad tools can save geometries as Blocksb) blocks are saved into the same folder of vertexSymbolsc) in the same session of OJ, users can use these blocks as vertex symbology- Cad plugin starts a session of Python, in order to activate all nice Larry python tools like the  align onesPeppeIl giorno dom 18 apr 2021 alle ore 22:44 Michaud Michael  ha scritto:Hi Jumpers,Some news about the migration :I have refactored most extensions included in OpenJUMP PLUS and included them in the distribution (r4834). The work is still on-going but I wanted to let you know so that you can begin to test and report any problem (using the list or the github issue tracker) :https://sourceforge.net/projects/jump-pilot/files/OpenJUMP2_snapshots/Extensions which are supposed to be included are listed in the readme on https://github.com/openjump-gis/openjumpAll of them have been uploaded to openjump-gis group and mavenized.I want to include some more extensions like color-chooser or concave-hull, but for extensions which were not included in OJ-1.16-PLUS, maybe I'll wait for someone to ask.For database, I'd like to avoid maintaining dbquery if the same work can be achieved with openjump datastore framework. Maybe jukka or someone else know better than me what dbquery can actually achieve which cannot be done with the main framework. Michaël ___ 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 extensions migration - Cad Tools

2021-04-29 Thread edgar . soldin
Peppe,

i tend to not touch existing implementations of deprecated API unless the 
actual need arises because they got removed. they are proven working and 
usually there is enough other urgent stuff to do :)

..sunny greetings ede

On 29.04.2021 07:01, Giuseppe Aruta wrote:
> there are still some deprecated classes from JTS, for instance 
> LineString.clone in es.kosmo.desktop.tools.algorithms.bezierCurve class.
> I need to find a way to find all these deprecated classes into the code in 
> one time
> Peppe
>
> Il giorno gio 29 apr 2021 alle ore 06:57 Giuseppe Aruta 
> mailto:giuseppe.ar...@gmail.com>> ha scritto:
>
> I decided to remove the Jython start up from CAD plugin.
> I added it only  to have an "easy" access to align tools, which are 
> available opening a python console, anyhow. I will activate them again or 
> find a pure java solution in the future (maybe).
> The new code of Cad plugin is available here, recompiled also 
> substituting deprecated JTS classes
> https://sourceforge.net/projects/opensit/files/Openjump/CadTools/
> Peppe
>
> Il giorno mer 28 apr 2021 alle ore 18:15 Giuseppe Aruta 
> mailto:giuseppe.ar...@gmail.com>> ha scritto:
>
> I recompiled CAD tools substituting deprecated components with newer 
> JTS 1.8 one.
> Everything seems to work fine except Python tools.
> The problem is connected to classes AlignSelected$py.class and 
> UnionSelected$py.class located into OJ\ib/ext/jython.
> The problem is that we don't have the original code of these classes, 
> or I was not able to find them into OJ repository.
> I opened AlignSelected$py.class with a Java decompiler and might work 
> to rebuild it but It would be preferred if Larry could provide a copy of the 
> code.
> Peppe
>
> Il giorno mer 28 apr 2021 alle ore 07:11 Giuseppe Aruta 
> mailto:giuseppe.ar...@gmail.com>> ha scritto:
>
> Hi Michael,
> this is a start of migration of CadTools to JTS 1,18:
>
> https://sourceforge.net/projects/opensit/files/Openjump/CadTools/
>
> There are still some issue that I did not solved:
> a) Plugin still uses ToolboxPlugIn class which is deprecated 
> (org.openjump.advancedtools.EditToolboxCADPlugIn)
> b) tools use some jts class which seems to be deprecated 
> (org.locationtech.jts.algorithm.CGAlgorithms)
> c) Draw parallel line uses a Udig class 
> (es.axios.udig.ui.editingtools.precisionparallels.internal.OffsetBuilder) 
> embedded into CAD plugin.
> this class uses deprecated JTS classes which seems not used 
> anymore (CentralEndpointIntersector). I left the class as it is as I feel 
> that we can remove it and try to use your implementation in OffsetCurvePlugIn 
> plugin
>
> Last year I did some modification in CAD plugin:
> - I added a dependency to VertexSymbols cadplan plugin:
> a) Cad tools can save geometries as Blocks
> b) blocks are saved into the same folder of vertexSymbols
> c) in the same session of OJ, users can use these blocks as 
> vertex symbology
>
> - Cad plugin starts a session of Python, in order to activate all 
> nice Larry python tools like the  align ones
>
> Peppe
>
> Il giorno dom 18 apr 2021 alle ore 22:44 Michaud Michael 
> mailto:m.michael.mich...@orange.fr>> ha scritto:
>
> __
>
> Hi Jumpers,
>
> Some news about the migration :
>
> I have refactored most extensions included in OpenJUMP PLUS 
> and included them in the distribution (r4834). The work is still on-going but 
> I wanted to let you know so that you can begin to test and report any problem 
> (using the list or the github issue tracker) :
>
> 
> https://sourceforge.net/projects/jump-pilot/files/OpenJUMP2_snapshots/
>
> Extensions which are supposed to be included are listed in 
> the readme on 
>
> https://github.com/openjump-gis/openjump
>
> All of them have been uploaded to openjump-gis group and 
> mavenized.
>
> I want to include some more extensions like color-chooser or 
> concave-hull, but for extensions which were not included in OJ-1.16-PLUS, 
> maybe I'll wait for someone to ask.
>
> For database, I'd like to avoid maintaining dbquery if the 
> same work can be achieved with openjump datastore framework. Maybe jukka or 
> someone else know better than me what dbquery can actually achieve which 
> cannot be done with the main framework. 
>
>
> Michaël 
>
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net 
> 
> 

Re: [JPP-Devel] OpenJUMP extensions migration - Cad Tools

2021-04-28 Thread Giuseppe Aruta
there are still some deprecated classes from JTS, for instance
LineString.clone in es.kosmo.desktop.tools.algorithms.bezierCurve class.
I need to find a way to find all these deprecated classes into the code in
one time
Peppe

Il giorno gio 29 apr 2021 alle ore 06:57 Giuseppe Aruta <
giuseppe.ar...@gmail.com> ha scritto:

> I decided to remove the Jython start up from CAD plugin.
> I added it only  to have an "easy" access to align tools, which are
> available opening a python console, anyhow. I will activate them again or
> find a pure java solution in the future (maybe).
> The new code of Cad plugin is available here, recompiled also substituting
> deprecated JTS classes
> https://sourceforge.net/projects/opensit/files/Openjump/CadTools/
> Peppe
>
> Il giorno mer 28 apr 2021 alle ore 18:15 Giuseppe Aruta <
> giuseppe.ar...@gmail.com> ha scritto:
>
>> I recompiled CAD tools substituting deprecated components with newer JTS
>> 1.8 one.
>> Everything seems to work fine except Python tools.
>> The problem is connected to classes AlignSelected$py.class and
>> UnionSelected$py.class located into OJ\ib/ext/jython.
>> The problem is that we don't have the original code of these classes, or
>> I was not able to find them into OJ repository.
>> I opened AlignSelected$py.class with a Java decompiler and might work to
>> rebuild it but It would be preferred if Larry could provide a copy of the
>> code.
>> Peppe
>>
>> Il giorno mer 28 apr 2021 alle ore 07:11 Giuseppe Aruta <
>> giuseppe.ar...@gmail.com> ha scritto:
>>
>>> Hi Michael,
>>> this is a start of migration of CadTools to JTS 1,18:
>>>
>>> https://sourceforge.net/projects/opensit/files/Openjump/CadTools/
>>>
>>> There are still some issue that I did not solved:
>>> a) Plugin still uses ToolboxPlugIn class which is deprecated
>>> (org.openjump.advancedtools.EditToolboxCADPlugIn)
>>> b) tools use some jts class which seems to be deprecated
>>> (org.locationtech.jts.algorithm.CGAlgorithms)
>>> c) Draw parallel line uses a Udig class
>>> (es.axios.udig.ui.editingtools.precisionparallels.internal.OffsetBuilder)
>>> embedded into CAD plugin.
>>> this class uses deprecated JTS classes which seems not used anymore
>>> (CentralEndpointIntersector). I left the class as it is as I feel that we
>>> can remove it and try to use your implementation in OffsetCurvePlugIn plugin
>>>
>>> Last year I did some modification in CAD plugin:
>>> - I added a dependency to VertexSymbols cadplan plugin:
>>> a) Cad tools can save geometries as Blocks
>>> b) blocks are saved into the same folder of vertexSymbols
>>> c) in the same session of OJ, users can use these blocks as vertex
>>> symbology
>>>
>>> - Cad plugin starts a session of Python, in order to activate all nice
>>> Larry python tools like the  align ones
>>>
>>> Peppe
>>>
>>> Il giorno dom 18 apr 2021 alle ore 22:44 Michaud Michael <
>>> m.michael.mich...@orange.fr> ha scritto:
>>>
 Hi Jumpers,

 Some news about the migration :

 I have refactored most extensions included in OpenJUMP PLUS and
 included them in the distribution (r4834). The work is still on-going but I
 wanted to let you know so that you can begin to test and report any problem
 (using the list or the github issue tracker) :

 https://sourceforge.net/projects/jump-pilot/files/OpenJUMP2_snapshots/

 Extensions which are supposed to be included are listed in the readme
 on

 https://github.com/openjump-gis/openjump

 All of them have been uploaded to openjump-gis group and mavenized.

 I want to include some more extensions like color-chooser or
 concave-hull, but for extensions which were not included in OJ-1.16-PLUS,
 maybe I'll wait for someone to ask.

 For database, I'd like to avoid maintaining dbquery if the same work
 can be achieved with openjump datastore framework. Maybe jukka or someone
 else know better than me what dbquery can actually achieve which cannot be
 done with the main framework.


 Michaël
 ___
 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 extensions migration - Cad Tools

2021-04-28 Thread Giuseppe Aruta
I decided to remove the Jython start up from CAD plugin.
I added it only  to have an "easy" access to align tools, which are
available opening a python console, anyhow. I will activate them again or
find a pure java solution in the future (maybe).
The new code of Cad plugin is available here, recompiled also substituting
deprecated JTS classes
https://sourceforge.net/projects/opensit/files/Openjump/CadTools/
Peppe

Il giorno mer 28 apr 2021 alle ore 18:15 Giuseppe Aruta <
giuseppe.ar...@gmail.com> ha scritto:

> I recompiled CAD tools substituting deprecated components with newer JTS
> 1.8 one.
> Everything seems to work fine except Python tools.
> The problem is connected to classes AlignSelected$py.class and
> UnionSelected$py.class located into OJ\ib/ext/jython.
> The problem is that we don't have the original code of these classes, or I
> was not able to find them into OJ repository.
> I opened AlignSelected$py.class with a Java decompiler and might work to
> rebuild it but It would be preferred if Larry could provide a copy of the
> code.
> Peppe
>
> Il giorno mer 28 apr 2021 alle ore 07:11 Giuseppe Aruta <
> giuseppe.ar...@gmail.com> ha scritto:
>
>> Hi Michael,
>> this is a start of migration of CadTools to JTS 1,18:
>>
>> https://sourceforge.net/projects/opensit/files/Openjump/CadTools/
>>
>> There are still some issue that I did not solved:
>> a) Plugin still uses ToolboxPlugIn class which is deprecated
>> (org.openjump.advancedtools.EditToolboxCADPlugIn)
>> b) tools use some jts class which seems to be deprecated
>> (org.locationtech.jts.algorithm.CGAlgorithms)
>> c) Draw parallel line uses a Udig class
>> (es.axios.udig.ui.editingtools.precisionparallels.internal.OffsetBuilder)
>> embedded into CAD plugin.
>> this class uses deprecated JTS classes which seems not used anymore
>> (CentralEndpointIntersector). I left the class as it is as I feel that we
>> can remove it and try to use your implementation in OffsetCurvePlugIn plugin
>>
>> Last year I did some modification in CAD plugin:
>> - I added a dependency to VertexSymbols cadplan plugin:
>> a) Cad tools can save geometries as Blocks
>> b) blocks are saved into the same folder of vertexSymbols
>> c) in the same session of OJ, users can use these blocks as vertex
>> symbology
>>
>> - Cad plugin starts a session of Python, in order to activate all nice
>> Larry python tools like the  align ones
>>
>> Peppe
>>
>> Il giorno dom 18 apr 2021 alle ore 22:44 Michaud Michael <
>> m.michael.mich...@orange.fr> ha scritto:
>>
>>> Hi Jumpers,
>>>
>>> Some news about the migration :
>>>
>>> I have refactored most extensions included in OpenJUMP PLUS and included
>>> them in the distribution (r4834). The work is still on-going but I wanted
>>> to let you know so that you can begin to test and report any problem (using
>>> the list or the github issue tracker) :
>>>
>>> https://sourceforge.net/projects/jump-pilot/files/OpenJUMP2_snapshots/
>>>
>>> Extensions which are supposed to be included are listed in the readme on
>>>
>>> https://github.com/openjump-gis/openjump
>>>
>>> All of them have been uploaded to openjump-gis group and mavenized.
>>>
>>> I want to include some more extensions like color-chooser or
>>> concave-hull, but for extensions which were not included in OJ-1.16-PLUS,
>>> maybe I'll wait for someone to ask.
>>>
>>> For database, I'd like to avoid maintaining dbquery if the same work can
>>> be achieved with openjump datastore framework. Maybe jukka or someone else
>>> know better than me what dbquery can actually achieve which cannot be done
>>> with the main framework.
>>>
>>>
>>> Michaël
>>> ___
>>> 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 extensions migration - Cad Tools

2021-04-28 Thread Giuseppe Aruta
I recompiled CAD tools substituting deprecated components with newer JTS
1.8 one.
Everything seems to work fine except Python tools.
The problem is connected to classes AlignSelected$py.class and
UnionSelected$py.class located into OJ\ib/ext/jython.
The problem is that we don't have the original code of these classes, or I
was not able to find them into OJ repository.
I opened AlignSelected$py.class with a Java decompiler and might work to
rebuild it but It would be preferred if Larry could provide a copy of the
code.
Peppe

Il giorno mer 28 apr 2021 alle ore 07:11 Giuseppe Aruta <
giuseppe.ar...@gmail.com> ha scritto:

> Hi Michael,
> this is a start of migration of CadTools to JTS 1,18:
>
> https://sourceforge.net/projects/opensit/files/Openjump/CadTools/
>
> There are still some issue that I did not solved:
> a) Plugin still uses ToolboxPlugIn class which is deprecated
> (org.openjump.advancedtools.EditToolboxCADPlugIn)
> b) tools use some jts class which seems to be deprecated
> (org.locationtech.jts.algorithm.CGAlgorithms)
> c) Draw parallel line uses a Udig class
> (es.axios.udig.ui.editingtools.precisionparallels.internal.OffsetBuilder)
> embedded into CAD plugin.
> this class uses deprecated JTS classes which seems not used anymore
> (CentralEndpointIntersector). I left the class as it is as I feel that we
> can remove it and try to use your implementation in OffsetCurvePlugIn plugin
>
> Last year I did some modification in CAD plugin:
> - I added a dependency to VertexSymbols cadplan plugin:
> a) Cad tools can save geometries as Blocks
> b) blocks are saved into the same folder of vertexSymbols
> c) in the same session of OJ, users can use these blocks as vertex
> symbology
>
> - Cad plugin starts a session of Python, in order to activate all nice
> Larry python tools like the  align ones
>
> Peppe
>
> Il giorno dom 18 apr 2021 alle ore 22:44 Michaud Michael <
> m.michael.mich...@orange.fr> ha scritto:
>
>> Hi Jumpers,
>>
>> Some news about the migration :
>>
>> I have refactored most extensions included in OpenJUMP PLUS and included
>> them in the distribution (r4834). The work is still on-going but I wanted
>> to let you know so that you can begin to test and report any problem (using
>> the list or the github issue tracker) :
>>
>> https://sourceforge.net/projects/jump-pilot/files/OpenJUMP2_snapshots/
>>
>> Extensions which are supposed to be included are listed in the readme on
>>
>> https://github.com/openjump-gis/openjump
>>
>> All of them have been uploaded to openjump-gis group and mavenized.
>>
>> I want to include some more extensions like color-chooser or
>> concave-hull, but for extensions which were not included in OJ-1.16-PLUS,
>> maybe I'll wait for someone to ask.
>>
>> For database, I'd like to avoid maintaining dbquery if the same work can
>> be achieved with openjump datastore framework. Maybe jukka or someone else
>> know better than me what dbquery can actually achieve which cannot be done
>> with the main framework.
>>
>>
>> Michaël
>> ___
>> 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 extensions migration - Cad Tools

2021-04-27 Thread Giuseppe Aruta
Hi Michael,
this is a start of migration of CadTools to JTS 1,18:

https://sourceforge.net/projects/opensit/files/Openjump/CadTools/

There are still some issue that I did not solved:
a) Plugin still uses ToolboxPlugIn class which is deprecated
(org.openjump.advancedtools.EditToolboxCADPlugIn)
b) tools use some jts class which seems to be deprecated
(org.locationtech.jts.algorithm.CGAlgorithms)
c) Draw parallel line uses a Udig class
(es.axios.udig.ui.editingtools.precisionparallels.internal.OffsetBuilder)
embedded into CAD plugin.
this class uses deprecated JTS classes which seems not used anymore
(CentralEndpointIntersector). I left the class as it is as I feel that we
can remove it and try to use your implementation in OffsetCurvePlugIn plugin

Last year I did some modification in CAD plugin:
- I added a dependency to VertexSymbols cadplan plugin:
a) Cad tools can save geometries as Blocks
b) blocks are saved into the same folder of vertexSymbols
c) in the same session of OJ, users can use these blocks as vertex symbology

- Cad plugin starts a session of Python, in order to activate all nice
Larry python tools like the  align ones

Peppe

Il giorno dom 18 apr 2021 alle ore 22:44 Michaud Michael <
m.michael.mich...@orange.fr> ha scritto:

> Hi Jumpers,
>
> Some news about the migration :
>
> I have refactored most extensions included in OpenJUMP PLUS and included
> them in the distribution (r4834). The work is still on-going but I wanted
> to let you know so that you can begin to test and report any problem (using
> the list or the github issue tracker) :
>
> https://sourceforge.net/projects/jump-pilot/files/OpenJUMP2_snapshots/
>
> Extensions which are supposed to be included are listed in the readme on
>
> https://github.com/openjump-gis/openjump
>
> All of them have been uploaded to openjump-gis group and mavenized.
>
> I want to include some more extensions like color-chooser or concave-hull,
> but for extensions which were not included in OJ-1.16-PLUS, maybe I'll wait
> for someone to ask.
>
> For database, I'd like to avoid maintaining dbquery if the same work can
> be achieved with openjump datastore framework. Maybe jukka or someone else
> know better than me what dbquery can actually achieve which cannot be done
> with the main framework.
>
>
> Michaël
> ___
> 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