Re: [JPP-Devel] [PATCH] mvn exec:java

2012-03-16 Thread Stefan Steiniger

fortunately Michael was faster in doing the commit :)

thanks Sascha and good to know you are still around.
stefan

On 16/03/2012 3:12 PM, Michaël Michaud wrote:

Thanks Sascha,

Nice to know you're still working with OpenJUMP
Your patch is committed.

Remember you still have commit rights for the project.
Your contributions are welcome ;-)

Nice to know OJ is working on small devices with android.
I think some OJ project members were interested.

Michaël



Hi!

When running OpenJUMP with

$ mvn -Dexec.mainClass=com.vividsolutions.jump.workbench.JUMPWorkbench
exec:java

I run into:

java.lang.NullPointerException
at javax.swing.ImageIcon.(ImageIcon.java:204)
at org.openide.awt.IconWithArrow.(IconWithArrow.java:66)
at
org.openide.awt.DropDownToggleButton.updateIcons(DropDownToggleButton.java:294)
at
org.openide.awt.DropDownToggleButton.setIcon(DropDownToggleButton.java:278)
at
org.openide.awt.DropDownToggleButton.(DropDownToggleButton.java:96)
at
org.openide.awt.DropDownButtonFactory.createDropDownToggleButton(DropDownButtonFactory.java:96)
at
org.openjump.core.ui.plugin.tools.AdvancedMeasureTool.(AdvancedMeasureTool.java:100)
at
com.vividsolutions.jump.workbench.JUMPConfiguration.configureToolBar(JUMPConfiguration.java:1385)
at
com.vividsolutions.jump.workbench.JUMPConfiguration.setup(JUMPConfiguration.java:369)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:379)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:344)

This can be resolved by applying the attached patch IconWithArrow.java.diff

BTW: OJ runs pretty nice in a Debian/sid/armhf chroot + LXDE/VNC on
an Asus Transformer Prime with Android 4.0.3.

Regard,
   Sascha


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure


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




--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure


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


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] [PATCH] mvn exec:java

2012-03-16 Thread Michaël Michaud

Thanks Sascha,

Nice to know you're still working with OpenJUMP
Your patch is committed.

Remember you still have commit rights for the project.
Your contributions are welcome ;-)

Nice to know OJ is working on small devices with android.
I think some OJ project members were interested.

Michaël



Hi!

When running OpenJUMP with

$ mvn -Dexec.mainClass=com.vividsolutions.jump.workbench.JUMPWorkbench
exec:java

I run into:

java.lang.NullPointerException
at javax.swing.ImageIcon.(ImageIcon.java:204)
at org.openide.awt.IconWithArrow.(IconWithArrow.java:66)
at
org.openide.awt.DropDownToggleButton.updateIcons(DropDownToggleButton.java:294)
at
org.openide.awt.DropDownToggleButton.setIcon(DropDownToggleButton.java:278)
at
org.openide.awt.DropDownToggleButton.(DropDownToggleButton.java:96)
at
org.openide.awt.DropDownButtonFactory.createDropDownToggleButton(DropDownButtonFactory.java:96)
at
org.openjump.core.ui.plugin.tools.AdvancedMeasureTool.(AdvancedMeasureTool.java:100)
at
com.vividsolutions.jump.workbench.JUMPConfiguration.configureToolBar(JUMPConfiguration.java:1385)
at
com.vividsolutions.jump.workbench.JUMPConfiguration.setup(JUMPConfiguration.java:369)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:379)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:344)

This can be resolved by applying the attached patch IconWithArrow.java.diff

BTW: OJ runs pretty nice in a Debian/sid/armhf chroot + LXDE/VNC on
an Asus Transformer Prime with Android 4.0.3.

Regard,
   Sascha


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure


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


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Join attributes spatially works only with numeric fields

2012-03-16 Thread Michaël Michaud

Hi Jukka
I tried to copy attributes through spatial relation but that does not 
seem to work with string attributes. That's a pity. Of course sums and 
averages cannot be calculated for strings but majority option feels 
logical also with strings and that's what I would need.  As a 
workaround I made an integer field and filled that with temporaty 
codes but that's not very comfortable.
If you can't do what you want with spatial join, you have two more 
chances given :

- one with aggregation extension
- one with matching extension

Michaël

-Jukka Rahkonen-


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure


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


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] [ jump-pilot-Feature Requests-3506380 ] Union selected features in place

2012-03-16 Thread SourceForge . net
Feature Requests item #3506380, was opened at 2012-03-16 13:48
Message generated for change (Tracker Item Submitted) made by michaudm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=679909&aid=3506380&group_id=118054

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: JTS/Geometry
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: michael michaud (michaudm)
Assigned to: Nobody/Anonymous (nobody)
Summary: Union selected features in place

Initial Comment:
Union selected features in place or
Union selected features in place (if result can be simple polygon)

(argumentation in Jukka's mail 
https://sourceforge.net/mailarchive/forum.php?thread_name=84446DEF76453C439E9E97E438E13A6308490B%40suutari.haapa.mmm.fi&forum_name=jump-pilot-devel)

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=679909&aid=3506380&group_id=118054

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Combining polygons

2012-03-16 Thread Michaël Michaud

Hi,
I started to reduse the number of polygons in one dataset which 
originally it contained more than 5000 rahter complicated polygons. 
Some experience:
- "Combine two selected polygons tool" is fast but it has a little 
bug. It allows to combine polygons even if the layer is non-editable.
How do you do that ? Menu item is inactive (grayed) if layer is non 
editable.
- "Combine polygon with neighbouring polygon" is very slow and can 
give an out-of-memory error. Is it perhaps walking through all the 
features when searching for the one to use for combining? I would 
guess that it should be much faster if it correctly selects just the 
few adjacent polygons for candidates first.
I think the algo of this plugin is not so simple... I think Stefan know 
it better
- Making union of selected features suits me well because I would like 
to combine about 10-20 polygons together. However, because it creates 
new layer each time there is some extra work with joining them 
together later.
- "Union selected in place (if result can be simple polygon)" would be 
the ideal tool for just this case.
Agree, this would be helpful. Not sure I would limit to simple polygons 
though.
I suppose you don't want to union all adjacent polygons, otherwise, the 
simplest is to union the whole layer, then to explode the multipolygon.


Michaël

Here is a workaround (didn't check it though)
- create a second layer.
- draw 1 linestring per group of building, intersecting all buildings 
you want to aggregate (and only those one)

- create an auto-increment attribute on these linestring layer
- do a spatial join to transfer linestring id to polygons
- union polygons by attribute
(you will get a multipolygon with all polygons not intersecting a 
linestring : explode it)




-Jukka Rahkonen-


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure


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


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] downloads for tutorials

2012-03-16 Thread Stefan Steiniger
oh good.
I will have a look on your improvements - also on the link

stefan

Am 16.03.12 01:10, schrieb Michaël Michaud:
> Hi Stefan,
>
> Good to know,
> Past few weeks, I translated it into french. Did not commit the
> translation yet,
> because I'm hesitating with screen shots, table names and field names
> translation...
>
> As I read it attentively, I did a few change in the english version.
> If you want to have a look at them, they are visible in edit mode
> so that you can validate or revert them.
>
> As far as openjump teaching is concerned, I found another good new
> from Prague here :
> http://foss4g-cee.org/program/workshops/development-of-plug-ins-for-openjump/
>
> Michaël
>
>> Hei,
>>
>> I just looked into the download stats for the tutorials and there are
>> quite some downloads for the 1.4 general tutorial (10 in the past 7 days
>> - while we had 22 for the 1.5 tutorial).
>>
>> I assume some link on a page is leading people to it? Any idea? probably
>> a google search helps ;)
>>
>> cheers,
>> stefan
>>
>> --
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
>
>
> --
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] Join attributes spatially works only with numeric fields

2012-03-16 Thread Rahkonen Jukka
Hi,

I tried to copy attributes through spatial relation but that does not seem to 
work with string attributes. That's a pity. Of course sums and averages cannot 
be calculated for strings but majority option feels logical also with strings 
and that's what I would need.  As a workaround I made an integer field and 
filled that with temporaty codes but that's not very comfortable.

-Jukka Rahkonen-
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] [PATCH] mvn exec:java

2012-03-16 Thread Sascha L. Teichmann
Hi!

When running OpenJUMP with

$ mvn -Dexec.mainClass=com.vividsolutions.jump.workbench.JUMPWorkbench
exec:java

I run into:

java.lang.NullPointerException
at javax.swing.ImageIcon.(ImageIcon.java:204)
at org.openide.awt.IconWithArrow.(IconWithArrow.java:66)
at
org.openide.awt.DropDownToggleButton.updateIcons(DropDownToggleButton.java:294)
at
org.openide.awt.DropDownToggleButton.setIcon(DropDownToggleButton.java:278)
at
org.openide.awt.DropDownToggleButton.(DropDownToggleButton.java:96)
at
org.openide.awt.DropDownButtonFactory.createDropDownToggleButton(DropDownButtonFactory.java:96)
at
org.openjump.core.ui.plugin.tools.AdvancedMeasureTool.(AdvancedMeasureTool.java:100)
at
com.vividsolutions.jump.workbench.JUMPConfiguration.configureToolBar(JUMPConfiguration.java:1385)
at
com.vividsolutions.jump.workbench.JUMPConfiguration.setup(JUMPConfiguration.java:369)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:379)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:344)

This can be resolved by applying the attached patch IconWithArrow.java.diff

BTW: OJ runs pretty nice in a Debian/sid/armhf chroot + LXDE/VNC on
an Asus Transformer Prime with Android 4.0.3.

Regard,
  Sascha
Index: src/org/openide/awt/IconWithArrow.java
===
--- src/org/openide/awt/IconWithArrow.java	(Revision 2773)
+++ src/org/openide/awt/IconWithArrow.java	(Arbeitskopie)
@@ -59,11 +59,11 @@
  */
 class IconWithArrow implements Icon {
 
-private static final String ARROW_IMAGE_NAME = "org/openide/awt/resources/arrow.png"; //NOI18N
+private static final String ARROW_IMAGE_NAME = "resources/arrow.png"; //NOI18N
 
 private Icon orig;
 //private Icon arrow = ImageUtilities.loadImageIcon(ARROW_IMAGE_NAME, false);
-	private Icon arrow = new ImageIcon(ClassLoader.getSystemResource(ARROW_IMAGE_NAME));
+	private Icon arrow = new ImageIcon(IconWithArrow.class.getResource(ARROW_IMAGE_NAME));
 private boolean paintRollOver;
 
 private static final int GAP = 6;
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] Combining polygons

2012-03-16 Thread Rahkonen Jukka
Hi,

I started to reduse the number of polygons in one dataset which originally it 
contained more than 5000 rahter complicated polygons. Some experience:

- "Combine two selected polygons tool" is fast but it has a little bug. It 
allows to combine polygons even if the layer is non-editable.
- "Combine polygon with neighbouring polygon" is very slow and can give an 
out-of-memory error. Is it perhaps walking through all the features when 
searching for the one to use for combining? I would guess that it should be 
much faster if it correctly selects just the few adjacent polygons for 
candidates first.
- Making union of selected features suits me well because I would like to 
combine about 10-20 polygons together. However, because it creates new layer 
each time there is some extra work with joining them together later.
- "Union selected in place (if result can be simple polygon)" would be the 
ideal tool for just this case.

-Jukka Rahkonen-


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Spam in OpenJUMP forums

2012-03-16 Thread edgar . soldin
On 16.03.2012 00:13, Stefan Steiniger wrote:
> "OpenJUMP Functions Problems" to "OpenJUMP General: Help, Questions and 
> Suggestions".. or so?
> 

agreed

> I actually can see that a couple of people can login with lots of other 
> accounts (Google etc.) So when if we close them to anonymous comments 

we should at least leave one channel where people can reuest support 
unregistered. that is the trackers for now i'd plead.

> for a while it should be ok. And I also see now that we can actually add 
> email forwards too, e.g. to the user or devel list?

agreed agn.

..ede

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] downloads for tutorials

2012-03-16 Thread Michaël Michaud
Hi Stefan,

Good to know,
Past few weeks, I translated it into french. Did not commit the 
translation yet,
because I'm hesitating with screen shots, table names and field names 
translation...

As I read it attentively, I did a few change in the english version.
If you want to have a look at them, they are visible in edit mode
so that you can validate or revert them.

As far as openjump teaching is concerned, I found another good new
from Prague here :
http://foss4g-cee.org/program/workshops/development-of-plug-ins-for-openjump/

Michaël

> Hei,
>
> I just looked into the download stats for the tutorials and there are
> quite some downloads for the 1.4 general tutorial (10 in the past 7 days
> - while we had 22 for the 1.5 tutorial).
>
> I assume some link on a page is leading people to it? Any idea? probably
> a google search helps ;)
>
> cheers,
> stefan
>
> --
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel