Revision: 4518 http://sourceforge.net/p/jump-pilot/code/4518 Author: michaudm Date: 2015-06-28 11:31:25 +0000 (Sun, 28 Jun 2015) Log Message: ----------- Add 4 morphologic indices to GeometryAttributes plugin
Modified Paths: -------------- core/trunk/ChangeLog core/trunk/src/language/jump.properties core/trunk/src/language/jump_cz.properties core/trunk/src/language/jump_de.properties core/trunk/src/language/jump_es.properties core/trunk/src/language/jump_fi.properties core/trunk/src/language/jump_fr.properties core/trunk/src/language/jump_hu.properties core/trunk/src/language/jump_it.properties core/trunk/src/language/jump_ja_JP.properties core/trunk/src/language/jump_ml.properties core/trunk/src/language/jump_pt.properties core/trunk/src/language/jump_pt_BR.properties core/trunk/src/language/jump_ta_IN.properties core/trunk/src/language/jump_te.properties core/trunk/src/language/jump_zh_CN.properties core/trunk/src/language/jump_zh_HK.properties core/trunk/src/org/openjump/core/ui/plugin/tools/AddGeometryAttributesPlugIn.java Modified: core/trunk/ChangeLog =================================================================== --- core/trunk/ChangeLog 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/ChangeLog 2015-06-28 11:31:25 UTC (rev 4518) @@ -2,6 +2,11 @@ 2015-06-28 mmichaud <m.michael.mich...@orange.fr> * SelectOneItemTool : fix #404 (could select a feature juset deleted) + * Add 4 morphologic indices to GeometryAttributes plugin : + - polygon width + - polygon length + - circularity + - compacity 2015-06-26 bertazza * Raster styles: some bugs fixed. Modified: core/trunk/src/language/jump.properties =================================================================== --- core/trunk/src/language/jump.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -1197,6 +1197,16 @@ org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-length = Add Length org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.area = Area org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-area = Add Area + +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width = PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width = Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length = PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length = Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity = Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity = Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity = Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity = Add Compacity (Grav\xE9lius) + org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.geo-type = GeomType org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-geom-type = Add Geometry Type org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.wkt = WKT Modified: core/trunk/src/language/jump_cz.properties =================================================================== --- core/trunk/src/language/jump_cz.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_cz.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2539,3 +2539,11 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) Modified: core/trunk/src/language/jump_de.properties =================================================================== --- core/trunk/src/language/jump_de.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_de.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2534,4 +2534,18 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Too-many-features=\#T\:Too many features org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature -org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation \ No newline at end of file +org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.layer.ToggleVisiblityPlugIn.Toggle-Visibility= +org.openjump.core.ui.plugin.layer.ToggleVisiblityPlugIn.Error-See-Output-Window= +Measure= +org.openjump.core.ui.plugin.tools.generalization.SimplifyPolygonCoverag.RASTER.ePlugIn= +oorg.openjump.core.rasterimage.AddRasterImageLayerWizard.no-worldfile-found-message= +org.openjump.core.ui.plugin.wms.WMSLegendPlugIn= +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) \ No newline at end of file Modified: core/trunk/src/language/jump_es.properties =================================================================== --- core/trunk/src/language/jump_es.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_es.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2515,4 +2515,12 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Too-many-features=Demasiadas geometr\xEDas org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=Validar org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=Medir elementos seleccionados -org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=no suportato por este tipo de operaci\xF3n \ No newline at end of file +org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=no suportato por este tipo de operaci\xF3n +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) \ No newline at end of file Modified: core/trunk/src/language/jump_fi.properties =================================================================== --- core/trunk/src/language/jump_fi.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_fi.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2514,4 +2514,12 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Message=\#T\:Message org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Too-many-features=\#T\:Too many features org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate -Measure selected feature \ No newline at end of file +Measure selected feature +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) \ No newline at end of file Modified: core/trunk/src/language/jump_fr.properties =================================================================== --- core/trunk/src/language/jump_fr.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_fr.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2542,4 +2542,12 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Too-many-features=Trop d'objets s\xE9lectionn\xE9s org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=Valider org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=Mesurer objet s\xE9lectionn\xE9e -org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=il n'a pas \xE9t\xE9 prise en charge pour ce type d'op\xE9ration \ No newline at end of file +org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=il n'a pas \xE9t\xE9 prise en charge pour ce type d'op\xE9ration +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=PLargeur +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=Ajouter la largeur du polygone +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=PLongueur +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=Ajouter la longueur du polygone +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=Circularite +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=Ajouter la circularit\xE9 (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=Compacite +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=Ajouter la compacit\xE9 (Grav\xE9lius) \ No newline at end of file Modified: core/trunk/src/language/jump_hu.properties =================================================================== --- core/trunk/src/language/jump_hu.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_hu.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2532,4 +2532,12 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Too-many-features=\#T\:Too many features org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature -org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation \ No newline at end of file +org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) \ No newline at end of file Modified: core/trunk/src/language/jump_it.properties =================================================================== --- core/trunk/src/language/jump_it.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_it.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2514,4 +2514,12 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Too-many-features=Troppi elementi org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=Valida org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=Misura l'elemento selezionato -org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=non supportato per questo tipo di operazione \ No newline at end of file +org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=non supportato per questo tipo di operazione +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) \ No newline at end of file Modified: core/trunk/src/language/jump_ja_JP.properties =================================================================== --- core/trunk/src/language/jump_ja_JP.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_ja_JP.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2534,4 +2534,12 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Too-many-features=\#T\:Too many features org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature -org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation \ No newline at end of file +org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) \ No newline at end of file Modified: core/trunk/src/language/jump_ml.properties =================================================================== --- core/trunk/src/language/jump_ml.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_ml.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -3805,4 +3805,12 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Too-many-features=\#T\:Too many features org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature -org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation \ No newline at end of file +org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) \ No newline at end of file Modified: core/trunk/src/language/jump_pt.properties =================================================================== --- core/trunk/src/language/jump_pt.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_pt.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2532,3 +2532,11 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) Modified: core/trunk/src/language/jump_pt_BR.properties =================================================================== --- core/trunk/src/language/jump_pt_BR.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_pt_BR.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2531,4 +2531,12 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Too-many-features=\#T\:Too many features org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature -org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation \ No newline at end of file +org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) \ No newline at end of file Modified: core/trunk/src/language/jump_ta_IN.properties =================================================================== --- core/trunk/src/language/jump_ta_IN.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_ta_IN.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2531,3 +2531,11 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) Modified: core/trunk/src/language/jump_te.properties =================================================================== --- core/trunk/src/language/jump_te.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_te.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -3040,3 +3040,11 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) Modified: core/trunk/src/language/jump_zh_CN.properties =================================================================== --- core/trunk/src/language/jump_zh_CN.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_zh_CN.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2695,3 +2695,11 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) Modified: core/trunk/src/language/jump_zh_HK.properties =================================================================== --- core/trunk/src/language/jump_zh_HK.properties 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/language/jump_zh_HK.properties 2015-06-28 11:31:25 UTC (rev 4518) @@ -2694,3 +2694,11 @@ org.openjump.core.ui.plugin.edittoolbox.cursortools.SelectMultiItemsTool.Validate=\#T\:Validate org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.name=\#T\:Measure selected feature org.openjump.core.ui.plugin.mousemenu.MeasureSelectedFeaturePlugIn.message1=\#T\:not supported for this type of operation +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width=\#T\:PolyWidth +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width=\#T\:Add Polygon Width +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length=\#T\:PolyLength +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length=\#T\:Add Polygon Length +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity=\#T\:Circularity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity=\#T\:Add Circularity (Miller) +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity=\#T\:Compacity +org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity=\#T\:Add Compacity (Grav\xE9lius) Modified: core/trunk/src/org/openjump/core/ui/plugin/tools/AddGeometryAttributesPlugIn.java =================================================================== --- core/trunk/src/org/openjump/core/ui/plugin/tools/AddGeometryAttributesPlugIn.java 2015-06-28 09:17:51 UTC (rev 4517) +++ core/trunk/src/org/openjump/core/ui/plugin/tools/AddGeometryAttributesPlugIn.java 2015-06-28 11:31:25 UTC (rev 4518) @@ -28,6 +28,7 @@ //import org.openjump.core.ui.images.IconLoader; import com.vividsolutions.jts.geom.Geometry; +import com.vividsolutions.jts.geom.LineString; import com.vividsolutions.jts.geom.Polygon; import com.vividsolutions.jump.I18N; import com.vividsolutions.jump.feature.*; @@ -95,6 +96,18 @@ public static String WKT = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.wkt"); public static String ADD_WKT = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-wkt"); + public static String POLY_WIDTH = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-width"); + public static String ADD_POLY_WIDTH = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-width"); + + public static String POLY_LENGTH = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.poly-length"); + public static String ADD_POLY_LENGTH = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-poly-length"); + + public static String CIRCULARITY = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.circularity"); + public static String ADD_CIRCULARITY = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-circularity"); + + public static String COMPACITY = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compacity"); + public static String ADD_COMPACITY = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.add-compacity"); + public static String GEOM_ATTRIBUTES = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.geometry-attributes"); public static String COMPUTE_ATTRIBUTES = I18N.get("org.openjump.core.ui.plugin.tools.AddGeometryAttributesPlugIn.compute-attributes"); @@ -111,6 +124,10 @@ private boolean addArea = false; private boolean addGeometryType = false; private boolean addWKT = false; + private boolean addPolyWidth = false; + private boolean addPolyLength = false; + private boolean addCircularity = false; + private boolean addCompacity = false; public void initialize(PlugInContext context) throws Exception { @@ -172,6 +189,22 @@ public void setAddArea(boolean addArea) { this.addArea = addArea; } + + public void setAddPolyWidth(boolean addPolyWidth) { + this.addPolyWidth = addPolyWidth; + } + + public void setAddPolyLength(boolean addPolyLength) { + this.addPolyLength = addPolyLength; + } + + public void setAddCircularity(boolean addCircularity) { + this.addCircularity = addCircularity; + } + + public void setAddCompacity(boolean addCompacity) { + this.addCompacity = addCompacity; + } public void setAddGeometryType(boolean addGeometryType) { this.addGeometryType = addGeometryType; @@ -193,6 +226,10 @@ dialog.addCheckBox(ADD_NB_COMPONENTS, addNbComponents); dialog.addCheckBox(ADD_LENGTH, addLength); dialog.addCheckBox(ADD_AREA, addArea); + dialog.addCheckBox(ADD_POLY_WIDTH, addPolyWidth); + dialog.addCheckBox(ADD_POLY_LENGTH, addPolyLength); + dialog.addCheckBox(ADD_CIRCULARITY, addCircularity); + dialog.addCheckBox(ADD_COMPACITY, addCompacity); dialog.addCheckBox(ADD_GEOMETRY_TYPE, addGeometryType); dialog.addCheckBox(ADD_WKT, addWKT); } @@ -206,6 +243,10 @@ addNbComponents = dialog.getBoolean(ADD_NB_COMPONENTS); addLength = dialog.getBoolean(ADD_LENGTH); addArea = dialog.getBoolean(ADD_AREA); + addPolyWidth = dialog.getBoolean(ADD_POLY_WIDTH); + addPolyLength = dialog.getBoolean(ADD_POLY_LENGTH); + addCircularity = dialog.getBoolean(ADD_CIRCULARITY); + addCompacity = dialog.getBoolean(ADD_COMPACITY); addGeometryType = dialog.getBoolean(ADD_GEOMETRY_TYPE); addWKT = dialog.getBoolean(ADD_WKT); } @@ -240,6 +281,10 @@ if (addNbComponents) schema.addAttribute(NB_COMPONENTS, AttributeType.INTEGER); if (addLength) schema.addAttribute(LENGTH, AttributeType.DOUBLE); if (addArea) schema.addAttribute(AREA, AttributeType.DOUBLE); + if (addPolyWidth) schema.addAttribute(POLY_WIDTH, AttributeType.DOUBLE); + if (addPolyLength) schema.addAttribute(POLY_LENGTH, AttributeType.DOUBLE); + if (addCircularity) schema.addAttribute(CIRCULARITY, AttributeType.DOUBLE); + if (addCompacity) schema.addAttribute(COMPACITY, AttributeType.STRING); if (addGeometryType) schema.addAttribute(GEOM_TYPE, AttributeType.STRING); if (addWKT) schema.addAttribute(WKT, AttributeType.STRING); return schema; @@ -266,8 +311,64 @@ if (addNbComponents) f.setAttribute(NB_COMPONENTS, g.getNumGeometries()); if (addLength) f.setAttribute(LENGTH, g.getLength()); if (addArea) f.setAttribute(AREA, g.getArea()); + if (addPolyWidth) f.setAttribute(POLY_WIDTH, getPolyWidth(g)); + if (addPolyLength) f.setAttribute(POLY_LENGTH, getPolyLength(g)); + if (addCircularity) f.setAttribute(CIRCULARITY, getCircularity(g)); + if (addCompacity) f.setAttribute(COMPACITY, getCompacity(g)); if (addGeometryType) f.setAttribute(GEOM_TYPE, g.getGeometryType()); if (addWKT) f.setAttribute(WKT, g.toString()); } - + + private Double getPolyWidth(Geometry g) { + if (g.getDimension() == 2) { + double length = g.getLength(); + double area = g.getArea(); + double val = (( length * length ) / 4.0 )-( 4.0 * area ); + if (val >= 0.0) { + //calcul normal sur surface allong\xE9e + return (((length / 2.0) - Math.sqrt(val)) / 2.0); + } else { + //diam\xE8tre du disque de m\xEAme surface, sur une surface ramass\xE9e + return 2.0 * Math.sqrt(area / Math.PI); + } + } else return null; + } + + private Double getPolyLength(Geometry g) { + if (g.getDimension() == 2) { + double length = g.getLength(); + double area = g.getArea(); + double val = (( length * length ) / 4.0 )-( 4.0 * area ); + if (val >= 0.0) { + //calcul normal sur surface allong\xE9e + return area / (((length / 2.0) - Math.sqrt(val)) / 2.0); + } else { + //diam\xE8tre du disque de m\xEAme surface, sur une surface ramass\xE9e + return 2.0 * Math.sqrt(area / Math.PI); + } + } else return null; + } + + // Ratio between the geometry area and the area of a circle having the same perimeter + // = 1 if the olygonis a circle + // = 0 if the polygon is completely flat + private Double getCircularity(Geometry g) { + if (g.getDimension() == 2) { + if (g.isEmpty()) return new Double(0); + double length = g.getLength(); + return 4 * Math.PI * g.getArea() / length / length; + } else return null; + } + + // Ratio between the perimeter of the geometry and the perimeter of the circle with the same perimeter + // Not bounded value : + // = 1 (circle) + // = positive infinity (flat) + private Double getCompacity(Geometry g) { + if (g.getDimension() == 2) { + double area = g.getArea(); + return area == 0 ? 0 : g.getLength() / (2*Math.sqrt(Math.PI*area)); + } else return null; + } + } ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel