Re: [JPP-Devel] ViewManager plugin

2015-12-19 Thread Giuseppe Aruta
I was testing SLD for OpenJUMP in order to save layer symbols together with
a shapefile (to find a way to share legends/symbols with other GIS). Your
project seems to me quite interesting. I am waiting for documentation
before to transalte it in Italian/Spanish.
Thanks
Peppe



2015-12-19 12:47 GMT+01:00 Michaël Michaud :

> Hi,
>
> Just added ViewManager plugin in
>
> https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/More%20Plugins/ViewManager%20PlugIn/
>
> I'll work on a small documentation soon.
> The plugin is an extension I was missing but it is partially redundant
> with oj capability to save layer symbolization
> in a project or in sld files. Main purpose is to be able to switch
> easily from one pre-defined symbolization to another
> in a single project.
>
> If other users find it useful, we'll envisage its inclusion in PLUS
> version.
> You'll find language file for translation in the src package if you're
> interested to have it in your language.
>
> 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] spatialdb datastores Fwd: SVN: [4640] core/trunk/src/com/vividsolutions/jump

2015-12-19 Thread Michaël Michaud
Hi Ede,

Just made a quick test with postgis and h2. It seems to be fine.
Hopefully, I'll do more tests the week after christmas.

Michaël

Le 19/12/2015 19:15, edgar.sol...@web.de a écrit :
> hey Nico, Mike,
>
> just cleaned up the SpatialDatabasesDataStoreDriver to make it truely generic 
> (r4640). can you please doublecheck that everything still works smoothly?
>
> thx.. ede
>
>
>  Forwarded Message 
> Subject: [JPP-Devel] SVN: [4640] core/trunk/src/com/vividsolutions/jump
> Date: Sat, 19 Dec 2015 18:10:26 +
> From: jump-pilot-...@lists.sourceforge.net
> Reply-To: OpenJump develop and use 
> To: jump-pilot-devel@lists.sourceforge.net
>
> Revision: 4640
>http://sourceforge.net/p/jump-pilot/code/4640
> Author:   edso
> Date: 2015-12-19 18:10:26 + (Sat, 19 Dec 2015)
> Log Message:
> ---
> cleanup
> made SpatialDatabasesDataStoreDrivers abstract
> moved implementation specific code from it's createConnection() method into 
> the actual implementations
>
> Modified Paths:
> --
>  core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/mariadb/MariadbDataStoreDriver.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/oracle/OracleDSMetadata.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/oracle/OracleDataStoreDriver.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/postgis/PostgisDataStoreDriver.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDSConnection.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDSMetadata.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDSMetadata.java
>  
> core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDataStoreDriver.java
>  
> core/trunk/src/com/vividsolutions/jump/workbench/datastore/ConnectionManager.java
>
> Added Paths:
> ---
>  
> core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/AbstractSpatialDatabasesDataStoreDriver.java
>
> Removed Paths:
> -
>  
> core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDataStoreDriver.java
>
> Modified: 
> core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java
> ===
> --- core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java 
> 2015-12-19 11:58:09 UTC (rev 4639)
> +++ core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java 
> 2015-12-19 18:10:26 UTC (rev 4640)
> @@ -12,7 +12,7 @@
> FeatureInputStream execute(Query query) throws Exception;
> void close() throws DataStoreException;
> boolean isClosed() throws DataStoreException;
> -  // Nicolas Ribot: adds a method: getConnection now several Spatial 
> Databases can inherit this class
> -  Connection getConnection();
> +  // Nicolas Ribot: added now several Spatial Databases can implement this 
> class
> +  Connection getJdbcConnection();
>   
>   }
> \ No newline at end of file
>
> Modified: 
> core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java
> ===
> --- 
> core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java
> 2015-12-19 11:58:09 UTC (rev 4639)
> +++ 
> core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java
> 2015-12-19 18:10:26 UTC (rev 4640)
> @@ -1,17 +1,37 @@
>   package com.vividsolutions.jump.datastore.h2;
>   
> -import 
> com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDataStoreDriver;
> +import java.sql.Connection;
>   
> +import com.vividsolutions.jump.datastore.DataStoreConnection;
> +import 
> com.vividsolutions.jump.datastore.spatialdatabases.AbstractSpatialDatabasesDataStoreDriver;
> +import com.vividsolutions.jump.parameter.ParameterList;
> +
>   /**
> - * A driver for supplying {@link 
> com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection}s
> + * A driver for supplying
> + * {@link 
> com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection}
> + * s
>*/
> -public class H2DataStoreDriver extends SpatialDatabasesDataStoreDriver {
> +public class H2DataStoreDriver extends 
> AbstractSpatialDatabasesDataStoreDriver {
>   
> -public final static String JDBC_CLASS = "org.h2.Driver";
> +  public final static String JDBC_CLASS = "org.h2.Driver";
>   
> -public H2DataStoreDriver() {
> -this.driverName = "H2GIS";
> -this.jdbcClass = "org.h2.Driver";
> -this.urlPrefix = "jdbc:h2:";
> -}
> +  public H2DataSto

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

2015-12-19 Thread jump-pilot-svn
Revision: 4641
  http://sourceforge.net/p/jump-pilot/code/4641
Author:   michaudm
Date: 2015-12-19 18:48:23 + (Sat, 19 Dec 2015)
Log Message:
---
Update french language for rasterimage

Modified Paths:
--

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

Modified: 
core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_fr.properties
===
--- 
core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_fr.properties
  2015-12-19 18:10:26 UTC (rev 4640)
+++ 
core/trunk/src/org/openjump/core/rasterimage/styler/resources/Bundle_fr.properties
  2015-12-19 18:48:23 UTC (rev 4641)
@@ -40,7 +40,7 @@
 org.openjump.core.rasterimage.styler.ui.IntervalPanel.jLabel.method=M\xE9thode 
\:
 
org.openjump.core.rasterimage.styler.ui.IntervalPanel.message.ErrorWhileClassifying=Une
 erreur est survenue pendant la classification.
 
org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jButton_Cancel.text=Annuler
-org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jButton_Memorize.text=\#T\:Memorize
+org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jButton_Memorize.text=M\xE9moriser
 
org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jLabel_Message.text=Entrer
 la valeur pour "NoData".
 
org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.jTextField_NoDataValue.text=-.0
 org.openjump.core.rasterimage.styler.ui.NoDataValueDialog.Values.message=La 
valeur entr\xE9e n'est pas valide.


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


[JPP-Devel] spatialdb datastores Fwd: SVN: [4640] core/trunk/src/com/vividsolutions/jump

2015-12-19 Thread edgar . soldin
hey Nico, Mike,

just cleaned up the SpatialDatabasesDataStoreDriver to make it truely generic 
(r4640). can you please doublecheck that everything still works smoothly?

thx.. ede


 Forwarded Message 
Subject: [JPP-Devel] SVN: [4640] core/trunk/src/com/vividsolutions/jump
Date: Sat, 19 Dec 2015 18:10:26 +
From: jump-pilot-...@lists.sourceforge.net
Reply-To: OpenJump develop and use 
To: jump-pilot-devel@lists.sourceforge.net

Revision: 4640
  http://sourceforge.net/p/jump-pilot/code/4640
Author:   edso
Date: 2015-12-19 18:10:26 + (Sat, 19 Dec 2015)
Log Message:
---
cleanup
made SpatialDatabasesDataStoreDrivers abstract
moved implementation specific code from it's createConnection() method into the 
actual implementations

Modified Paths:
--
core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/mariadb/MariadbDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/oracle/OracleDSMetadata.java

core/trunk/src/com/vividsolutions/jump/datastore/oracle/OracleDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/postgis/PostgisDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDSConnection.java

core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDSMetadata.java

core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDSMetadata.java

core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/workbench/datastore/ConnectionManager.java

Added Paths:
---

core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/AbstractSpatialDatabasesDataStoreDriver.java

Removed Paths:
-

core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDataStoreDriver.java

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java
===
--- core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java   
2015-12-19 11:58:09 UTC (rev 4639)
+++ core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java   
2015-12-19 18:10:26 UTC (rev 4640)
@@ -12,7 +12,7 @@
   FeatureInputStream execute(Query query) throws Exception;
   void close() throws DataStoreException;
   boolean isClosed() throws DataStoreException;
-  // Nicolas Ribot: adds a method: getConnection now several Spatial Databases 
can inherit this class
-  Connection getConnection();
+  // Nicolas Ribot: added now several Spatial Databases can implement this 
class
+  Connection getJdbcConnection();
 
 }
\ No newline at end of file

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java
===
--- core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java  
2015-12-19 11:58:09 UTC (rev 4639)
+++ core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java  
2015-12-19 18:10:26 UTC (rev 4640)
@@ -1,17 +1,37 @@
 package com.vividsolutions.jump.datastore.h2;
 
-import 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDataStoreDriver;
+import java.sql.Connection;
 
+import com.vividsolutions.jump.datastore.DataStoreConnection;
+import 
com.vividsolutions.jump.datastore.spatialdatabases.AbstractSpatialDatabasesDataStoreDriver;
+import com.vividsolutions.jump.parameter.ParameterList;
+
 /**
- * A driver for supplying {@link 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection}s
+ * A driver for supplying
+ * {@link 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection}
+ * s
  */
-public class H2DataStoreDriver extends SpatialDatabasesDataStoreDriver {
+public class H2DataStoreDriver extends AbstractSpatialDatabasesDataStoreDriver 
{
 
-public final static String JDBC_CLASS = "org.h2.Driver";
+  public final static String JDBC_CLASS = "org.h2.Driver";
 
-public H2DataStoreDriver() {
-this.driverName = "H2GIS";
-this.jdbcClass = "org.h2.Driver";
-this.urlPrefix = "jdbc:h2:";
-}
+  public H2DataStoreDriver() {
+this.driverName = "H2GIS";
+this.jdbcClass = "org.h2.Driver";
+this.urlPrefix = "jdbc:h2:";
+  }
+
+  /**
+   * returns the right type of DataStoreConnection
+   * 
+   * @param params
+   * @return
+   * @throws Exception
+   */
+  @Override
+  public DataStoreConnection createConnection(ParameterList params)
+  throws Exception {
+Connection conn = super.createJdbcConnection(params);
+return new H2DSConnection(conn);
+  }
 }

[JPP-Devel] SVN: [4640] core/trunk/src/com/vividsolutions/jump

2015-12-19 Thread jump-pilot-svn
Revision: 4640
  http://sourceforge.net/p/jump-pilot/code/4640
Author:   edso
Date: 2015-12-19 18:10:26 + (Sat, 19 Dec 2015)
Log Message:
---
cleanup
made SpatialDatabasesDataStoreDrivers abstract
moved implementation specific code from it's createConnection() method into the 
actual implementations

Modified Paths:
--
core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/mariadb/MariadbDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/oracle/OracleDSMetadata.java

core/trunk/src/com/vividsolutions/jump/datastore/oracle/OracleDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/postgis/PostgisDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDSConnection.java

core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDSMetadata.java

core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDSMetadata.java

core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/workbench/datastore/ConnectionManager.java

Added Paths:
---

core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/AbstractSpatialDatabasesDataStoreDriver.java

Removed Paths:
-

core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDataStoreDriver.java

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java
===
--- core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java   
2015-12-19 11:58:09 UTC (rev 4639)
+++ core/trunk/src/com/vividsolutions/jump/datastore/DataStoreConnection.java   
2015-12-19 18:10:26 UTC (rev 4640)
@@ -12,7 +12,7 @@
   FeatureInputStream execute(Query query) throws Exception;
   void close() throws DataStoreException;
   boolean isClosed() throws DataStoreException;
-  // Nicolas Ribot: adds a method: getConnection now several Spatial Databases 
can inherit this class
-  Connection getConnection();
+  // Nicolas Ribot: added now several Spatial Databases can implement this 
class
+  Connection getJdbcConnection();
 
 }
\ No newline at end of file

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java
===
--- core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java  
2015-12-19 11:58:09 UTC (rev 4639)
+++ core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java  
2015-12-19 18:10:26 UTC (rev 4640)
@@ -1,17 +1,37 @@
 package com.vividsolutions.jump.datastore.h2;
 
-import 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDataStoreDriver;
+import java.sql.Connection;
 
+import com.vividsolutions.jump.datastore.DataStoreConnection;
+import 
com.vividsolutions.jump.datastore.spatialdatabases.AbstractSpatialDatabasesDataStoreDriver;
+import com.vividsolutions.jump.parameter.ParameterList;
+
 /**
- * A driver for supplying {@link 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection}s
+ * A driver for supplying
+ * {@link 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection}
+ * s
  */
-public class H2DataStoreDriver extends SpatialDatabasesDataStoreDriver {
+public class H2DataStoreDriver extends AbstractSpatialDatabasesDataStoreDriver 
{
 
-public final static String JDBC_CLASS = "org.h2.Driver";
+  public final static String JDBC_CLASS = "org.h2.Driver";
 
-public H2DataStoreDriver() {
-this.driverName = "H2GIS";
-this.jdbcClass = "org.h2.Driver";
-this.urlPrefix = "jdbc:h2:";
-}
+  public H2DataStoreDriver() {
+this.driverName = "H2GIS";
+this.jdbcClass = "org.h2.Driver";
+this.urlPrefix = "jdbc:h2:";
+  }
+
+  /**
+   * returns the right type of DataStoreConnection
+   * 
+   * @param params
+   * @return
+   * @throws Exception
+   */
+  @Override
+  public DataStoreConnection createConnection(ParameterList params)
+  throws Exception {
+Connection conn = super.createJdbcConnection(params);
+return new H2DSConnection(conn);
+  }
 }

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java
===
--- 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java
2015-12-19 11:58:09 UTC (rev 4639)
+++ 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java
2015-12-19 18:10:26 UTC (rev 4640)
@@ -1,17 +1,38 @@
 package com.vividsolut

Re: [JPP-Devel] New improvement on Raster Style by Alberto

2015-12-19 Thread Alberto De Luca
HI Peppe.

I'll check the Italian and update the two files in the next couple of days!

Thanks
Alberto

On Sat, 19 Dec 2015 14:51 Giuseppe Aruta  wrote:

> Hi Jukka,
> I did sone tests and it seems that stored raster styles are not applied
> and  just skipped, when I open a new generation JML with older OJ versions.
>
> @Alberto
> I worked on Italian translation for Raster Styler (Bundle_it.properties).
> I ask you if you can check and eventually correct  mistakes.
> I also need somebody who upgrade Bundle_it.properties and
> Bundle_es.properties files on SVN. I am traveling in Chile in this moment
> and have no access to OJ SVN.
> I attached thos two files to this mail
>
> Best regards
> Peppe
>
> 2015-12-18 18:04 GMT+01:00 Rahkonen Jukka (MML) <
> jukka.rahko...@maanmittauslaitos.fi>:
>
>> Hi,
>>
>>
>>
>> I haven’t been testing anything but I wonder if it would be good to add a
>> version number to the OpenJUMP project file XML. Then it could be possible
>> to implement something
>>
>>
>>
>> -  Open new generation JML with older OJ versions –> stored
>> raster styles are not applied but hopefully they are just skipped
>>
>> -  Show a warning: Project file was saved as JMP version {0} but
>> this OJ supports only {1}. Some project features may be lost on opening.
>>
>> -  Perhaps warn also before overwriting existing JMP file with
>> older JML version.
>>
>>
>>
>> -Jukka Rahkonen-
>>
>>
>>
>> Alberto De Luca wrote:
>>
>>
>>
>> Thank you Peppe,
>>
>>
>>
>> changes are now committed!
>>
>>
>>
>> Alberto
>>
>>
>>
>> On 17 December 2015 at 20:52, Giuseppe Aruta 
>> wrote:
>>
>> Hi Alberto,
>>
>> I did a couple of tests, following this schema
>> a) I opened  a jump project
>>
>> b) loaded one or two raster and applied different color simbologies
>>
>> c) saved and closed the project
>>
>> d) loaded the project again
>>
>> It seems that everything works fine.
>>
>> Very nice work
>>
>> Best regards (from Chile)
>>
>> Peppe
>>
>>
>>
>> 2015-12-16 11:04 GMT+01:00 :
>>
>> On 15.12.2015 18:54, Alberto De Luca wrote:
>> > Hi there.
>> >
>> > I've added today the capability to save the raster symbology in the
>> OpenJUMP project file. I'd like to ask you a couple of things though:
>> > - is it too late to add it now? I'm not sure, but I might have read in
>> some posts that the features are frozen by now;
>>
>> i called  it a soft freeze;).. so nothing made out of stone. generally,
>> as the next release is around the corner, we should clean up, translate and
>> do not start big reworks.
>>
>> adding features (alas not perfect) or fixing bugs is totally fine. we can
>> easily release a maintenance version when users stumble over show stoppers.
>>
>> i plan to release during the holidays, but hey, if it gets january
>> because we fixed/added some more that's fine for everybody i guess.
>>
>> so, no problemo.. ede
>>
>> > - if the answer is no, would someone be so kind (Peppe!!!) to test the
>> feature a bit before I commit the changes? I had to modify a few classes,
>> I'd like to be sure I haven't broken anything... If so, you can find the
>> compiled openjump jar here:
>> >
>> >
>> > https://www.dropbox.com/s/zf1eshbiuucohck/OpenJUMP-0.0.0-rnull.jar?dl=0
>> >
>> >
>> > Cheers
>> > Alberto
>> >
>> > On 19 November 2015 at 21:56, Alberto De Luca > > wrote:
>> >
>> > Hey Peppe,
>> >
>> > thank you. I know having the raster symbologies saved with the
>> project would be nice. I haven't had the chance to work on it yet and
>> honestly I've no idea about how much effort it'd required... I'll have a
>> look at it.
>> >
>> > Alberto
>> >
>> >
>> > On Thu, 19 Nov 2015 19:12 Giuseppe Aruta > > wrote:
>> >
>> > Nice addiction to Raster Style, Alberto!
>> > There are new color palettes and the possibility to save raster
>> styles as SLD files (I saw the code. I  think I will  add this option also
>> to Export file to raster plugins).
>> > I was studying your code using RasterColorEditorPanel as a
>> test. I think we can deactivate this class on next OJ realize as this last
>> is a duplicate but yours is better working.
>> > We also should start to translate before the new OJ realize
>> > Just a question: do you think it is possible for you to add the
>> capability to save raster styles also to OpenJUMP file project?
>> > Best regards and thanks
>> > Peppe
>> >
>>  
>> --
>> > ___
>> > Jump-pilot-devel mailing list
>> > Jump-pilot-devel@lists.sourceforge.net > Jump-pilot-devel@lists.sourceforge.net>
>> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>> >
>> >
>> >
>> >
>> >
>> --
>> >
>> >
>> >
>> > __

Re: [JPP-Devel] New improvement on Raster Style by Alberto

2015-12-19 Thread Giuseppe Aruta
Hi Jukka,
I did sone tests and it seems that stored raster styles are not applied
and  just skipped, when I open a new generation JML with older OJ versions.

@Alberto
I worked on Italian translation for Raster Styler (Bundle_it.properties). I
ask you if you can check and eventually correct  mistakes.
I also need somebody who upgrade Bundle_it.properties and
Bundle_es.properties files on SVN. I am traveling in Chile in this moment
and have no access to OJ SVN.
I attached thos two files to this mail

Best regards
Peppe

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

> Hi,
>
>
>
> I haven’t been testing anything but I wonder if it would be good to add a
> version number to the OpenJUMP project file XML. Then it could be possible
> to implement something
>
>
>
> -  Open new generation JML with older OJ versions –> stored
> raster styles are not applied but hopefully they are just skipped
>
> -  Show a warning: Project file was saved as JMP version {0} but
> this OJ supports only {1}. Some project features may be lost on opening.
>
> -  Perhaps warn also before overwriting existing JMP file with
> older JML version.
>
>
>
> -Jukka Rahkonen-
>
>
>
> Alberto De Luca wrote:
>
>
>
> Thank you Peppe,
>
>
>
> changes are now committed!
>
>
>
> Alberto
>
>
>
> On 17 December 2015 at 20:52, Giuseppe Aruta 
> wrote:
>
> Hi Alberto,
>
> I did a couple of tests, following this schema
> a) I opened  a jump project
>
> b) loaded one or two raster and applied different color simbologies
>
> c) saved and closed the project
>
> d) loaded the project again
>
> It seems that everything works fine.
>
> Very nice work
>
> Best regards (from Chile)
>
> Peppe
>
>
>
> 2015-12-16 11:04 GMT+01:00 :
>
> On 15.12.2015 18:54, Alberto De Luca wrote:
> > Hi there.
> >
> > I've added today the capability to save the raster symbology in the
> OpenJUMP project file. I'd like to ask you a couple of things though:
> > - is it too late to add it now? I'm not sure, but I might have read in
> some posts that the features are frozen by now;
>
> i called  it a soft freeze;).. so nothing made out of stone. generally, as
> the next release is around the corner, we should clean up, translate and do
> not start big reworks.
>
> adding features (alas not perfect) or fixing bugs is totally fine. we can
> easily release a maintenance version when users stumble over show stoppers.
>
> i plan to release during the holidays, but hey, if it gets january because
> we fixed/added some more that's fine for everybody i guess.
>
> so, no problemo.. ede
>
> > - if the answer is no, would someone be so kind (Peppe!!!) to test the
> feature a bit before I commit the changes? I had to modify a few classes,
> I'd like to be sure I haven't broken anything... If so, you can find the
> compiled openjump jar here:
> >
> >
> > https://www.dropbox.com/s/zf1eshbiuucohck/OpenJUMP-0.0.0-rnull.jar?dl=0
> >
> >
> > Cheers
> > Alberto
> >
> > On 19 November 2015 at 21:56, Alberto De Luca  > wrote:
> >
> > Hey Peppe,
> >
> > thank you. I know having the raster symbologies saved with the
> project would be nice. I haven't had the chance to work on it yet and
> honestly I've no idea about how much effort it'd required... I'll have a
> look at it.
> >
> > Alberto
> >
> >
> > On Thu, 19 Nov 2015 19:12 Giuseppe Aruta  > wrote:
> >
> > Nice addiction to Raster Style, Alberto!
> > There are new color palettes and the possibility to save raster
> styles as SLD files (I saw the code. I  think I will  add this option also
> to Export file to raster plugins).
> > I was studying your code using RasterColorEditorPanel as a test.
> I think we can deactivate this class on next OJ realize as this last is a
> duplicate but yours is better working.
> > We also should start to translate before the new OJ realize
> > Just a question: do you think it is possible for you to add the
> capability to save raster styles also to OpenJUMP file project?
> > Best regards and thanks
> > Peppe
> >
>  
> --
> > ___
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net  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
> Ju

Re: [JPP-Devel] H2GIS support

2015-12-19 Thread Michaël Michaud
Hi,

Thanks, I fixed my copy/paste mistake ;-(

Michaël

Le 19/12/2015 12:37, edgar.sol...@web.de a écrit :
> On 19.12.2015 12:22, Michaël Michaud wrote:
>> It seems that the driver detection mechanism does not prevent the
>> connection dialog to display
>> drivers in the combobox which are not available. Or did I miss something ?
> check the extensions for oracle & spatialite. they look up the dependencies 
> or do not install the driver.
>
> ..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: [4639] core/trunk/src/com/vividsolutions/jump/datastore/h2

2015-12-19 Thread jump-pilot-svn
Revision: 4639
  http://sourceforge.net/p/jump-pilot/code/4639
Author:   michaudm
Date: 2015-12-19 11:58:09 + (Sat, 19 Dec 2015)
Log Message:
---
Fix a copy/paste mistake and add some javadoc.

Modified Paths:
--
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DSConnection.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreExtension.java
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2SQLBuilder.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ValueConverterFactory.java

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DSConnection.java
===
--- core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DSConnection.java 
2015-12-19 11:28:26 UTC (rev 4638)
+++ core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DSConnection.java 
2015-12-19 11:58:09 UTC (rev 4639)
@@ -13,7 +13,7 @@
 import java.sql.SQLException;
 
 /**
- * Created by UMichael on 16/12/2015.
+ * Connection to a H2GIS database.
  */
 public class H2DSConnection extends SpatialDatabasesDSConnection {
 

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreExtension.java
===
--- 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreExtension.java   
2015-12-19 11:28:26 UTC (rev 4638)
+++ 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreExtension.java   
2015-12-19 11:58:09 UTC (rev 4639)
@@ -1,7 +1,6 @@
 package com.vividsolutions.jump.datastore.h2;
 
 import com.vividsolutions.jump.datastore.DataStoreDriver;
-import com.vividsolutions.jump.datastore.mariadb.MariadbDataStoreDriver;
 import com.vividsolutions.jump.workbench.WorkbenchContext;
 import com.vividsolutions.jump.workbench.plugin.Extension;
 import com.vividsolutions.jump.workbench.plugin.PlugInContext;
@@ -9,10 +8,10 @@
 import java.sql.Driver;
 import java.sql.DriverManager;
 
-import static 
com.vividsolutions.jump.datastore.mariadb.MariadbDataStoreDriver.JDBC_CLASS;
+import static 
com.vividsolutions.jump.datastore.h2.H2DataStoreDriver.JDBC_CLASS;
 
 /**
- * Created by UMichael on 17/12/2015.
+ * Extension for H2GIS Support
  */
 public class H2DataStoreExtension extends Extension {
 private static boolean disabled = false;

Modified: core/trunk/src/com/vividsolutions/jump/datastore/h2/H2SQLBuilder.java
===
--- core/trunk/src/com/vividsolutions/jump/datastore/h2/H2SQLBuilder.java   
2015-12-19 11:28:26 UTC (rev 4638)
+++ core/trunk/src/com/vividsolutions/jump/datastore/h2/H2SQLBuilder.java   
2015-12-19 11:58:09 UTC (rev 4639)
@@ -7,7 +7,7 @@
 import 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesSQLBuilder;
 
 /**
- * Created by UMichael on 17/12/2015.
+ * Query builder for H2GIS queries.
  */
 public class H2SQLBuilder  extends SpatialDatabasesSQLBuilder {
 

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java
===
--- 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java
2015-12-19 11:28:26 UTC (rev 4638)
+++ 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java
2015-12-19 11:58:09 UTC (rev 4639)
@@ -3,7 +3,7 @@
 import 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDataStoreDriver;
 
 /**
- * Created by UMichael on 18/12/2015.
+ * A driver for supplying {@link 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection}s
  */
 public class H2ServerDataStoreDriver extends SpatialDatabasesDataStoreDriver {
 

Modified: 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ValueConverterFactory.java
===
--- 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ValueConverterFactory.java
2015-12-19 11:28:26 UTC (rev 4638)
+++ 
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ValueConverterFactory.java
2015-12-19 11:58:09 UTC (rev 4639)
@@ -9,7 +9,7 @@
 import java.sql.SQLException;
 
 /**
- * Factory to convert Postgis geometric data type.
+ * Factory to convert H2 geometric data type.
  */
 public class H2ValueConverterFactory extends 
SpatialDatabasesValueConverterFactory {
 


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


[JPP-Devel] ViewManager plugin

2015-12-19 Thread Michaël Michaud
Hi,

Just added ViewManager plugin in
https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/More%20Plugins/ViewManager%20PlugIn/

I'll work on a small documentation soon.
The plugin is an extension I was missing but it is partially redundant 
with oj capability to save layer symbolization
in a project or in sld files. Main purpose is to be able to switch 
easily from one pre-defined symbolization to another
in a single project.

If other users find it useful, we'll envisage its inclusion in PLUS version.
You'll find language file for translation in the src package if you're 
interested to have it in your language.

Michaël

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


Re: [JPP-Devel] H2GIS support

2015-12-19 Thread edgar . soldin
On 19.12.2015 12:22, Michaël Michaud wrote:
> It seems that the driver detection mechanism does not prevent the 
> connection dialog to display
> drivers in the combobox which are not available. Or did I miss something ?

check the extensions for oracle & spatialite. they look up the dependencies or 
do not install the driver.

..ede 

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


[JPP-Devel] SVN: [4638] plug-ins/ViewManagerPlugin/trunk/build.xml

2015-12-19 Thread jump-pilot-svn
Revision: 4638
  http://sourceforge.net/p/jump-pilot/code/4638
Author:   michaudm
Date: 2015-12-19 11:28:26 + (Sat, 19 Dec 2015)
Log Message:
---
Update ViewManager build file

Modified Paths:
--
plug-ins/ViewManagerPlugin/trunk/build.xml

Modified: plug-ins/ViewManagerPlugin/trunk/build.xml
===
--- plug-ins/ViewManagerPlugin/trunk/build.xml  2015-12-19 11:27:03 UTC (rev 
4637)
+++ plug-ins/ViewManagerPlugin/trunk/build.xml  2015-12-19 11:28:26 UTC (rev 
4638)
@@ -19,7 +19,7 @@
 
 
 
-
+
 
 
 
@@ -90,9 +90,9 @@
 
 
 
-
+
 
 
\ No newline at end of file


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


[JPP-Devel] SVN: [4637] plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/ viewmanager/ViewManagerExtension.java

2015-12-19 Thread jump-pilot-svn
Revision: 4637
  http://sourceforge.net/p/jump-pilot/code/4637
Author:   michaudm
Date: 2015-12-19 11:27:03 + (Sat, 19 Dec 2015)
Log Message:
---
Update ViewManager version number

Modified Paths:
--

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

Modified: 
plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewManagerExtension.java
===
--- 
plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewManagerExtension.java
 2015-12-19 11:14:54 UTC (rev 4636)
+++ 
plug-ins/ViewManagerPlugin/trunk/src/org/openjump/ext/viewmanager/ViewManagerExtension.java
 2015-12-19 11:27:03 UTC (rev 4637)
@@ -13,7 +13,7 @@
 }
 
 public String getVersion() {
-return "0.2.0 (2015-12-02)";
+return "0.3.0 (2015-12-14)";
 }
 
 public void configure(PlugInContext context) throws Exception {


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


[JPP-Devel] H2GIS support

2015-12-19 Thread Michaël Michaud
Hi,

Thanks to your big refactoring of spatialdatabase code, I could easily 
add support to H2GIS database,
a pure java dabase with spatial extension.

It seems that the driver detection mechanism does not prevent the 
connection dialog to display
drivers in the combobox which are not available. Or did I miss something ?

Michaël

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


[JPP-Devel] SVN: [4636] core/trunk

2015-12-19 Thread jump-pilot-svn
Revision: 4636
  http://sourceforge.net/p/jump-pilot/code/4636
Author:   michaudm
Date: 2015-12-19 11:14:54 + (Sat, 19 Dec 2015)
Log Message:
---
Add support to H2GIS database

Modified Paths:
--
core/trunk/ChangeLog
core/trunk/scripts/default-plugins.xml

core/trunk/src/com/vividsolutions/jump/datastore/spatialdatabases/SpatialDatabasesDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/workbench/ui/plugin/datastore/ConnectionManagerPanel.java

Added Paths:
---
core/trunk/src/com/vividsolutions/jump/datastore/h2/
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DSConnection.java
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DSMetadata.java
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DataStoreExtension.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2FeatureInputStream.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ResultSetConverter.java
core/trunk/src/com/vividsolutions/jump/datastore/h2/H2SQLBuilder.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ServerDataStoreDriver.java

core/trunk/src/com/vividsolutions/jump/datastore/h2/H2ValueConverterFactory.java
core/trunk/src/com/vividsolutions/jump/workbench/ui/images/ko_h2.png
core/trunk/src/com/vividsolutions/jump/workbench/ui/images/ok_h2.png

Modified: core/trunk/ChangeLog
===
--- core/trunk/ChangeLog2015-12-18 13:55:48 UTC (rev 4635)
+++ core/trunk/ChangeLog2015-12-19 11:14:54 UTC (rev 4636)
@@ -1,6 +1,9 @@
 # for display continuity sake please use 2 spaces instead of tabs, also make  #
 # sure that lines break at 80 chars for constricted dispaly situations#
 
+2015-12-19 mmichaud 
+  * Add support to H2GIS spatial database
+
 2015-12-18 bertazza
   * Raster symbologies now saved in and restored from project file
 

Modified: core/trunk/scripts/default-plugins.xml
===
--- core/trunk/scripts/default-plugins.xml  2015-12-18 13:55:48 UTC (rev 
4635)
+++ core/trunk/scripts/default-plugins.xml  2015-12-19 11:14:54 UTC (rev 
4636)
@@ -22,9 +22,6 @@

org.openjump.core.ui.plugin.view.ShowFullPathPlugIn

-   
-   
org.openjump.core.ui.plugin.datastore.postgis.SaveToPostGISPlugIn
-   


com.vividsolutions.jump.datastore.oracle.OracleDataStoreExtension

@@ -35,7 +32,13 @@


com.vividsolutions.jump.datastore.spatialite.SpatialiteDataStoreExtension

+   
+   com.vividsolutions.jump.datastore.h2.H2DataStoreExtension
+   

+   
org.openjump.core.ui.plugin.datastore.postgis.SaveToPostGISPlugIn
+   
+   

org.openjump.core.ccordsys.srid.EnsureAllLayersHaveSRIDStylePlugIn



Added: core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DSConnection.java
===
--- core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DSConnection.java 
(rev 0)
+++ core/trunk/src/com/vividsolutions/jump/datastore/h2/H2DSConnection.java 
2015-12-19 11:14:54 UTC (rev 4636)
@@ -0,0 +1,87 @@
+package com.vividsolutions.jump.datastore.h2;
+
+import com.vividsolutions.jump.I18N;
+import com.vividsolutions.jump.datastore.AdhocQuery;
+import com.vividsolutions.jump.datastore.FilterQuery;
+import com.vividsolutions.jump.datastore.SpatialReferenceSystemID;
+import 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection;
+import 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesSQLBuilder;
+import com.vividsolutions.jump.feature.FeatureSchema;
+import com.vividsolutions.jump.io.FeatureInputStream;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+
+/**
+ * Created by UMichael on 16/12/2015.
+ */
+public class H2DSConnection extends SpatialDatabasesDSConnection {
+
+public H2DSConnection(Connection con) {
+super(con); // ?
+connection = con;
+this.dbMetadata = new H2DSMetadata(this);
+}
+
+@Override
+public SpatialDatabasesSQLBuilder getSqlBuilder(SpatialReferenceSystemID 
srid, String[] colNames) {
+return new H2SQLBuilder(this.dbMetadata, srid, colNames);
+}
+
+/**
+ * Executes a filter query.
+ *
+ * The SRID is optional for queries - it will be determined automatically
+ * from the table metadata if not supplied.
+ * 13 dec 2015: query is now tested before execution, to prevent adding an 
empty
+ * layer built from invalid WHERE clause, for instance.
+ *
+ * @param query the query to execute
+ * @return the results of the query
+ * @throws SQLException
+