Hi,
 
Nice tool.  Especially a possibility to adjust the measument afterwards by 
making the measure layer selectable and editable first is something I have 
never seen in other GIS programs.
A couple of comments based on nightly build of 18th January.
 
- Paint distance and paint area might be selected individually.  Perimeter is 
not always interesting when measuring areas.
- Keyboard shortcuts do not seem to work while doing measurements and thus it 
is difficult to zoom and pan when measuring big objects.
- I notised that the old measurement tool is actually a bit confusing. It shows 
a closed line while doing measuments but the distance on the lower left corner 
is not the length of the perimeter but the length of the polyline drawn. It 
does not give a possibility to measure the perimeter at all.  Your tool with 
separate lenght/area modes is better for my mind. In addition it does not 
accept self-interactions like the standard tool with for example hourglass 
shaped area.
 
-Jukka Rahkonen-
 


________________________________

        Lähettäjä: Giuseppe Aruta [mailto:giuseppe_ar...@yahoo.it] 
        Lähetetty: 18. tammikuuta 2011 3:07
        Vastaanottaja: OpenJump develop and use
        Aihe: [JPP-Devel] new AdvancedMeasurePlugin - found a bug
        
        
Hi Matthias,
 
I gave a testto AdvancedMeasurePlugin and I discover a bug.
 
these are the tests:
 
 
- launch OJ with an empty project
- create a new "layer a"
- draw some features on  "layer a"
- make some measures with AdvancedMeasurePlugin
- draw a new feature on "layer a": the feature is drawn but an error message 
come out: something like "Name of the attribute not recognize: lenght (Illegal 
Argument Exception" (see later)
 
 
or
 
- launch OJ with an empty project
- make some measure with AdvancedMeasurePlugin
- create a new "layer a"
- try to draw any feature on "layer a": in this case it is impossible to draw 
any feature and the same error message come out
 
In both cases the message remains even if I delate the "Measure" layer. I used 
OJ 1.4.1alpha from Nightly buid. It would be interesting if this bug exists 
with OJ 1.4.0.2 or 1.4.0.3
 
regards
 
Peppe
 
 
----------------------------------------------------------
________________________________
_________________________________
 
 
- Details of the error message -
 
java.lang.IllegalArgumentException: Nome dell'attributo non riconosciuto: length
 at 
com.vividsolutions.jump.feature.FeatureSchema.getAttributeIndex(FeatureSchema.java:86)
 at 
com.vividsolutions.jump.feature.AbstractBasicFeature.setAttribute(AbstractBasicFeature.java:77)
 at 
com.vividsolutions.jump.workbench.model.MeasureLayerFinder$1.featuresChanged(MeasureLayerFinder.java:94)
 at 
com.vividsolutions.jump.workbench.model.LayerManager$2.run(LayerManager.java:385)
 at 
com.vividsolutions.jump.workbench.ui.GUIUtil.invokeOnEventThread(GUIUtil.java:572)
 at 
com.vividsolutions.jump.workbench.model.LayerManager.fireLayerEvent(LayerManager.java:396)
 at 
com.vividsolutions.jump.workbench.model.LayerManager.fireFeaturesChanged(LayerManager.java:383)
 at 
com.vividsolutions.jump.workbench.model.LayerManager.fireFeaturesChanged(LayerManager.java:362)
 at 
com.vividsolutions.jump.workbench.model.Layer$2.featuresAdded(Layer.java:187)
 at 
com.vividsolutions.jump.workbench.model.ObservableFeatureCollection.fireFeaturesAdded(ObservableFeatureCollection.java:78)
 at 
com.vividsolutions.jump.workbench.model.ObservableFeatureCollection.add(ObservableFeatureCollection.java:67)
 at 
com.vividsolutions.jump.workbench.ui.cursortool.editing.FeatureDrawingUtil$1.execute(FeatureDrawingUtil.java:145)
 at 
com.vividsolutions.jump.workbench.plugin.AbstractPlugIn.execute(AbstractPlugIn.java:166)
 at 
com.vividsolutions.jump.workbench.ui.cursortool.editing.FeatureDrawingUtil.drawRing(FeatureDrawingUtil.java:184)
 at 
com.vividsolutions.jump.workbench.ui.cursortool.editing.DrawRectangleTool.gestureFinished(DrawRectangleTool.java:69)
 at 
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool.fireGestureFinished(AbstractCursorTool.java:446)
 at 
com.vividsolutions.jump.workbench.ui.cursortool.DragTool.mouseReleased(DragTool.java:157)
 at 
com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool.mouseReleased(DelegatingTool.java:116)
 at 
com.vividsolutions.jump.workbench.ui.cursortool.LeftClickFilter.mouseReleased(LeftClickFilter.java:93)
 at 
com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool.mouseReleased(DelegatingTool.java:116)
 at 
com.vividsolutions.jump.workbench.ui.cursortool.QuasimodeTool.mouseReleased(QuasimodeTool.java:199)
 at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
 at java.awt.Component.processMouseEvent(Unknown Source)
 at javax.swing.JComponent.processMouseEvent(Unknown Source)
 at java.awt.Component.processEvent(Unknown Source)
 at java.awt.Container.processEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Window.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)


--- Mar 18/1/11, Michaël Michaud <michael.mich...@free.fr> ha scritto:



        Da: Michaël Michaud <michael.mich...@free.fr>
        Oggetto: Re: [JPP-Devel] new AdvancedMeasurePlugin
        A: "OpenJump develop and use" <jump-pilot-devel@lists.sourceforge.net>
        Data: Martedì 18 gennaio 2011, 00:30
        
        
        Hi Matthias,
        
        Good job Matthias ! It works fine for me.
        Thanks for this nice plugin.
        I have changed a single character in the measure tool (² --> \u002B) 
after I get a weird character on my windows box.
        
        +1 to replace the old plugin by this one before next release (1.4.1) 
        
        two small possible improvments :
        - option to choose units (so that we can also replace the last plugin 
of Tools menu)
        - adaptative format to get more decimals if the length/area are very 
small (currently, it displays 0.00 for areas < 0.00 m2, which, I admit, is not 
much...)
        
        Michaël
        
        Le 16/01/2011 16:46, Matthias Scholz a écrit : 

                Hello! 
                
                I've commited some changes for the new measurement tool. Now 
you can style the measurement for your needs. There is a new option tab in the 
options dialog. I18n is done for german. Here I need your help. I've attached a 
file with all the new keys. So it should be simple for you to translate. Please 
mail me the file back and i will commit the translation. The english 
translation should be controlled too ;-) 
                
                Please give me feedback  about the new tool. I hope we can 
replace the old tool in the next release. 
                
                Regards 
                
                Matthias 
                

                        Hi Arnd! 
                          

                                Hello Matthias, 
                                
                                thank You for that nice tool. Easy 
understandable and easy to use. 
                                But I do not found where to disable the labels 
if the user wants it. 
                                      

                        That is to be done and on my TODO. 
                          

                                I found it not in the dialog to change style > 
labels 
                                
                                Kindly regards 
                                Arnd 
                                
                                      

                                        Hello, 
                                        
                                        new year, new luck in OJ development 
:-) 
                                        
                                        In the past days I've developed a new 
AdvancedMeasurePlugin. At the moment it isn't activated by default, because 
it's in beta stage. I invite  you to test and make  annotations and 
suggestions. You can activate it simply by adding a 
                                        
                                        
<plug-in>org.openjump.core.ui.plugin.tools.AdvancedMeasurePlugin</plug-in> 
                                        
                                        line to the default-plugins.xml file. 
In the future i hope that we can replace the old MeasureTool. 
                                        
                                        What are the enhancements? 
                                        - you have the choice between a area or 
distance measurement mode 
                                        - the measurement keeps on screen after 
you have finished the measurement, which is done by an automatically created 
Layer 
                                        - possibility to print or export the 
map with the measurement 
                                        - possibility to change the measurement 
with the editing tools 
                                        - possibility to save the measurement 
                                        - the distance is displayed for every 
vertex 
                                        - start vertex have a different style, 
so you can see where your measurement starts 
                                        - area and distance are displayed in 
the center of the measurement 
                                        - if you rename the measure Layer, you 
can make more than one measurement 
                                        
                                        But some things must be done by me: 
                                        - I18N 
                                        - icons 
                                        - JavaDoc 
                                        - testing 
                                        - an OptionsDialog for setting up the 
Style and some other options 
                                        
                                        Regards 
                                        
                                        Matthias 
                                        
                                        
------------------------------------------------------------------------------ 
                                        Learn how Oracle Real Application 
Clusters (RAC) One Node allows customers 
                                        to consolidate database storage, 
standardize their database environment, 
                                        and, should the need arise, upgrade to 
a full multi-node Oracle RAC database without downtime or disruption 
                                        http://p.sf.net/sfu/oracle-sfdevnl 
                                        
_______________________________________________ 
                                        Jump-pilot-devel mailing list 
                                        Jump-pilot-devel@lists.sourceforge.net 
<http://it.mc297.mail.yahoo.com/mc/compose?to=Jump-pilot-devel@lists.sourceforge.net>
  
                                        
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel 
                                                  

                                      



                        
------------------------------------------------------------------------------ 
                        Learn how Oracle Real Application Clusters (RAC) One 
Node allows customers 
                        to consolidate database storage, standardize their 
database environment, and, should the need arise, upgrade to a full multi-node 
Oracle RAC database without downtime or disruption 
                        http://p.sf.net/sfu/oracle-sfdevnl 
                        _______________________________________________ 
                        Jump-pilot-devel mailing list 
                        Jump-pilot-devel@lists.sourceforge.net 
<http://it.mc297.mail.yahoo.com/mc/compose?to=Jump-pilot-devel@lists.sourceforge.net>
  
                        
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel 
                          


                
                
------------------------------------------------------------------------------
                Protect Your Site and Customers from Malware Attacks
                Learn about various malware tactics and how to avoid them. 
Understand 
                malware threats, the impact they can have on your business, and 
how you 
                can protect your company and customers by using code signing.
                http://p.sf.net/sfu/oracle-sfdevnl
                
                _______________________________________________
                Jump-pilot-devel mailing list
                Jump-pilot-devel@lists.sourceforge.net 
<http://it.mc297.mail.yahoo.com/mc/compose?to=Jump-pilot-devel@lists.sourceforge.net>
 
                https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



        -----Segue allegato-----
        
        
        
------------------------------------------------------------------------------
        Protect Your Site and Customers from Malware Attacks
        Learn about various malware tactics and how to avoid them. Understand 
        malware threats, the impact they can have on your business, and how you 
        can protect your company and customers by using code signing.
        http://p.sf.net/sfu/oracle-sfdevnl

        -----Segue allegato-----
        
        
        _______________________________________________
        Jump-pilot-devel mailing list
        Jump-pilot-devel@lists.sourceforge.net 
<http://it.mc297.mail.yahoo.com/mc/compose?to=Jump-pilot-devel@lists.sourceforge.net>
 
        https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
        


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to