[JPP-Devel] SVN: [4593] core/trunk/src/org/openjump/core/rasterimage/styler/resources

2015-12-09 Thread jump-pilot-svn
Revision: 4593
  http://sourceforge.net/p/jump-pilot/code/4593
Author:   ma15569
Date: 2015-12-09 09:52:56 + (Wed, 09 Dec 2015)
Log Message:
---
Added Finnic, French and German Language files for RasterStylePlugIn

Added Paths:
---

core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_de.properties

core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_fi.properties

core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_fr.properties

Added: 
core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_de.properties
===
--- 
core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_de.properties
  (rev 0)
+++ 
core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_de.properties
  2015-12-09 09:52:56 UTC (rev 4593)
@@ -0,0 +1,75 @@
+#Bundle_de.properties
+#Bundle_en.properties
+IntervalPanel.jButton.AddRow=\#T\:Add row
+IntervalPanel.jButton.Ramp=\#T\:Ramp
+IntervalPanel.jButton.RampAll=\#T\:Ramp all
+IntervalPanel.jButton.RemoveRow=\#T\:Remove row
+IntervalPanel.jLabel.Classes=\#T\:Classes\:
+IntervalPanel.jLabel.method=\#T\:Method\:
+org.openjump.core.rasterimage.styler.RasterStylesExtension.Name=\#T\:Raster 
styles...
+org.openjump.core.rasterimage.styler.ui.ColorEditor.Cancel=\#T\:Cancel
+org.openjump.core.rasterimage.styler.ui.ColorEditor.edit=\#T\:edit
+org.openjump.core.rasterimage.styler.ui.ColorEditor.Ok=\#T\:Ok
+org.openjump.core.rasterimage.styler.ui.ColorEditor.PickAColor=\#T\:Pick a 
color
+org.openjump.core.rasterimage.styler.ui.ColorEditor.Transparent=\#T\:Transparent
+org.openjump.core.rasterimage.styler.ui.ColorsTablePanel.Color=\#T\:Color
+org.openjump.core.rasterimage.styler.ui.ColorsTablePanel.ErrorInTable=\#T\:Error
 in table\: 
+org.openjump.core.rasterimage.styler.ui.ColorsTablePanel.MinValue=\#T\:Min. 
value
+org.openjump.core.rasterimage.styler.ui.ColorsTablePanel.Value=\#T\:Value
+org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jButton_AddRow.text=\#T\:Add
 row
+org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jButton_Cancel.text=\#T\:Cancel
+org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jButton_Ok.text=\#T\:Ok
+org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jButton_RemoveRow.text=\#T\:Remove
 row
+org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jLabel_Max.text=\#T\:Max
+org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jLabel_Min.text=\#T\:Min
+org.openjump.core.rasterimage.styler.ui.GradientTablePanel.ColorsNumber.message=\#T\:The
 colors must be at least two.
+org.openjump.core.rasterimage.styler.ui.GradientTablePanel.FractionValues.message=\#T\:The
 values must be in ascending order \n and must not be equal values.
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.EqualInterval=\#T\:Equal
 interval
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.EqualInterval.SelectTowRowsToRamp=\#T\:You
 need to selected two rows to ramp the colours between them.
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.GivenInterval=\#T\:Given
 interval
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.Jenks=\#T\:Jenks
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.MaxBreaks=\#T\:Max
 breaks
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.MeanStDev=\#T\:Mean
 st. dev.
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.Quantiles=\#T\:Quantiles
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.jButton.AddRow=\#T\:Add 
row
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.jButton.Ramp=\#T\:Ramp
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.jButton.RampAll=\#T\:Ramp
 all
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.jButton.RemoveRow=\#T\:Remove
 row
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.jLabel.Classes=\#T\:Classes\:
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.jLabel.classwidth=\#T\:Interval
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.jLabel.method=\#T\:Method\:
+org.openjump.core.rasterimage.styler.ui.IntervalPanel.message.ErrorWhileClassifying=\#T\:Error
 while classifiyng data.
+org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jButton_Cancel.text=\#T\:Cancel
+org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jButton_Memorize.text=\#T\:Memorize
+org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jLabel_Message.text=\#T\:Set
 noData raster value.
+org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jTextField_NoDataValue.text=\#T\:-.0
+org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.Values.message=\#T\:The
 value entered is not valid.
+org.openjump.core.rasterimage.styler.ui.RasterStylesDialog.chooseNoDataColor=\#T\:Choose
 color for nodata

Re: [JPP-Devel] Language files

2015-12-09 Thread Rahkonen Jukka (MML)
Hi,

Do I need to do something special for activating the RasterStylePlugIn? I can’t 
find it from the menus or perhaps I just do not know what to search. Is it for 
Sextante rasters or for some other images?

-Jukka Rahkonen-

Giuseppe Aruta wrote:

Hi all,
I saw that Jukka and Michael upgraded Finnic and French jump.properties file. I 
already did for Italian and Spanish ones.We still miss the final upgrade for 
German language file (as I can see there are more that 250 not translated codes 
on the file). Can Ede or Stefan  work around?
There is still RasterStylePlugIn, added by Alberto, that needs to be partially 
translated.Originally the language files were not integrated into 
jump.properies file but they resides on the folder 
org.openjump.rasterimage.styler.resources (see file Bundle.properties). I 
already translated Italian and Spanish. I ask you to give a look and a little 
time to translate them (73 entries).

Which is the candidate number for next OJ real.? I suggest for 1.9 as there are 
some new important features (apart from many intersting new plugins), like new 
framework for  on Sextante raster. And Style/zoom to maximun extend plugins now 
recognize also other layerables (WMS/Sextante Raster Images), without loosing 
compatibility.
I invite you to give a look at the roadmap page and add your comments. 
http://ojwiki.soldin.de/index.php?title=OpenJUMP_Roadmap
Best regards
Peppe
--
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Language files

2015-12-09 Thread Stefan Steiniger

>
> i often struggle to grasp the meaning or what exactly a plugin is doing 
> GIS-wise in english already, so Stefan - would you?
>

until when? ;)

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


Re: [JPP-Devel] Language files

2015-12-09 Thread Giuseppe Aruta
No Jukka,
they do basically the same and thanks to Alberto they share the same
libraries/methods.
There is a chronological order:
a) the raster color editor on menu context is the first and it was added by
Stefan some years ago
b) I modified this version on the one available on Layer context – Change
styles  in order to have more features
c) Alberto added the last new plugin wich is more featured and well done.

I personally work with raster and prefer to use Alberto's version. I
suggested some month ago on the list  to "obliterate" a) and b) in order to
support only the most featured one. And the answer was to wait Users'
opinion (which never come). Now it is the time to take a final decision.
Peppe

2015-12-09 13:39 GMT+01:00 Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi>:

> Thanks Peppe, I found it now.
>
>
>
> For Sextante image layers there are now these tools:
>
> -  Raster – Raster color editor (very basic)
>
> -  Layer context – Change styles – Raster color editor tab (more
> features)
>
> -  Layer context – Raster styles (even more features)
>
>
>
> Are they so different that we need all those in the future?
>
>
>
> -Jukka Rahkonen-
>
>
>
> Giuseppe Aruta wrote:
>
>
>
> @Jukka,
>
> This plugin is related to monoband sextante raster image layers (tif, flt
> or asc).
>
> The plugin is visible on layer context menu (it is the last one)
>
> Peppe
>
>
>
> 2015-12-09 11:54 GMT+01:00 :
>
> On 09.12.2015 11:24, Giuseppe Aruta wrote:
> > Hi all,
> > I saw that Jukka and Michael upgraded Finnic and French jump.properties
> file. I already did for Italian and Spanish ones.We still miss the final
> upgrade for German language file (as I can see there are more that 250 not
> translated codes on the file). Can Ede or Stefan  work around?
>
> i often struggle to grasp the meaning or what exactly a plugin is doing
> GIS-wise in english already, so Stefan - would you?
>
> > There is still RasterStylePlugIn, added by Alberto, that needs to be
> partially translated.Originally the language files were not integrated into
> jump.properies file but they resides on the folder
> org.openjump.rasterimage.styler.resources (see file Bundle.properties). I
> already translated Italian and Spanish. I ask you to give a look and a
> little time to translate them (73 entries).
>
> we should integrate them into our language files or at least move them to
> a subfolder of src/language/
>
> > Which is the candidate number for next OJ real.? I suggest for 1.9 as
> there are some new important features (apart from many intersting new
> plugins), like new framework for  on Sextante raster. And Style/zoom to
> maximun extend plugins now recognize also other layerables (WMS/Sextante
> Raster Images), without loosing compatibility.
>
> we currently sport the version scheme major.minor.maintenance
>
> as far as i am concerned we raise the minor number until we hit a major
> backward incompatibility or add something really impressive. like the
> plugin manager or online updates or such.
>
>
> ..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] Language files

2015-12-09 Thread edgar . soldin
On 09.12.2015 14:13, Stefan Steiniger wrote:
> 
>>
>> i often struggle to grasp the meaning or what exactly a plugin is doing 
>> GIS-wise in english already, so Stefan - would you?
>>
> 
> until when? ;)

i am planning to release maybe between christmas and new year? if it helps, you 
could download the language file from 
https://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/src/language/ 
and just send it to me to commit in case you haven't a set up svn client these 
days

..ede

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


Re: [JPP-Devel] Language files

2015-12-09 Thread Rahkonen Jukka (MML)
Thanks Peppe, I found it now.

For Sextante image layers there are now these tools:

-  Raster – Raster color editor (very basic)

-  Layer context – Change styles – Raster color editor tab (more 
features)

-  Layer context – Raster styles (even more features)

Are they so different that we need all those in the future?

-Jukka Rahkonen-

Giuseppe Aruta wrote:

@Jukka,
This plugin is related to monoband sextante raster image layers (tif, flt or 
asc).
The plugin is visible on layer context menu (it is the last one)
Peppe

2015-12-09 11:54 GMT+01:00 >:
On 09.12.2015 11:24, Giuseppe Aruta wrote:
> Hi all,
> I saw that Jukka and Michael upgraded Finnic and French jump.properties file. 
> I already did for Italian and Spanish ones.We still miss the final upgrade 
> for German language file (as I can see there are more that 250 not translated 
> codes on the file). Can Ede or Stefan  work around?

i often struggle to grasp the meaning or what exactly a plugin is doing 
GIS-wise in english already, so Stefan - would you?

> There is still RasterStylePlugIn, added by Alberto, that needs to be 
> partially translated.Originally the language files were not integrated into 
> jump.properies file but they resides on the folder 
> org.openjump.rasterimage.styler.resources (see file Bundle.properties). I 
> already translated Italian and Spanish. I ask you to give a look and a little 
> time to translate them (73 entries).

we should integrate them into our language files or at least move them to a 
subfolder of src/language/

> Which is the candidate number for next OJ real.? I suggest for 1.9 as there 
> are some new important features (apart from many intersting new plugins), 
> like new framework for  on Sextante raster. And Style/zoom to maximun extend 
> plugins now recognize also other layerables (WMS/Sextante Raster Images), 
> without loosing compatibility.

we currently sport the version scheme major.minor.maintenance

as far as i am concerned we raise the minor number until we hit a major 
backward incompatibility or add something really impressive. like the plugin 
manager or online updates or such.


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


[JPP-Devel] SVN: [4594] core/trunk/src/org/openjump/core/rasterimage/styler/resources/ Bundle_fi.properties

2015-12-09 Thread jump-pilot-svn
Revision: 4594
  http://sourceforge.net/p/jump-pilot/code/4594
Author:   jratike80
Date: 2015-12-09 13:40:35 + (Wed, 09 Dec 2015)
Log Message:
---
Finnish translation for the raster styler

Modified Paths:
--

core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_fi.properties

Modified: 
core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_fi.properties
===
--- 
core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_fi.properties
  2015-12-09 09:52:56 UTC (rev 4593)
+++ 
core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_fi.properties
  2015-12-09 13:40:35 UTC (rev 4594)
@@ -1,75 +1,74 @@
 #Bundle_fi.properties
-#Bundle_en.properties
-IntervalPanel.jButton.AddRow=\#T\:Add row
-IntervalPanel.jButton.Ramp=\#T\:Ramp
-IntervalPanel.jButton.RampAll=\#T\:Ramp all
-IntervalPanel.jButton.RemoveRow=\#T\:Remove row
-IntervalPanel.jLabel.Classes=\#T\:Classes\:
-IntervalPanel.jLabel.method=\#T\:Method\:
-org.openjump.core.rasterimage.styler.RasterStylesExtension.Name=\#T\:Raster 
styles...
-org.openjump.core.rasterimage.styler.ui.ColorEditor.Cancel=\#T\:Cancel
-org.openjump.core.rasterimage.styler.ui.ColorEditor.edit=\#T\:edit
-org.openjump.core.rasterimage.styler.ui.ColorEditor.Ok=\#T\:Ok
-org.openjump.core.rasterimage.styler.ui.ColorEditor.PickAColor=\#T\:Pick a 
color
-org.openjump.core.rasterimage.styler.ui.ColorEditor.Transparent=\#T\:Transparent
-org.openjump.core.rasterimage.styler.ui.ColorsTablePanel.Color=\#T\:Color
-org.openjump.core.rasterimage.styler.ui.ColorsTablePanel.ErrorInTable=\#T\:Error
 in table\: 
-org.openjump.core.rasterimage.styler.ui.ColorsTablePanel.MinValue=\#T\:Min. 
value
-org.openjump.core.rasterimage.styler.ui.ColorsTablePanel.Value=\#T\:Value
-org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jButton_AddRow.text=\#T\:Add
 row
-org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jButton_Cancel.text=\#T\:Cancel
-org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jButton_Ok.text=\#T\:Ok
-org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jButton_RemoveRow.text=\#T\:Remove
 row
-org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jLabel_Max.text=\#T\:Max
-org.openjump.core.rasterimage.styler.ui.CustomGradientColorsDialog.jLabel_Min.text=\#T\:Min
-org.openjump.core.rasterimage.styler.ui.GradientTablePanel.ColorsNumber.message=\#T\:The
 colors must be at least two.
-org.openjump.core.rasterimage.styler.ui.GradientTablePanel.FractionValues.message=\#T\:The
 values must be in ascending order \n and must not be equal values.
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.EqualInterval=\#T\:Equal
 interval
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.EqualInterval.SelectTowRowsToRamp=\#T\:You
 need to selected two rows to ramp the colours between them.
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.GivenInterval=\#T\:Given
 interval
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.Jenks=\#T\:Jenks
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.MaxBreaks=\#T\:Max
 breaks
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.MeanStDev=\#T\:Mean
 st. dev.
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.classMethods.Quantiles=\#T\:Quantiles
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.jButton.AddRow=\#T\:Add 
row
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.jButton.Ramp=\#T\:Ramp
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.jButton.RampAll=\#T\:Ramp
 all
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.jButton.RemoveRow=\#T\:Remove
 row
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.jLabel.Classes=\#T\:Classes\:
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.jLabel.classwidth=\#T\:Interval
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.jLabel.method=\#T\:Method\:
-org.openjump.core.rasterimage.styler.ui.IntervalPanel.message.ErrorWhileClassifying=\#T\:Error
 while classifiyng data.
-org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jButton_Cancel.text=\#T\:Cancel
-org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jButton_Memorize.text=\#T\:Memorize
-org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jLabel_Message.text=\#T\:Set
 noData raster value.
-org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jTextField_NoDataValue.text=\#T\:-.0
-org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.Values.message=\#T\:The
 value entered is not valid.
-org.openjump.core.rasterimage.styler.ui.RasterStylesDialog.chooseNoDataColor=\#T\:Choose
 color for nodata
-org.openjump.core.rasterimage.styler.ui.RasterStylesDialog.fileChooser.sld=\#T\:SLD
 Style files
-org.openjump.core.rasterimage.styler.ui.RasterStylesDialog.jButton_Apply.text=\#T\:Apply

Re: [JPP-Devel] Add some JTS functions before next release?

2015-12-09 Thread Rahkonen Jukka (MML)
Hi Michaël,

I have tried most functions which are available in JTS Testbuilder but it feels 
that there are not many that could be just added into OpenJUMP without making 
new user interface elements for using them. These three might be possible to 
add without new UI but I am  not sure how useful they are for the users


-  TranslateCentreToOrigin

-  TranslateToOrigin

-  OctagonalEnvelope

These functions feel interesting but they require some programming:

-  Scale

-  CreateFractalShape feels good for creating complex geometries for 
testing.

-  GetGeometryN and GetPolygonHoleN for editing and removing parts and 
holes from multigeometries and geometrycollections - should be topped up with 
UI button GetNext for selecting and panning to the next geometry/hole.

-  ExtractLine and ExtractPoint would be nice additions to linear 
referencing tools. Extract line tool could be improved a bit to accept also 
start distance for the extracted line (extract between 1 and 5 km) and count 
distance from the end of the linestring (extract the last km).

I also feel that it could be possible to develop a nice plugin that would 
utilize the numerous RandomPoints functions. I have not yet discovered an exact 
use case but perhaps anonymizing statistical data could be one, and splitting 
polygons into about equal areas by creating RandomPointsInPolygon first and 
applying Voronoi polygons and merging neighboring polygons in some clever way 
afterwards.  See this for reference 
http://gis.stackexchange.com/questions/171727/polygon-split-with-defined-area.

I think that all these can be rather plans for the future than anything to 
implement into the next OJ release.

-Jukka-

Michaël Michaud wrote:

Hi Jukka,

Adding such geometry functions to OpenJUMP is generally not difficult. I have 
added "Minimum Bounding Circle" along with some others about one year ago,
and if you notice some other useful jts functions which are not available in 
OpenJUMP, I will be pleased to add them.

Michaël
Le 19/11/2015 13:24, Rahkonen Jukka (MML) a écrit :
Hi,

There are some cool function in JTS 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/. I guess that 
some OpenJUMP functions in the geometry functions menu are the same JTS 
functions, like "Minimum Bounding Circle".

I wonder how difficult it would be to add some more functions from JTS to 
OpenJUMP. Best way for browsing and testing the available functions is to 
download JTS from https://sourceforge.net/projects/jts-topo-suite/files/jts/ 
and run the testbuilder application from the bin directory.

It seems that there is some unmaintained jts-jump plugin 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts-jump but I 
have no idea about what it was.

-Jukka Rahkonen-




--




___

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] Add some JTS functions before next release?

2015-12-09 Thread Michaël Michaud

Hi,

Some functions seems interesting enough. For some others, I would need 
real use case

to motivate me.
For translate/scale function, I think we already have good tooling with 
interactive move/scale tools in the toolbox

and affine transform in the menu. Any think you can't do with that ?
I don't know any usage of octogonal envelope. Maybe used by JTS for 
internal algorithms.


Create fractal geometries or random points/lines/polygons seems 
interesting to me (I mean I often have to
create random data for testing purpose. A few years ago, I had created a 
koch curve of 1 000 000 points to

test really big object).

OpenJUMP can already extract points like TestBuilder (and more as it can 
introduce offset

thanks to internal JTS API)
ExtractLine would be a nice addition.

Michaël

Le 09/12/2015 21:53, Landon Blake a écrit :

Jukka:

On which JTS class do you find the scale function?
How do we currently support polygon hole editing in OpenJUMP?

Landon

On Wed, Dec 9, 2015 at 6:37 AM, Rahkonen Jukka (MML) 
> wrote:


Hi Michaël,

I have tried most functions which are available in JTS Testbuilder
but it feels that there are not many that could be just added into
OpenJUMP without making new user interface elements for using
them. These three might be possible to add without new UI but I
am  not sure how useful they are for the users

-TranslateCentreToOrigin

-TranslateToOrigin

-OctagonalEnvelope

These functions feel interesting but they require some programming:

-Scale

-CreateFractalShape feels good for creating complex geometries for
testing.

-GetGeometryN and GetPolygonHoleN for editing and removing parts
and holes from multigeometries and geometrycollections – should be
topped up with UI button GetNext for selecting and panning to the
next geometry/hole.

-ExtractLine and ExtractPoint would be nice additions to linear
referencing tools. Extract line tool could be improved a bit to
accept also start distance for the extracted line (extract between
1 and 5 km) and count distance from the end of the linestring
(extract the last km).

I also feel that it could be possible to develop a nice plugin
that would utilize the numerous RandomPoints functions. I have not
yet discovered an exact use case but perhaps anonymizing
statistical data could be one, and splitting polygons into about
equal areas by creating RandomPointsInPolygon first and applying
Voronoi polygons and merging neighboring polygons in some clever
way afterwards.  See this for reference

http://gis.stackexchange.com/questions/171727/polygon-split-with-defined-area.

I think that all these can be rather plans for the future than
anything to implement into the next OJ release.

-Jukka-

Michaël Michaud wrote:

Hi Jukka,

Adding such geometry functions to OpenJUMP is generally not
difficult. I have added “Minimum Bounding Circle” along with some
others about one year ago,
and if you notice some other useful jts functions which are not
available in OpenJUMP, I will be pleased to add them.

Michaël

Le 19/11/2015 13:24, Rahkonen Jukka (MML) a écrit :

Hi,

There are some cool function in JTS
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/. I
guess that some OpenJUMP functions in the geometry functions
menu are the same JTS functions, like “Minimum Bounding Circle”.

I wonder how difficult it would be to add some more functions
from JTS to OpenJUMP. Best way for browsing and testing the
available functions is to download JTS from
https://sourceforge.net/projects/jts-topo-suite/files/jts/ and
run the testbuilder application from the bin directory.

It seems that there is some unmaintained jts-jump plugin
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts-jump
but I have no idea about what it was.

-Jukka Rahkonen-





--




___

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 

Re: [JPP-Devel] Add some JTS functions before next release?

2015-12-09 Thread Rahkonen Jukka (MML)
Hi Landon,

Actually I believe that scaling has been there already in the original JUMP as 
combination of Scale X and Scale Y of the Affine transformation and Scale 
function in the JTS 1.13 TestBuilder may be just a shortcut. You are for sure 
better than I in reading JTS source code.

-Jukka-

Landon Blake wrote:

Jukka:

On which JTS class do you find the scale function?
How do we currently support polygon hole editing in OpenJUMP?

Landon

On Wed, Dec 9, 2015 at 6:37 AM, Rahkonen Jukka (MML) 
>
 wrote:
Hi Michaël,

I have tried most functions which are available in JTS Testbuilder but it feels 
that there are not many that could be just added into OpenJUMP without making 
new user interface elements for using them. These three might be possible to 
add without new UI but I am  not sure how useful they are for the users


-  TranslateCentreToOrigin

-  TranslateToOrigin

-  OctagonalEnvelope

These functions feel interesting but they require some programming:

-  Scale

-  CreateFractalShape feels good for creating complex geometries for 
testing.

-  GetGeometryN and GetPolygonHoleN for editing and removing parts and 
holes from multigeometries and geometrycollections – should be topped up with 
UI button GetNext for selecting and panning to the next geometry/hole.

-  ExtractLine and ExtractPoint would be nice additions to linear 
referencing tools. Extract line tool could be improved a bit to accept also 
start distance for the extracted line (extract between 1 and 5 km) and count 
distance from the end of the linestring (extract the last km).

I also feel that it could be possible to develop a nice plugin that would 
utilize the numerous RandomPoints functions. I have not yet discovered an exact 
use case but perhaps anonymizing statistical data could be one, and splitting 
polygons into about equal areas by creating RandomPointsInPolygon first and 
applying Voronoi polygons and merging neighboring polygons in some clever way 
afterwards.  See this for reference 
http://gis.stackexchange.com/questions/171727/polygon-split-with-defined-area.

I think that all these can be rather plans for the future than anything to 
implement into the next OJ release.

-Jukka-

Michaël Michaud wrote:

Hi Jukka,

Adding such geometry functions to OpenJUMP is generally not difficult. I have 
added “Minimum Bounding Circle” along with some others about one year ago,
and if you notice some other useful jts functions which are not available in 
OpenJUMP, I will be pleased to add them.

Michaël
Le 19/11/2015 13:24, Rahkonen Jukka (MML) a écrit :
Hi,

There are some cool function in JTS 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/. I guess that 
some OpenJUMP functions in the geometry functions menu are the same JTS 
functions, like “Minimum Bounding Circle”.

I wonder how difficult it would be to add some more functions from JTS to 
OpenJUMP. Best way for browsing and testing the available functions is to 
download JTS from https://sourceforge.net/projects/jts-topo-suite/files/jts/ 
and run the testbuilder application from the bin directory.

It seems that there is some unmaintained jts-jump plugin 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts-jump but I 
have no idea about what it was.

-Jukka Rahkonen-



--



___

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] Language files

2015-12-09 Thread Michaël Michaud

I will translate bundle.properties to french.

Do you know why there are duplicate lines (at least duplicate keys) in 
Bundle.properties ?

(I already found some in jump.properties a few days ago).

Michaël

Le 09/12/2015 11:24, Giuseppe Aruta a écrit :

Hi all,
I saw that Jukka and Michael upgraded Finnic and French 
jump.properties file. I already did for Italian and Spanish ones.We 
still miss the final upgrade for German language file (as I can see 
there are more that 250 not translated codes on the file). Can Ede or 
Stefan  work around?


There is still RasterStylePlugIn, added by Alberto, that needs to be 
partially translated.Originally the language files were not integrated 
into jump.properies file but they resides on the folder 
org.openjump.rasterimage.styler.resources (see file 
Bundle.properties). I already translated Italian and Spanish. I ask 
you to give a look and a little time to translate them (73 entries).


Which is the candidate number for next OJ real.? I suggest for 1.9 as 
there are some new important features (apart from many intersting new 
plugins), like new framework for  on Sextante raster. And Style/zoom 
to maximun extend plugins now recognize also other layerables 
(WMS/Sextante Raster Images), without loosing compatibility.


I invite you to give a look at the roadmap page and add your comments. 
http://ojwiki.soldin.de/index.php?title=OpenJUMP_Roadmap


Best regards

Peppe


--


___
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] Add some JTS functions before next release?

2015-12-09 Thread Landon Blake
Jukka:

On which JTS class do you find the scale function?
How do we currently support polygon hole editing in OpenJUMP?

Landon

On Wed, Dec 9, 2015 at 6:37 AM, Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi> wrote:

> Hi Michaël,
>
>
>
> I have tried most functions which are available in JTS Testbuilder but it
> feels that there are not many that could be just added into OpenJUMP
> without making new user interface elements for using them. These three
> might be possible to add without new UI but I am  not sure how useful they
> are for the users
>
>
>
> -  TranslateCentreToOrigin
>
> -  TranslateToOrigin
>
> -  OctagonalEnvelope
>
>
>
> These functions feel interesting but they require some programming:
>
> -  Scale
>
> -  CreateFractalShape feels good for creating complex geometries
> for testing.
>
> -  GetGeometryN and GetPolygonHoleN for editing and removing
> parts and holes from multigeometries and geometrycollections – should be
> topped up with UI button GetNext for selecting and panning to the next
> geometry/hole.
>
> -  ExtractLine and ExtractPoint would be nice additions to linear
> referencing tools. Extract line tool could be improved a bit to accept also
> start distance for the extracted line (extract between 1 and 5 km) and
> count distance from the end of the linestring (extract the last km).
>
>
>
> I also feel that it could be possible to develop a nice plugin that would
> utilize the numerous RandomPoints functions. I have not yet discovered an
> exact use case but perhaps anonymizing statistical data could be one, and
> splitting polygons into about equal areas by creating RandomPointsInPolygon
> first and applying Voronoi polygons and merging neighboring polygons in
> some clever way afterwards.  See this for reference
> http://gis.stackexchange.com/questions/171727/polygon-split-with-defined-area
> .
>
>
>
> I think that all these can be rather plans for the future than anything to
> implement into the next OJ release.
>
>
>
> -Jukka-
>
>
>
> Michaël Michaud wrote:
>
>
>
> Hi Jukka,
>
> Adding such geometry functions to OpenJUMP is generally not difficult. I
> have added “Minimum Bounding Circle” along with some others about one
> year ago,
> and if you notice some other useful jts functions which are not available
> in OpenJUMP, I will be pleased to add them.
>
> Michaël
>
> Le 19/11/2015 13:24, Rahkonen Jukka (MML) a écrit :
>
> Hi,
>
>
>
> There are some cool function in JTS
> https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/. I guess
> that some OpenJUMP functions in the geometry functions menu are the same
> JTS functions, like “Minimum Bounding Circle”.
>
>
>
> I wonder how difficult it would be to add some more functions from JTS to
> OpenJUMP. Best way for browsing and testing the available functions is to
> download JTS from
> https://sourceforge.net/projects/jts-topo-suite/files/jts/ and run the
> testbuilder application from the bin directory.
>
>
>
> It seems that there is some unmaintained jts-jump plugin
> https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts-jump
> but I have no idea about what it was.
>
>
>
> -Jukka Rahkonen-
>
>
>
>
> --
>
>
>
>
> ___
>
> 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] Add some JTS functions before next release?

2015-12-09 Thread Michaël Michaud

Forgot to comment one suggestion

GetGeometryN and GetPolygonHoleN : how could it be more useful than the 
"select component" and "select linestring" (second and third select tool 
of the toolbox) ?
GetGeometryN and GetPolygonHoleN are very useful for development 
purpose, or in a SQL context, but I can't see any use case in a GIS 
context like OpenJUMP (but I would be happy to discover one ;-).


Michaël

Le 09/12/2015 15:37, Rahkonen Jukka (MML) a écrit :


Hi Michaël,

I have tried most functions which are available in JTS Testbuilder but 
it feels that there are not many that could be just added into 
OpenJUMP without making new user interface elements for using them. 
These three might be possible to add without new UI but I am  not sure 
how useful they are for the users


-TranslateCentreToOrigin

-TranslateToOrigin

-OctagonalEnvelope

These functions feel interesting but they require some programming:

-Scale

-CreateFractalShape feels good for creating complex geometries for 
testing.


-GetGeometryN and GetPolygonHoleN for editing and removing parts and 
holes from multigeometries and geometrycollections – should be topped 
up with UI button GetNext for selecting and panning to the next 
geometry/hole.


-ExtractLine and ExtractPoint would be nice additions to linear 
referencing tools. Extract line tool could be improved a bit to accept 
also start distance for the extracted line (extract between 1 and 5 
km) and count distance from the end of the linestring (extract the 
last km).


I also feel that it could be possible to develop a nice plugin that 
would utilize the numerous RandomPoints functions. I have not yet 
discovered an exact use case but perhaps anonymizing statistical data 
could be one, and splitting polygons into about equal areas by 
creating RandomPointsInPolygon first and applying Voronoi polygons and 
merging neighboring polygons in some clever way afterwards.  See this 
for reference 
http://gis.stackexchange.com/questions/171727/polygon-split-with-defined-area.


I think that all these can be rather plans for the future than 
anything to implement into the next OJ release.


-Jukka-

Michaël Michaud wrote:

Hi Jukka,

Adding such geometry functions to OpenJUMP is generally not difficult. 
I have added “Minimum Bounding Circle” along with some others about 
one year ago,
and if you notice some other useful jts functions which are not 
available in OpenJUMP, I will be pleased to add them.


Michaël

Le 19/11/2015 13:24, Rahkonen Jukka (MML) a écrit :

Hi,

There are some cool function in JTS
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/. I
guess that some OpenJUMP functions in the geometry functions menu
are the same JTS functions, like “Minimum Bounding Circle”.

I wonder how difficult it would be to add some more functions from
JTS to OpenJUMP. Best way for browsing and testing the available
functions is to download JTS from
https://sourceforge.net/projects/jts-topo-suite/files/jts/ and run
the testbuilder application from the bin directory.

It seems that there is some unmaintained jts-jump plugin
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts-jump
but I have no idea about what it was.

-Jukka Rahkonen-





--




___

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


[JPP-Devel] SVN: [4595] plug-ins/ViewManagerPlugin/trunk

2015-12-09 Thread jump-pilot-svn
Revision: 4595
  http://sourceforge.net/p/jump-pilot/code/4595
Author:   michaudm
Date: 2015-12-09 22:59:28 + (Wed, 09 Dec 2015)
Log Message:
---
New capability to replace a view of the viewset by the current view.

Modified Paths:
--

plug-ins/ViewManagerPlugin/trunk/resources/view_manager/language/jump.properties

plug-ins/ViewManagerPlugin/trunk/resources/view_manager/language/jump_fr.properties

plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewSet.java

plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewSetPanel.java

Modified: 
plug-ins/ViewManagerPlugin/trunk/resources/view_manager/language/jump.properties
===
--- 
plug-ins/ViewManagerPlugin/trunk/resources/view_manager/language/jump.properties
2015-12-09 13:40:35 UTC (rev 4594)
+++ 
plug-ins/ViewManagerPlugin/trunk/resources/view_manager/language/jump.properties
2015-12-09 22:59:28 UTC (rev 4595)
@@ -22,3 +22,5 @@
 ViewSetPanel.move-up = Move up
 ViewSetPanel.move-down = Move down
 ViewSetPanel.move-to-bottom = Move to bottom
+ViewSetPanel.replace-by-current-view = Replace by current view
+ViewSetPanel.replace-by-selected-layers = Replace by selected layers

Modified: 
plug-ins/ViewManagerPlugin/trunk/resources/view_manager/language/jump_fr.properties
===
--- 
plug-ins/ViewManagerPlugin/trunk/resources/view_manager/language/jump_fr.properties
 2015-12-09 13:40:35 UTC (rev 4594)
+++ 
plug-ins/ViewManagerPlugin/trunk/resources/view_manager/language/jump_fr.properties
 2015-12-09 22:59:28 UTC (rev 4595)
@@ -21,4 +21,6 @@
 ViewSetPanel.move-to-top = D\xE9placer tout en haut
 ViewSetPanel.move-up = D\xE9placer vers le haut
 ViewSetPanel.move-down = D\xE9pacer vers le bas
-ViewSetPanel.move-to-bottom = D\xE9placer tout en bas
\ No newline at end of file
+ViewSetPanel.move-to-bottom = D\xE9placer tout en bas
+ViewSetPanel.replace-by-current-view = Remplacer par la vue courante
+ViewSetPanel.replace-by-selected-layers = Remplacer par les couches 
s\xE9lectionn\xE9es
\ No newline at end of file

Modified: 
plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewSet.java
===
--- 
plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewSet.java  
2015-12-09 13:40:35 UTC (rev 4594)
+++ 
plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewSet.java  
2015-12-09 22:59:28 UTC (rev 4595)
@@ -14,9 +14,10 @@
 @XmlRootElement
 public class ViewSet {
 
-public static int REMOVE = -1;
-public static int MOVMOD =  0;
-public static int ADD=  1;
+public static int REMOVE  = -1;
+public static int MOVMOD  =  0;
+public static int ADD =  1;
+public static int REPLACE =  2;
 
 List listeners = new ArrayList();
 
@@ -78,6 +79,14 @@
 }
 }
 
+public void replaceView(View oldView, View newView) {
+int pos = views.indexOf(oldView);
+if (pos>0) {
+views.set(pos, newView);
+fireReplaceView(oldView);
+}
+}
+
 public void fireAddView(View view) {
 for (Listener listener : listeners) {
 listener.actionPerformed(this, ADD, view);
@@ -96,6 +105,12 @@
 }
 }
 
+public void fireReplaceView(View oldView) {
+for (Listener listener : listeners) {
+listener.actionPerformed(this, REPLACE, oldView);
+}
+}
+
 public String getName() {
 return name;
 }

Modified: 
plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewSetPanel.java
===
--- 
plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewSetPanel.java
 2015-12-09 13:40:35 UTC (rev 4594)
+++ 
plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewSetPanel.java
 2015-12-09 22:59:28 UTC (rev 4595)
@@ -19,9 +19,11 @@
 I18N I18N_ = I18N.getInstance("view_manager");
 
 ViewSet viewSet;
+PlugInContext context;
 
 public ViewSetPanel(final PlugInContext context, final ViewSet viewSet) {
 super(new GridBagLayout());
+this.context = context;
 setBorder(BorderFactory.createLineBorder(Color.black));
 initToolBar();
 if (viewSet != null) {
@@ -79,6 +81,8 @@
 private JMenuItem upMenuItem = new 
JMenuItem(I18N_.getText("view_manager","ViewSetPanel.move-up"));
 private JMenuItem downMenuItem = new 
JMenuItem(I18N_.getText("view_manager","ViewSetPanel.move-down"));
 private JMenuItem bottomMenuItem = new 
JMenuItem(I18N_.getText("view_manager","ViewSetPanel.move-to-bottom"));
+private JMenuItem replaceByCurrentViewItem = new 
JMenuItem(I18N_.getText("view_manager","ViewSetPanel.replace-by-current-view"));
+private JMenuItem 

Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-09 Thread Rahkonen Jukka (MML)
Hi,

This version makes connection with out Oracle rather fast and reading data is 
successful.

I have one suggestion: If adding a new layer fails because of some ORA-error it 
would be better not to add the layer into the OpenJUMP project. Test case: Add 
a layer with invalid WHERE. It seems to be that if user does not delete those 
non-operating layers then OpenJUMP is sending a new SQL request every time the 
map is panned or zoomed and depending on where the error happens the query may 
run quite a long time.

-Jukka Rahkonen-

Nicolas Ribot wrote:

Hi,

Oracle Spatial support has been added to OJ core (read-only).
It works the same way as Postgis support: define a DB connection to Oracle and 
choose spatial layers from the list of found layers to display them in OJ

Oracle 9i -> 12c supported (though only tested recently with Oracle 11i and 
12c).

The SpatialDatabases plugin also contains code to support MariaDB/MySQL and 
Spatialite. (SQL Server in the pipe...)

I was thinking about adding this code to the core, too.
What do you think ?

Nicolas


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