[JPP-Devel] [jump-pilot:bugs] #510 Create Polygon From a Raster bug

2020-11-10 Thread michael michaud via Jump-pilot-devel



---

** [bugs:#510] Create Polygon From a Raster bug**

**Status:** open
**Milestone:** OJ_1.16
**Created:** Tue Nov 10, 2020 12:59 PM UTC by michael michaud
**Last Updated:** Tue Nov 10, 2020 12:59 PM UTC
**Owner:** nobody


The plugin has two modes : AdbToolbox and Sextante. With tiff images of type 
float like DTM084 from Roberto Rossi, I can vectorize with Sextante, but Adb 
throws en exception :
java.lang.ArrayIndexOutOfBoundsException: Index - out of bounds for length 
1925123
at 
org.openjump.core.rasterimage.algorithms.VectorizeAlgorithm.toPolygonsAdbToolBox(VectorizeAlgorithm.java:113)
at 
org.openjump.core.ui.plugin.raster.VectorizeToPolygonsPlugIn.run(VectorizeToPolygonsPlugIn.java:170)
at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151)



---

Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/jump-pilot/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/jump-pilot/admin/bugs/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] [jump-pilot:bugs] #510 Create Polygon From a Raster bug

2020-11-10 Thread Giuseppe Aruta via Jump-pilot-devel
Hi Michael,
...even the time to vectorialize a raster with continuous data like DTM084 is 
incredibly long...
In theory in mostly case an user chooses one of Raster->Vector tool according 
to the type of the raster she/he wants to convert:
a) a continuous raster like a DTM. Data are scattered in a continuous interval 
descibing a measure that gradually changes, for instance the elevation or a map 
of temperatures. An user wonts to convert into a contour lines (Raster to 
contours) or trasform into a discrete raster (eg. defining intervals of the 
measure: 10-30% slope, 31-50% slope and so on
a) a discrete raster can be converted to a polygon layer (the case of Raster to 
Polygons. See file UsoSuolo.tif by Roberto: each number with 3 digits (512, 
111, etc) define a unique usage of the soil (forsets, cultivar, urban, etc). 
There is neither no uniform measurement (a forest is different from a city) nor 
a continuous gradually change (after 111 there would be a 231 in the scale, for 
instance): we use number because we get advance  (and the limit) that the Z 
value of a raster accept only a number (float, double, integer or whatever, but 
only a number not a string).
Of coarse, if we consider the limit of the interval and the cell size, all the 
raster are tecnically discrete (each output polygon can have a size of the cell 
size: see Stefan's tools, create a grid of points/of polygons).
When I added this plugin to OpenJUMP I wanted to bypass in one time two 
problems:
a) Sextante Raster to  Vector tool on discrete raster sometimes was giving 
wierd results: island of no data where it was supposed to have valid data
b) the version of Raster to Polygon tool in OpenKLEM, derived from AdbToolbox 
software, was taking a longer time and giving sometimes a strange outputs (like 
sometimes self intersection polygons).
This plugin seems to solve both situations. OpenKLEM now refers to 
VectorizeAlgorithm class, part AdbToolbox. While embedded OpenJUMP plugin can 
use both algorithm. They both work, except if user wants to convert a 
continuous raster to polygons with AdbToolbox.
I will give a look and atry to correct or to add some type of check, studing a 
way to distinguish in OpenJUMP a continuous vs discrete raster, not sure if it 
possible (an histogram is required and OJ raster histogram plugin can take a 
very long time according the intervals. 

Best regards
Peppe


---

** [bugs:#510] Create Polygon From a Raster bug**

**Status:** open
**Milestone:** OJ_1.16
**Created:** Tue Nov 10, 2020 12:59 PM UTC by michael michaud
**Last Updated:** Tue Nov 10, 2020 12:59 PM UTC
**Owner:** nobody


The plugin has two modes : AdbToolbox and Sextante. With tiff images of type 
float like DTM084 from Roberto Rossi, I can vectorize with Sextante, but Adb 
throws en exception :
java.lang.ArrayIndexOutOfBoundsException: Index - out of bounds for length 
1925123
at 
org.openjump.core.rasterimage.algorithms.VectorizeAlgorithm.toPolygonsAdbToolBox(VectorizeAlgorithm.java:113)
at 
org.openjump.core.ui.plugin.raster.VectorizeToPolygonsPlugIn.run(VectorizeToPolygonsPlugIn.java:170)
at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151)



---

Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/jump-pilot/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/jump-pilot/admin/bugs/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] OpenJUMP Road map page

2020-11-10 Thread Giuseppe Aruta
Hi all,
I started to upgrade the road map page on our wiki:
http://ojwiki.soldin.de/index.php?title=OpenJUMP_Roadmap#OpenJUMP_2.0_.282021.3F.29
Please, if you can give a look and make your modifications and comments. I
think some voices could be removed (see plugin architecture or Kosmo style
implementation)
Thanks
peppe
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] [jump-pilot:bugs] Re: #510 Create Polygon From a Raster bug

2020-11-10 Thread michael michaud via Jump-pilot-devel
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

http://www.w3.org/1999/xhtml";>

 Hi Peppe,Thank you for the detailed answer.Indeed, I was 
not trying to do something useful, just checking if I did not introduce a new 
bug in RasterImageLayer.I perfectly understand that applying this tool 
to a raster containing floating point values is not the normal use case. With 
such images, it would probably need an additional parameter to define intervals 
and include all pixels belonging to a same interval in the same 
polygon.I just would like to avoid IndexArrayOutOfBoundException. There 
are probably many options : deactivate plugin for this kind of image, intercept 
the exception to provide a more informative message, try to make the plugin 
more robust, map the floating point values to a reasonable set of integer 
values... Let's try to choose something easy so that we can release 1.16 
soon.Anyway, your explanations about the two options will surely 
interest everyone trying to do something useful with this plugin. Can it be 
retrieved from the wiki ?Michaël envoyé : 10 novembre 
2020 à 15:16de : Giuseppe Aruta 
à 
: "[jump-pilot:bugs] " 
<5...@bugs.jump-pilot.p.re.sourceforge.net>objet : [jump-pilot:bugs] #510 
Create Polygon From a Raster bugHi Michael, ...even the time to 
vectorialize a raster with continuous data like DTM084 is incredibly 
long... In theory in mostly case an user chooses one of Raster->Vector tool 
according to the type of the raster she/he wants to convert: a) a 
continuous raster like a DTM. Data are scattered in a continuous interval 
descibing a measure that gradually changes, for instance the elevation or a map 
of temperatures. An user wonts to convert into a contour lines (Raster to 
contours) or trasform into a discrete raster (eg. defining intervals of the 
measure: 10-30% slope, 31-50% slope and so on a) a discrete raster can be 
converted to a polygon layer (the case of Raster to Polygons. See file 
UsoSuolo.tif by Roberto: each number with 3 digits (512, 111, etc) define a 
unique usage of the soil (forsets, cultivar, urban, etc). There is neither no 
uniform measurement (a forest is different from a city) nor a continuous 
gradually change (after 111 there would be a 231 in the scale, for instance): 
we use number because we get advance (and the limit) that the Z value of a 
raster accept only a number (float, double, integer or whatever, but only a 
number not a string). Of coarse, if we consider the limit of the interval 
and the cell size, all the raster are tecnically discrete (each output polygon 
can have a size of the cell size: see Stefan's tools, create a grid of 
points/of polygons). When I added this plugin to OpenJUMP I wanted to 
bypass in one time two problems: a) Sextante Raster to Vector tool on 
discrete raster sometimes was giving wierd results: island of no data where it 
was supposed to have valid data b) the version of Raster to Polygon tool in 
OpenKLEM, derived from AdbToolbox software, was taking a longer time and giving 
sometimes a strange outputs (like sometimes self intersection polygons). 
This plugin seems to solve both situations. OpenKLEM now refers to 
VectorizeAlgorithm class, part AdbToolbox. While embedded OpenJUMP plugin can 
use both algorithm. They both work, except if user wants to convert a 
continuous raster to polygons with AdbToolbox. I will give a look and atry 
to correct or to add some type of check, studing a way to distinguish in 
OpenJUMP a continuous vs discrete raster, not sure if it possible (an histogram 
is required and OJ raster histogram plugin can take a very long time according 
the intervals.Best regards Peppe https://sourceforge.net/p/jump-pilot/bugs/510/";>[bugs:#510] Create 
Polygon From a Raster bugStatus: open 
Milestone: OJ_1.16 Created: Tue Nov 10, 
2020 12:59 PM UTC by michael michaud Last Updated: Tue Nov 
10, 2020 12:59 PM UTC Owner: nobodyThe plugin has 
two modes : AdbToolbox and Sextante. With tiff images of type float like DTM084 
from Roberto Rossi, I can vectorize with Sextante, but Adb throws en exception 
: java.lang.ArrayIndexOutOfBoundsException: Index - out of bounds for 
length 1925123 at 
org.openjump.core.rasterimage.algorithms.VectorizeAlgorithm.toPolygonsAdbToolBox(VectorizeAlgorithm.java:113)
 at 
org.openjump.core.ui.plugin.raster.VectorizeToPolygonsPlugIn.run(VectorizeToPolygonsPlugIn.java:170)
 at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151)Sent
 from sourceforge.net because you indicated interest in https://sourceforge.net/p/jump-pilot/bugs/510/";>https://sourceforge.net/p/jump-pilot/bugs/510/To
 unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/";>https://sourceforge.net/auth/subscriptions/
 


---

** [bugs:#510] Create Polygon From a Raster bug**

**Status:** open
**Milestone:** OJ_1.16
**Created:** Tue Nov 10, 2020 12:59 PM UTC by michael michaud
**Last Updated:** Tu

Re: [JPP-Devel] [jump-pilot:bugs] Re: #510 Create Polygon From a Raster bug

2020-11-10 Thread Rahkonen Jukka (MML)
Hi,

For making it robust OJ could check histogram of the floating point raster and 
warn user with a possibility to cancel. This is for sure slow, but users may 
have floating point rasters with limited number of distinct values.

-Jukka Rahkonen-

Lähettäjä: michael michaud via Jump-pilot-devel 

Lähetetty: tiistai 10. marraskuuta 2020 22.21
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Kopio: michael michaud 
Aihe: [JPP-Devel] [jump-pilot:bugs] Re: #510 Create Polygon From a Raster bug




Hi Peppe,

Thank you for the detailed answer.

Indeed, I was not trying to do something useful, just checking if I did not 
introduce a new bug in RasterImageLayer.

I perfectly understand that applying this tool to a raster containing floating 
point values is not the normal use case. With such images, it would probably 
need an additional parameter to define intervals and include all pixels 
belonging to a same interval in the same polygon.

I just would like to avoid IndexArrayOutOfBoundException. There are probably 
many options : deactivate plugin for this kind of image, intercept the 
exception to provide a more informative message, try to make the plugin more 
robust, map the floating point values to a reasonable set of integer values... 
Let's try to choose something easy so that we can release 1.16 soon.

Anyway, your explanations about the two options will surely interest everyone 
trying to do something useful with this plugin. Can it be retrieved from the 
wiki ?

Michaël

envoyé : 10 novembre 2020 à 15:16
de : Giuseppe Aruta 
mailto:ma15...@users.sourceforge.net>>
à : "[jump-pilot:bugs] " 
<5...@bugs.jump-pilot.p.re.sourceforge.net>
objet : [jump-pilot:bugs] #510 Create Polygon From a Raster bug


Hi Michael,
...even the time to vectorialize a raster with continuous data like DTM084 is 
incredibly long...
In theory in mostly case an user chooses one of Raster->Vector tool according 
to the type of the raster she/he wants to convert:
a) a continuous raster like a DTM. Data are scattered in a continuous interval 
descibing a measure that gradually changes, for instance the elevation or a map 
of temperatures. An user wonts to convert into a contour lines (Raster to 
contours) or trasform into a discrete raster (eg. defining intervals of the 
measure: 10-30% slope, 31-50% slope and so on
a) a discrete raster can be converted to a polygon layer (the case of Raster to 
Polygons. See file UsoSuolo.tif by Roberto: each number with 3 digits (512, 
111, etc) define a unique usage of the soil (forsets, cultivar, urban, etc). 
There is neither no uniform measurement (a forest is different from a city) nor 
a continuous gradually change (after 111 there would be a 231 in the scale, for 
instance): we use number because we get advance (and the limit) that the Z 
value of a raster accept only a number (float, double, integer or whatever, but 
only a number not a string).
Of coarse, if we consider the limit of the interval and the cell size, all the 
raster are tecnically discrete (each output polygon can have a size of the cell 
size: see Stefan's tools, create a grid of points/of polygons).
When I added this plugin to OpenJUMP I wanted to bypass in one time two 
problems:
a) Sextante Raster to Vector tool on discrete raster sometimes was giving wierd 
results: island of no data where it was supposed to have valid data
b) the version of Raster to Polygon tool in OpenKLEM, derived from AdbToolbox 
software, was taking a longer time and giving sometimes a strange outputs (like 
sometimes self intersection polygons).
This plugin seems to solve both situations. OpenKLEM now refers to 
VectorizeAlgorithm class, part AdbToolbox. While embedded OpenJUMP plugin can 
use both algorithm. They both work, except if user wants to convert a 
continuous raster to polygons with AdbToolbox.
I will give a look and atry to correct or to add some type of check, studing a 
way to distinguish in OpenJUMP a continuous vs discrete raster, not sure if it 
possible (an histogram is required and OJ raster histogram plugin can take a 
very long time according the intervals.

Best regards
Peppe



[bugs:#510] Create Polygon From 
a Raster bug

Status: open
Milestone: OJ_1.16
Created: Tue Nov 10, 2020 12:59 PM UTC by michael michaud
Last Updated: Tue Nov 10, 2020 12:59 PM UTC
Owner: nobody

The plugin has two modes : AdbToolbox and Sextante. With tiff images of type 
float like DTM084 from Roberto Rossi, I can vectorize with Sextante, but Adb 
throws en exception :
java.lang.ArrayIndexOutOfBoundsException: Index - out of bounds for length 
1925123
at 
org.openjump.core.rasterimage.algorithms.VectorizeAlgorithm.toPolygonsAdbToolBox(VectorizeAlgorithm.java:113)
at 
org.openjump.core.ui.plugin.raster.VectorizeToPolygonsPlugIn.run(VectorizeToPolygonsPlugIn.java:170)
at 
com.vividsolutions.jump.workbench.ui.task.T

[JPP-Devel] [jump-pilot:bugs] #510 Create Polygon From a Raster bug

2020-11-10 Thread Jukka Rahkonen via Jump-pilot-devel
Hi,

For making it robust OJ could check histogram of the floating point raster and 
warn user with a possibility to cancel. This is for sure slow, but users may 
have floating point rasters with limited number of distinct values.

-Jukka Rahkonen-

Lähettäjä: michael michaud via Jump-pilot-devel 

Lähetetty: tiistai 10. marraskuuta 2020 22.21
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Kopio: michael michaud 
Aihe: [JPP-Devel] [jump-pilot:bugs] Re: #510 Create Polygon From a Raster bug




Hi Peppe,

Thank you for the detailed answer.

Indeed, I was not trying to do something useful, just checking if I did not 
introduce a new bug in RasterImageLayer.

I perfectly understand that applying this tool to a raster containing floating 
point values is not the normal use case. With such images, it would probably 
need an additional parameter to define intervals and include all pixels 
belonging to a same interval in the same polygon.

I just would like to avoid IndexArrayOutOfBoundException. There are probably 
many options : deactivate plugin for this kind of image, intercept the 
exception to provide a more informative message, try to make the plugin more 
robust, map the floating point values to a reasonable set of integer values... 
Let's try to choose something easy so that we can release 1.16 soon.

Anyway, your explanations about the two options will surely interest everyone 
trying to do something useful with this plugin. Can it be retrieved from the 
wiki ?

Michaël

envoyé : 10 novembre 2020 à 15:16
de : Giuseppe Aruta 
mailto:ma15...@users.sourceforge.net>>
à : "[jump-pilot:bugs] " 
<5...@bugs.jump-pilot.p.re.sourceforge.net>
objet : [jump-pilot:bugs] #510 Create Polygon From a Raster bug


Hi Michael,
...even the time to vectorialize a raster with continuous data like DTM084 is 
incredibly long...
In theory in mostly case an user chooses one of Raster->Vector tool according 
to the type of the raster she/he wants to convert:
a) a continuous raster like a DTM. Data are scattered in a continuous interval 
descibing a measure that gradually changes, for instance the elevation or a map 
of temperatures. An user wonts to convert into a contour lines (Raster to 
contours) or trasform into a discrete raster (eg. defining intervals of the 
measure: 10-30% slope, 31-50% slope and so on
a) a discrete raster can be converted to a polygon layer (the case of Raster to 
Polygons. See file UsoSuolo.tif by Roberto: each number with 3 digits (512, 
111, etc) define a unique usage of the soil (forsets, cultivar, urban, etc). 
There is neither no uniform measurement (a forest is different from a city) nor 
a continuous gradually change (after 111 there would be a 231 in the scale, for 
instance): we use number because we get advance (and the limit) that the Z 
value of a raster accept only a number (float, double, integer or whatever, but 
only a number not a string).
Of coarse, if we consider the limit of the interval and the cell size, all the 
raster are tecnically discrete (each output polygon can have a size of the cell 
size: see Stefan's tools, create a grid of points/of polygons).
When I added this plugin to OpenJUMP I wanted to bypass in one time two 
problems:
a) Sextante Raster to Vector tool on discrete raster sometimes was giving wierd 
results: island of no data where it was supposed to have valid data
b) the version of Raster to Polygon tool in OpenKLEM, derived from AdbToolbox 
software, was taking a longer time and giving sometimes a strange outputs (like 
sometimes self intersection polygons).
This plugin seems to solve both situations. OpenKLEM now refers to 
VectorizeAlgorithm class, part AdbToolbox. While embedded OpenJUMP plugin can 
use both algorithm. They both work, except if user wants to convert a 
continuous raster to polygons with AdbToolbox.
I will give a look and atry to correct or to add some type of check, studing a 
way to distinguish in OpenJUMP a continuous vs discrete raster, not sure if it 
possible (an histogram is required and OJ raster histogram plugin can take a 
very long time according the intervals.

Best regards
Peppe



[bugs:#510] Create Polygon From 
a Raster bug

Status: open
Milestone: OJ_1.16
Created: Tue Nov 10, 2020 12:59 PM UTC by michael michaud
Last Updated: Tue Nov 10, 2020 12:59 PM UTC
Owner: nobody

The plugin has two modes : AdbToolbox and Sextante. With tiff images of type 
float like DTM084 from Roberto Rossi, I can vectorize with Sextante, but Adb 
throws en exception :
java.lang.ArrayIndexOutOfBoundsException: Index - out of bounds for length 
1925123
at 
org.openjump.core.rasterimage.algorithms.VectorizeAlgorithm.toPolygonsAdbToolBox(VectorizeAlgorithm.java:113)
at 
org.openjump.core.ui.plugin.raster.VectorizeToPolygonsPlugIn.run(VectorizeToPolygonsPlugIn.java:170)
at 
com.vividsolutions.jump.workbench.ui.task.T

[JPP-Devel] [jump-pilot:bugs] #511 CropWarp raster plugin can't overload existing file

2020-11-10 Thread michael michaud via Jump-pilot-devel



---

** [bugs:#511] CropWarp raster plugin can't overload existing file**

**Status:** open
**Milestone:** undecided
**Created:** Tue Nov 10, 2020 10:01 PM UTC by michael michaud
**Last Updated:** Tue Nov 10, 2020 10:01 PM UTC
**Owner:** nobody


If one process an image with CropWarpPlugin and try to save the result with the 
name  of an existing image (want to replace the former image), there is no  
warning as in other plugins, and it produces a weird image (looks like a mixt 
between the old and the new image).


---

Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/jump-pilot/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/jump-pilot/admin/bugs/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel