Re: [JPP-Devel] CTS PlugIn integration

2014-12-14 Thread edgar . soldin
On 14.12.2014 13:55, Michael Michaud wrote:
 Hi,
 
 I propose to include CTSPlugIn into OpenJUMP in two steps
 
 1) inclusion in PLUS version after I checked with Peppe the
 problem with undo
 2) studing how CRS can be managed at the project level (see
 discussion after)
 3) inclusion in the CORE later if a good solution for a tighter
 integration is found.
 
 @peppe : undo bug : can you confirm the bug with 0.1.1 version
 (and last OJ NB!). I did not fix undo but could not reproduce the
 problem, so I will need a step by step description to reproduce
 the problem you reported.
 
 @ andrei : small dot bug : I could see the dot you noticed under the
 cursor on my machine too. For me it disappears after a few seconds.
 The bug is not harmful and I suspect it may be quite difficult to find
 the root cause. I'll not invetigate further.
 
 Tighter integration of CTS in OpenJUMP.
 
 OK, Peppe and Andrei want to get what most other GIS offer to
 handle coordinate system. There are several approaches to do
 that and all have a deep impact on teh code, and even on the
 results of other plugins. I would like to share some thoughts :
 
 I have a project in worldwide coordinates (WGS84) and datasources
 (shapefiles, images, database) in local coordinates.
 
 I can see at least two places where transformation can occur
 
 1) opening the datasource : in-memory representation of the data
 could be reprojected without reprojecting datasource itself
  pros : data is transformed only once
  cons : datasource and in-memory data have not the same geometry,
  it needs important modifications in the code. Saving 
 back to
  disk implies a double conversion where original 
 coordinates
  may not be preserved, even if they have not been edited
 2) displaying the dataset : I think this is the way most GIS work.
 Data is not altered but simply projected at display time. I prefer this 
 way,
 but it implies transforming data after each pan/zoom. It also has deep
 implication in editing tools as each edition operation must be converted
 from project coordinate system to datasource one.
 
 Choosing one approach or the other has consequences on most processes :
 Intersection points computed between segments will not be the same,
 buffer will not be the same, and hence all geometric results may differ
 according to where the transformation takes place.
 
 Debate is open
 
 Michaël
 
 PS : any choice has big implication in the code, hence my willing to
 dissociate transformation capability as proposed by the current plugin
 and tight integration wished by users.
 

totally with you there.. that would be in line with keeping OJ lite, no funny 
stuff behind the scenes. integrating real time reprojection of the view is 
very major and i don't see a non disruptive way to do that, not even taking 
into account the man power needed to realize that.

suggesting a reprojection when loading a different projection into a SRID 
marked project on the other hand, should be easy to realize and suffice for 
most i guess.

..ede

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Modified Feature Union/Combine plugins

2014-12-14 Thread Michael Michaud

Hi Peppe,

Just had a quick test. Works fine.
Here are some questions and remarks :

Is your proposal to replace curent merge/union bu kosmo's or to add it ?

Replace : current plugin preserve attributes of the first selected feature.
Once you know it, I think it is generally easier to use than kosmo plugin.
I would be inclined to preserve old attribute, but if we decide to replace
it, I think we must make possible to valid the merge (button OK) without
choosing explicitly a feature throught the dialog box)

Add : if we want to add a new menu, we must choose an explicit name
to differenciate both plugins (combine features and choose attribute 
source ?)

I think it would be simpler to use if the feature could be highlighted
while selecting the corresponding line (and without clicking the light 
button)


Question : wouldn't be more useful if we had the feature info (table 
with all
the attributes of selected objects) instead of the feature internal 
number in

the dialog ?
In other words, could we open the info tool instead of this special 
dialog to

choose the feature ?

Michaël



Hi all,
In the last days I worked around to Kosmo code to port some 
enhancements and tools into OpenJUMP that could be usefull.


Among them, I want to submit these two ones ( I added to this mail, as 
a extension) which are modified version of OJ 
CombineSelectedFeaturesPlugIn and MergeSelectedFeaturesPlugIn classes, 
located on select feature popup menu.


These new plugins show a dialog where user can choose, within selected 
feature, which attribute to copy to the new Merged (or new Combined) item.
I ported a new class to OJ  from Kosmo: FeatureUnionDialog. And I used 
another Kosmo class (FormUtil) to define some parameters for that dialog.


I used original OJ classes which I modified following Kosmo code (and 
used Kosmo dialog class)


I tested  both plugin and seems to me that they work fine, on executing.

I found problems on the undo action: in both plugins it restores all 
the original selected feature except the one, choosed during the do 
process in the dialog. I remember that this was a behaviour of an old 
version of MergeSelectedFeaturesPlugIn that was recently corrected. 
Anyhow I used a very recent code to modify MergeSelectedFeaturesPlugIn 
and CombineSelectedFeaturesPlugIn.


I add the plugins to this mail and I ask to the community an help to 
correct this bug.
I will add these modifications to OJ NB by the time they will working 
fine, if you agree, of coarse


In the next months I will submit other Kosmo enhancements I am working 
around.


The new Combine and Merge Feature plugin, from this extension, are 
activated both on PlugInTest menu and on Select Feature popup menu.
I also ported the translation into Finnic, German, Italian and Spanish 
from Kosmo (I remember that Jukka was the author of Finnic language file)


Thanks

Peppe






--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk


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


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] wms zoom on open

2014-12-14 Thread edgar . soldin
is there a specific reason that we do not zoom to a new opened wms layer?

..ede

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] wms zoom on open

2014-12-14 Thread Michael Michaud
Hi ede,
 is there a specific reason that we do not zoom to a new opened wms layer?
I can see no reason (I suppose you mean when the project is empty).

Michaël


 ..ede

 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] Fwd: [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[4193] core/trunk/src/org/openjump/core/ui/io/file/ DataSourceFileLayerLoader.java

2014-12-14 Thread edgar . soldin
hey Mike,

stumbled over a problem that was introduced with the macro recording. see 
below. 
you can reproduce the addressed issue by
1. disable the reset temporarily
2. open an archive eg. a zip with shp files
3. try to open an ordinary shp file

i just patched it up but you probably want to fix it properly.. just a heads 
up.. ede


 Forwarded Message 
Subject: [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[4193] 
core/trunk/src/org/openjump/core/ui/io/file/ DataSourceFileLayerLoader.java
Date: Sun, 14 Dec 2014 21:15:53 +
From: e...@users.sourceforge.net
Reply-To: jump-pilot-svn-not...@lists.sourceforge.net
To: jump-pilot-svn-not...@lists.sourceforge.net

Revision: 4193
  http://sourceforge.net/p/jump-pilot/code/4193
Author:   edso
Date: 2014-12-14 21:15:52 + (Sun, 14 Dec 2014)
Log Message:
---
hotfix:
opening archives prevents opening non-compressed files thereafter.

Modified Paths:
--
core/trunk/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java

Modified: 
core/trunk/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java
===
--- core/trunk/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java  
2014-12-14 12:28:19 UTC (rev 4192)
+++ core/trunk/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java  
2014-12-14 21:15:52 UTC (rev 4193)
@@ -114,6 +114,12 @@
 return parameters;
 }
 // [mmichaud 2014-10-01] end
+
+// this probably clashes with the above, but DataSourceFileLayerLoader is 
reused for opening files
+// so any old parameters lingering during open have a probably 
detrimental effect on the next open
+public void resetParameters() {
+this.parameters = new HashMapString, Object();
+}
 
   /** The {@link DataSource} class. */
   private Class dataSourceClass;
@@ -238,6 +244,8 @@
* @return True if the file could be loaded false otherwise.
*/
   public boolean open(TaskMonitor monitor, URI uri, MapString, Object 
options) {
+  //reset old parameters away
+  resetParameters();
   addParameter(DATASOURCE_CLASSNAME, dataSourceClass.getName());
   addParameter(URI, uri.toString());
   MapString,Object properties = toProperties(uri, options);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Jump-pilot-svn-notify mailing list
jump-pilot-svn-not...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-svn-notify



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Modified Feature Union/Combine plugins

2014-12-14 Thread Giuseppe Aruta
Hi Ede, Michaël,
thanks for the answers. I didn't know that Combine and Merge PLugins
preserve attributes of the first selected feature. I tested them using the
drag selection and didn't check which was the 1st one.
At this point these new implementation from Kosmo is unuseful. We probably
need to upgrade the OpenJump documentation, in English (and Italian).
@ Ede. I saw on OJ code that you port some libraries from Kosmo, included
language.
Best regards
Peppe

2014-12-14 14:31 GMT+01:00 Michael Michaud m.michael.mich...@orange.fr:

  Hi Peppe,

 Just had a quick test. Works fine.
 Here are some questions and remarks :

 Is your proposal to replace curent merge/union bu kosmo's or to add it ?

 Replace : current plugin preserve attributes of the first selected feature.
 Once you know it, I think it is generally easier to use than kosmo plugin.
 I would be inclined to preserve old attribute, but if we decide to replace
 it, I think we must make possible to valid the merge (button OK) without
 choosing explicitly a feature throught the dialog box)

 Add : if we want to add a new menu, we must choose an explicit name
 to differenciate both plugins (combine features and choose attribute
 source ?)
 I think it would be simpler to use if the feature could be highlighted
 while selecting the corresponding line (and without clicking the light
 button)

 Question : wouldn't be more useful if we had the feature info (table with
 all
 the attributes of selected objects) instead of the feature internal number
 in
 the dialog ?
 In other words, could we open the info tool instead of this special dialog
 to
 choose the feature ?

 Michaël


   Hi all,
  In the last days I worked around to Kosmo code to port some enhancements
 and tools into OpenJUMP that could be usefull.

 Among them, I want to submit these two ones ( I added to this mail, as a
 extension) which are modified version of OJ CombineSelectedFeaturesPlugIn
 and MergeSelectedFeaturesPlugIn classes, located on select feature popup
 menu.

  These new plugins show a dialog where user can choose, within selected
 feature, which attribute to copy to the new Merged (or new Combined) item.
  I ported a new class to OJ  from Kosmo: FeatureUnionDialog. And I used
 another Kosmo class (FormUtil) to define some parameters for that dialog.

  I used original OJ classes which I modified following Kosmo code (and
 used Kosmo dialog class)

  I tested  both plugin and seems to me that they work fine, on executing.

 I found problems on the undo action: in both plugins it restores all the
 original selected feature except the one, choosed during the do process in
 the dialog. I remember that this was a behaviour of an old version of
 MergeSelectedFeaturesPlugIn that was recently corrected. Anyhow I used a
 very recent code to modify MergeSelectedFeaturesPlugIn and
 CombineSelectedFeaturesPlugIn.

  I add the plugins to this mail and I ask to the community an help to
 correct this bug.
  I will add these modifications to OJ NB by the time they will working
 fine, if you agree, of coarse

  In the next months I will submit other Kosmo enhancements I am working
 around.

  The new Combine and Merge Feature plugin, from this extension, are
 activated both on PlugInTest menu and on Select Feature popup menu.
  I also ported the translation into Finnic, German, Italian and Spanish
 from Kosmo (I remember that Jukka was the author of Finnic language file)

  Thanks

  Peppe






 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, 
 FREEhttp://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk



 ___
 Jump-pilot-devel mailing 
 listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel