Re: [JPP-Devel] Edit styles of all selected layers

2012-03-07 Thread Michaël Michaud

Hi Larry,
That is a great beantool Michaël!  It certainly demonstrates how much 
can be accomplished with a little code.


If it was to be implemented as a plugin, we have space on the Style 
tab of the Layer Properties dialog.  It could be implemented as a 
slider like the Transparency adjustment that proportionally adjusts 
line width, or by using an option checkbox, make the slider change to 
absolute width.  Both modes would be useful.
Right, I forgot this place. And adding a component to change the line 
width this way should not be too much work.
IMHO, this panel would be more easy to find in the new Style menu. What 
do you think ?
I'm expecting read-only information when I open this layer properties 
dialog. Maybe my

interpretation though.

Regards,

Michaël



Larry



2012/3/7 Michaël Michaud >


Hi Jukka,



It would speed up things sometimes if some style settings could
be edited for all selected layers at once. Making lines
wider width is the most common case for me.

Agree with you.

Easy to solve with a script.
Doing a nice plugin, consistent with OpenJUMP style management and
style panels is much more work.

I would recommend a FeatureRequest (I think there are already several
FR related to styling, but unfortunately, there has not been work
done
in this domain for a long time).

Attached is a small beantool doing the job.
Could be added to the distribution as an example of a beantool
with a small UI.

Michaël



-Jukka Rahkonen-



--
Virtualization&  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net  

https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
Virtualization&  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/


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


--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Edit styles of all selected layers

2012-03-07 Thread Larry Becker
That is a great beantool Michaël!  It certainly demonstrates how much can
be accomplished with a little code.

If it was to be implemented as a plugin, we have space on the Style tab of
the Layer Properties dialog.  It could be implemented as a slider like the
Transparency adjustment that proportionally adjusts line width, or by using
an option checkbox, make the slider change to absolute width.  Both modes
would be useful.

Larry



2012/3/7 Michaël Michaud 

>  Hi Jukka,
>
>
>
> It would speed up things sometimes if some style settings could be edited
> for all selected layers at once. Making lines wider width is the most
> common case for me.
>
> Agree with you.
>
> Easy to solve with a script.
> Doing a nice plugin, consistent with OpenJUMP style management and
> style panels is much more work.
>
> I would recommend a FeatureRequest (I think there are already several
> FR related to styling, but unfortunately, there has not been work done
> in this domain for a long time).
>
> Attached is a small beantool doing the job.
> Could be added to the distribution as an example of a beantool with a
> small UI.
>
> Michaël
>
>
>
>
> -Jukka Rahkonen-
>
>
>
>
> --
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a 
> service.http://www.accelacomm.com/jaw/sfnl/114/51521223/
>
>
>
> ___
> Jump-pilot-devel mailing 
> listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>
>
> --
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Edit styles of all selected layers

2012-03-07 Thread Michaël Michaud

Hi Jukka,

It would speed up things sometimes if some style settings could be 
edited for all selected layers at once. Making lines wider width is 
the most common case for me.

Agree with you.

Easy to solve with a script.
Doing a nice plugin, consistent with OpenJUMP style management and
style panels is much more work.

I would recommend a FeatureRequest (I think there are already several
FR related to styling, but unfortunately, there has not been work done
in this domain for a long time).

Attached is a small beantool doing the job.
Could be added to the distribution as an example of a beantool with a 
small UI.


Michaël



-Jukka Rahkonen-


--
Virtualization&  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/


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


//Commencez votre script BeanShell ici
import com.vividsolutions.jump.workbench.ui.MultiInputDialog;
import com.vividsolutions.jump.workbench.ui.GUIUtil;

dialog = new MultiInputDialog(wc.getWorkbench().getFrame(), "Change line 
width", true);
dialog.addIntegerField("Line Width", 2, 12, "");
GUIUtil.centreOnWindow(dialog);
dialog.setVisible(true);
if (dialog.wasOKPressed()) {
width = dialog.getInteger("Line Width");
for (lyr : wc.layerNamePanel.selectedLayers) {
lyr.basicStyle.setLineWidth(width);
}
wc.layerViewPanel.repaint();
}--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] [openjump-users] orthogonalize plugin

2012-03-07 Thread Giuseppe Aruta
Hi Michael,
both options seems valid.

Maybe option 2 could make OpenJUMP simpler and more actractive for 
beginners/occasional users.


Giuseppe




 Da: Michaël Michaud 
A: OpenJump develop and use  
Inviato: Mercoledì 7 Marzo 2012 8:30
Oggetto: Re: [JPP-Devel] [openjump-users] orthogonalize plugin
 

Hi,

Thanks for the answer Stefan,
I changed the subject to orthogonalize plugin

There is still a minimum of two options to include it :
- Include it in the CORE version. In this case, I think its place is
in Tools>Generalisation menu, but I would be pleased to hear
other's advice.
- Include it in the PLUS version as an external extension. In this
case, it will come in a Plugin>Generalization menu, and I think
it woud be
consistent to gather simplification, simplification JTS, simplify a
polygon layer, orthogonalize and smoothing plugins in this extension
and to remove Tools>Generalization (simplification/simplification
JTS would still be available as core functions in 
Tools>Analysis>Geometry function plugin)

Please, give your opinion or propose another menu organisation.

Michaël



Le 06/03/2012 20:30, Stefan Steiniger a écrit : 
Sorry for the late answer,
>
>I am fine with having the orthogonalize plugin build-in for plus
  maybe? If we would put it into the GenToolbox it would need a new
  release and actually a description of what is different between
  the two plugins with similar goals. And currently I can't say that
  I would have time for that???
>
>As far as I remember Larrys plugin is more straight forward - i.e.
  I have a lot of overhead processing as it was supposed to be
  included in an automated system.
>
>other opinions?
>stefan
>
>On 29/02/2012 3:36 PM, Michaël Michaud wrote: 
>Hi,
>>
>>Hmm, sourceforge autoblocked my first reply attempt (from gmail, no less).  
>>Anyone else having issues.
>>>
>>>
>>>Thanks for the quick reply Michaël. 
>>>
>>>
>>>
>>>Is Copy Select Elements to New Layer the same as OpenJUMP's 
>>>ReplicateSelectedItemsPlugIn (org.openjump.core.ui.plugin.edit) ?
>>>
>>>ReplicateSelectedItemsPlugIn (yours, I think) 
From Stefan actually,
>>
>>has more sophisticated checking for different schema on multiple layers, but 
>>it would need to be modified to support external invocation from another 
>>plugin (not hard), or I could just inline the needed code in Orthogonalize.
>>>
If it is small, inline maybe fine. I just draw your attention because having 
several classes and/or plugins doing almost the same thing is difficult to 
maintain.
>>
>>
>>>
>>>There is now a kml parser in JTS...

>>>
>>>That is good news.  The one I wrote is based on the JUMP
  GML parser.  It doesn't support hierarchical geometries
  (you'd think this would be easy, but I didn't find it to
  be).
>>>
Sorry for the misleading. JTS as in fact GML parser, not KML (don't know the 
gap between both formats for geometry).
>>http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/io/gml2/GMLHandler.html
>>
>>But still, it may be worthwhile using it to simplify
maintenance.
>>
>>Michaël
>>
>>
>>>thanks,
>>>
>>>Larry
>>>
>>>
>>>
>>>2012/2/29 Michaël Michaud 
>>>
>>>Hi, 



I have done a basic port of the Orthogonalize plugin from SkyJUMP to 
OpenJUMP.  Orthogonalize is a tool (currently on the right click menu) that 
squares up selected building polygons. Orthogonalization is the process of 
fixing polygons and multipolygons whose interior angles are close, but not 
exactly 90 degrees.  An angle tolerance parameter controls what we mean by 
not exactly.  You have the option of fixing in place on the source layer, 
or to a new layer.  Stefan looked at this tool a few years ago.
>
Stefan, how does this tool compare with Mapgen toolbox? 


The tool is dependent on another function: Copy Select Elements to New 
Layer.  I ported it too.  Some enhancement of the GeoUtils class was 
necessary.  
>
Is Copy Select Elements to New Layer the same as OpenJUMP's 
ReplicateSelectedItemsPlugIn (org.openjump.core.ui.plugin.edit) ? 



>No internationalization has currently been
  done, but all messages are collected at the
  top of the source.
>
>I'm cross-posting this to the developers
  list.  @Developers: What do you think is the
  appropriate action?  Just commit it or make a
  new plugin hosted on jump-pilot?
>
I like to have advanced options in extensions (generalization, corrections, 
simplification... can lead to a lot of advanced functions).
But we can discuss with others wether or not it
  should be included in the core. 



>@Arnd, the KLM support is another story. 
  Michael had a look at it a few months

[JPP-Devel] Edit styles of all selected layers

2012-03-07 Thread Rahkonen Jukka
Hi,

It would speed up things sometimes if some style settings could be edited for 
all selected layers at once. Making lines wider width is the most common case 
for me.

-Jukka Rahkonen-


--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel