[JPP-Devel] Few improvements on Raster menu

2015-01-21 Thread Giuseppe Aruta
Dear Jumpers,
I did some small variations/improvements on raster menu:
a) I moved two plugins (Create Lattice from Raster and Create Polygon grid
from Raster) on a specific submenu called Vectorialize
b) I added a new plugin - Layer Statistics* -  which calculates some cell
statistics (max, min, mean, etc) on selected Raster layers. This plugin
works also with multiple selected raster layer in order to help users to
compare different information (different image files). This plugin is
located into a submenu (Statistics): it is my intention to add also other
statistics tools like histogram plot.
Please check out the language codes (Italian and Spanish already upgraded)
best regards
Peppe

* The code and the idea derives from LayerStatisticsPlugIn class which
works on vectors.
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] delete obsolete classes/icons etc. - WAS:Fwd: Re: [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[4274] core/trunk/src/com/vividsolutions/jump/ workbench/ui/images

2015-01-21 Thread edgar . soldin
let's move this back to the devel list.

afaiac if files are not needed anymore they should be removed from the svn, 
hence the distributed package. 
so if your new plugin does exactly or more that the old plugin did and replaces 
it functionwise, go ahead delete the old one. it'll stay in svn history anyway.

.. ede

 Forwarded Message 
Subject: Re: [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[4274] 
core/trunk/src/com/vividsolutions/jump/ workbench/ui/images
Date: Wed, 21 Jan 2015 16:55:35 +0100
From: Giuseppe Aruta giuseppe_ar...@yahoo.it
To: Edgar Soldin edgar.sol...@web.de

It is easy for the icons. What about some classes which are not used
anymore? Recently I added to OJ snapshot a plugin that extracts the
envelope as geometry for any kind of layerable. There is another similar
plugin but only for RasterImageLayer class. Can I delete it? I think that
they are also under GPL2
Peppe

2015-01-21 15:04 GMT+01:00 edgar.sol...@web.de:

 you might want to search the java sources for the file deletion candidates
 name, just to make sure that it wan't use in any other place.

 ..ede

 On 21.01.2015 14:58, Giuseppe Aruta wrote:
  Ok Ede,
  I will go on cleaning up.
  Peppe
 
  2015-01-21 11:24 GMT+01:00 edgar.sol...@web.de:
 
  they were released under GPL2 together with the rest of JUMP, so they
 are
  subject to modification as long as the result is released respecting the
  terms of the GPL.
 
  modification of course includes deletion. you wouldn't think twice to
  remove an obsolete java file, wouldn't you?
 
  i am just concerned about OJ's distribution size. cleaning out
 old/unused
  data helps keeping it down.
 
  ..ede
 
 
  On 20.01.2015 21:21, Giuseppe Aruta wrote:
  Hi Ede,
  those old icons are part of original Jump Vividsolution development. I
  don't know if  the copyrights allows to remove them. What is your
 opinion
  about
  Peppe
 
  2015-01-20 20:14 GMT+01:00 Edgar Soldin ed...@soldin.de:
 
  what about the old obsolete icons? can you delete them?..ede
 
  On 20.01.2015 18:18, ma15...@users.sourceforge.net wrote:
  Revision: 4274
http://sourceforge.net/p/jump-pilot/code/4274
  Author:   ma15569
  Date: 2015-01-20 17:18:54 + (Tue, 20 Jan 2015)
  Log Message:
  ---
  Add icons to style plugins
 
  Added Paths:
  ---
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
 
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
 
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
 
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_out.png
 
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_paste.png
 
  Added:
  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
  ===
  (Binary files differ)
 
  Index:
  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
  ===
  ---
  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
  2015-01-19 18:04:50 UTC (rev 4273)
  +++
  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
  2015-01-20 17:18:54 UTC (rev 4274)
 
  Property changes on:
  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
  ___
  Added: svn:mime-type
  ## -0,0 +1 ##
  +application/octet-stream
  \ No newline at end of property
  Added:
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
  ===
  (Binary files differ)
 
  Index:
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
  ===
  ---
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
   2015-01-19 18:04:50 UTC (rev 4273)
  +++
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
   2015-01-20 17:18:54 UTC (rev 4274)
 
  Property changes on:
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
  ___
  Added: svn:mime-type
  ## -0,0 +1 ##
  +application/octet-stream
  \ No newline at end of property
  Added:
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
  ===
  (Binary files differ)
 
  Index:
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
  ===
  ---
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
  2015-01-19 18:04:50 UTC (rev 4273)
  +++
 
 
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
  

Re: [JPP-Devel] OpenJUMP and CAD tools

2015-01-21 Thread Giuseppe Aruta
Hi ,
I confirm that  DrawRoadTool of Phyton plugin doens't work anymore and
blocks any drawing tools too. The only way to go out is to kill java
process. I use Ubuntu 14.04 and OpenJDK.
Peppe

2015-01-21 7:57 GMT+01:00 Giuseppe Aruta giuseppe_ar...@yahoo.it:

 Hi Jukka,
 thanks for the comment, regarding my part, cadtools are relatively old and
 they were never upgraded to new shortcuts added by Ede on OJ: they were
 basically a sort of programming java test for me.
 Recently I  started to work to  a new version, removing the tools which
 have no usage, porting  some Kosmo ones and making more OJ shortcut
 compatibly .
 I would like to add the source to OJ repository and have in OJ Plus, as
 separate plugin/toolbar
 Porting Kosmo tools is not difficult, even for a newby like me. The
 problem is the dependency to many classes,  some of these classes might
 have equivalence to OpenJUMP one, but it is quite difficult to find them.
 Best regards
 Peppe

 2015-01-20 13:07 GMT+01:00 Rahkonen Jukka (MML) 
 jukka.rahko...@maanmittauslaitos.fi:

  Hi,



 I was searching tools for making some CAD alike drawing and studied what
 we have. I found:

 1.   Some of the Python tools in the standard delivery has CAD-alike
 features (rotated rectangle, Arc tool).

 2.   Peppe has made a CAD tools plugin that adds some CAD tools into
 the default digitizing box.

 3.   Kosmo GIS has a special CAD toolbox with about 15 tools.



 Quick comments:



 1.   Python tools feels somehow like a promising way for writing new
 drawing tools. The Python part of the tools look almost understandable for
 non-programmer and I suppose that Python is the most common geospatial
 scripting language at the moment. However, if I understand right for
 creating new tools Python is not enough but also some java programming is
 needed. By the way, the Road Arc tools does not work with latest snapshots
 and it makes so bad a jam that only killing the process helps. The error
 from the console window:



 Exception in thread AWT-EventQueue-0 Traceback (innermost last):

   File
 C:\oj_test\OJ_18\OpenJUMP-20150116-r4270-PLUS\lib\ext\jython\RoadTool.py,
 line 201, in handleDeActivation

 AttributeError: 'NoneType' object has no attribute 'actionPerformed'

 Exception in thread AWT-EventQueue-0 Traceback (innermost last):



 2.   I would rather place the additional CAD tools to their own tool
 box because they do not behave exactly as the standard tools. Many of the
 OJ keyboard shortcuts stop working when a CAD tools is selected. On the
 other hand, the SHIFT key does not alter the behaviour of CAD tools as
 planned in most cases. The draw vertical/horizontal tool, tools for drawing
 closed linestrings and the annotation layer tool would be nice additions to
 OJ PLUS. Annotation tool might need some revisiting.

 3.   Many of the Kosmo tools are fine. I wonder how difficult it
 would be to adapt some of those for OJ. For example the “Continue lines
 until they cross” tools is simple and clever and I do not remember such
 tool in other open source GIS. “Draw perpendicular” works well also with
 circles and Bezier curves but it would be nice to have a sister tool “Draw
 tangent”.



 None of these CAD tools had a tool for my need. Or perhaps the “Draw with
 commands” tool in Kosmo has but I could not discover the right syntax even
 I found the manual
 http://www.kosmoland.es/public/kosmo/v_2.0/docs/Extension_Herramienta_CAD.pdf.
 What I would like to do feels simple to me:



 -  Draw a point or first vertex to coordinates x/y

 -  Draw next point or vertex by angle and distance or to next
 given coordinates



 I know I can workaround the manual feed of coordinates effectively by
 using WKT but not the angle + distance alternative.



 -Jukka Rahkonen-



 --
 New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
 GigeNET is offering a free month of service with a new server in Ashburn.
 Choose from 2 high performing configs, both with 100TB of bandwidth.
 Higher redundancy.Lower latency.Increased capacity.Completely compliant.
 http://p.sf.net/sfu/gigenet
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] OpenJUMP and CAD tools

2015-01-21 Thread Larry Becker

 1.   Python tools feels somehow like a promising way for writing new
 drawing tools. The Python part of the tools look almost understandable for
 non-programmer and I suppose that Python is the most common geospatial
 scripting language at the moment. *However, if I understand right for
 creating new tools Python is not enough but also some java programming is
 needed*. By the way, the Road Arc tools does not work with latest
 snapshots and it makes so bad a jam that only killing the process helps.
 The error from the console window:


@Jukka,  I assume you are referring to the following line from Startup.py:

#tools can be defined in java only - as in this orphaned JUMP Note tool

The comment is badly worded.  It should say #tools may also be defined in
java and activated here - as in this orphaned JUMP Note tool  There are
many examples of defining a new drawing tool in jython only.

While I don't currently have my OpenJump development platform up to date, I
did diff the SkyJUMP copies of  two attached files and bring them up to
date with the new Shift key feature of the Road Curve tool (it is maddening
to draw long straight stretch of road without it!).  If one of the
developers has a few minutes, they can see if it fixes the issue.  If it
doesn't we can comment out lines 100 through 109 in startup.py to
deactivate the Road tool.

regards,

Larry Becker

On Tue, Jan 20, 2015 at 6:07 AM, Rahkonen Jukka (MML) 
jukka.rahko...@maanmittauslaitos.fi wrote:

  Hi,



 I was searching tools for making some CAD alike drawing and studied what
 we have. I found:

 1.   Some of the Python tools in the standard delivery has CAD-alike
 features (rotated rectangle, Arc tool).

 2.   Peppe has made a CAD tools plugin that adds some CAD tools into
 the default digitizing box.

 3.   Kosmo GIS has a special CAD toolbox with about 15 tools.



 Quick comments:



 1.   Python tools feels somehow like a promising way for writing new
 drawing tools. The Python part of the tools look almost understandable for
 non-programmer and I suppose that Python is the most common geospatial
 scripting language at the moment. However, if I understand right for
 creating new tools Python is not enough but also some java programming is
 needed. By the way, the Road Arc tools does not work with latest snapshots
 and it makes so bad a jam that only killing the process helps. The error
 from the console window:



 Exception in thread AWT-EventQueue-0 Traceback (innermost last):

   File
 C:\oj_test\OJ_18\OpenJUMP-20150116-r4270-PLUS\lib\ext\jython\RoadTool.py,
 line 201, in handleDeActivation

 AttributeError: 'NoneType' object has no attribute 'actionPerformed'

 Exception in thread AWT-EventQueue-0 Traceback (innermost last):



 2.   I would rather place the additional CAD tools to their own tool
 box because they do not behave exactly as the standard tools. Many of the
 OJ keyboard shortcuts stop working when a CAD tools is selected. On the
 other hand, the SHIFT key does not alter the behaviour of CAD tools as
 planned in most cases. The draw vertical/horizontal tool, tools for drawing
 closed linestrings and the annotation layer tool would be nice additions to
 OJ PLUS. Annotation tool might need some revisiting.

 3.   Many of the Kosmo tools are fine. I wonder how difficult it
 would be to adapt some of those for OJ. For example the “Continue lines
 until they cross” tools is simple and clever and I do not remember such
 tool in other open source GIS. “Draw perpendicular” works well also with
 circles and Bezier curves but it would be nice to have a sister tool “Draw
 tangent”.



 None of these CAD tools had a tool for my need. Or perhaps the “Draw with
 commands” tool in Kosmo has but I could not discover the right syntax even
 I found the manual
 http://www.kosmoland.es/public/kosmo/v_2.0/docs/Extension_Herramienta_CAD.pdf.
 What I would like to do feels simple to me:



 -  Draw a point or first vertex to coordinates x/y

 -  Draw next point or vertex by angle and distance or to next
 given coordinates



 I know I can workaround the manual feed of coordinates effectively by
 using WKT but not the angle + distance alternative.



 -Jukka Rahkonen-



 --
 New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
 GigeNET is offering a free month of service with a new server in Ashburn.
 Choose from 2 high performing configs, both with 100TB of bandwidth.
 Higher redundancy.Lower latency.Increased capacity.Completely compliant.
 http://p.sf.net/sfu/gigenet
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


# Copyright (C) 2005 Integrated Systems Analysts, Inc.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU 

Re: [JPP-Devel] [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[4274] core/trunk/src/com/vividsolutions/jump/ workbench/ui/images

2015-01-21 Thread edgar . soldin
they were released under GPL2 together with the rest of JUMP, so they are 
subject to modification as long as the result is released respecting the terms 
of the GPL.

modification of course includes deletion. you wouldn't think twice to remove an 
obsolete java file, wouldn't you?

i am just concerned about OJ's distribution size. cleaning out old/unused data 
helps keeping it down.

..ede


On 20.01.2015 21:21, Giuseppe Aruta wrote:
 Hi Ede,
 those old icons are part of original Jump Vividsolution development. I
 don't know if  the copyrights allows to remove them. What is your opinion
 about
 Peppe
 
 2015-01-20 20:14 GMT+01:00 Edgar Soldin ed...@soldin.de:
 
 what about the old obsolete icons? can you delete them?..ede

 On 20.01.2015 18:18, ma15...@users.sourceforge.net wrote:
 Revision: 4274
   http://sourceforge.net/p/jump-pilot/code/4274
 Author:   ma15569
 Date: 2015-01-20 17:18:54 + (Tue, 20 Jan 2015)
 Log Message:
 ---
 Add icons to style plugins

 Added Paths:
 ---

  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png

  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png

  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png

  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_out.png

  core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_paste.png

 Added:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
 ===
 (Binary files differ)

 Index:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
 ===
 ---
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
 2015-01-19 18:04:50 UTC (rev 4273)
 +++
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
 2015-01-20 17:18:54 UTC (rev 4274)

 Property changes on:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette.png
 ___
 Added: svn:mime-type
 ## -0,0 +1 ##
 +application/octet-stream
 \ No newline at end of property
 Added:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
 ===
 (Binary files differ)

 Index:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
 ===
 ---
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
  2015-01-19 18:04:50 UTC (rev 4273)
 +++
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
  2015-01-20 17:18:54 UTC (rev 4274)

 Property changes on:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_copy.png
 ___
 Added: svn:mime-type
 ## -0,0 +1 ##
 +application/octet-stream
 \ No newline at end of property
 Added:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
 ===
 (Binary files differ)

 Index:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
 ===
 ---
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
 2015-01-19 18:04:50 UTC (rev 4273)
 +++
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
 2015-01-20 17:18:54 UTC (rev 4274)

 Property changes on:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_in.png
 ___
 Added: svn:mime-type
 ## -0,0 +1 ##
 +application/octet-stream
 \ No newline at end of property
 Added:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_out.png
 ===
 (Binary files differ)

 Index:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_out.png
 ===
 ---
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_out.png
   2015-01-19 18:04:50 UTC (rev 4273)
 +++
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_out.png
   2015-01-20 17:18:54 UTC (rev 4274)

 Property changes on:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_out.png
 ___
 Added: svn:mime-type
 ## -0,0 +1 ##
 +application/octet-stream
 \ No newline at end of property
 Added:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_paste.png
 ===
 (Binary files differ)

 Index:
 core/trunk/src/com/vividsolutions/jump/workbench/ui/images/Palette_paste.png