Hi Jukka, Peppe, Thanks again for the feedback, I'll try to follow you suggestion about error message. Constraining a button to work only on a certain type of geometry is a bit more work, but it seems feasable. What do you think about using geometry dimension (0,1,2) instead of the 7 geometry types ?
Nice set of icons with traffic signs. I'll use it to illustrate the wiki page if you don't mind. Michaël Le 11/05/2015 10:40, Rahkonen Jukka (MML) a écrit : > Hi Michaël, > > I think that the inconsistency message is useful. About the other message: > SetAttributesPlugIn.no-feature-found = No selected feature found in a > matching editable layers > > What if to tell also which layers are searched for > No selected feature found in a matching editable layers. Applied layer name > mask: {0} > where {0} would show the value of the layer attribute of the button if it is > set and perhaps "all" otherwise. > > <button icon="img/361[10].png" text="10" atomic="true" layer="layerName" > tooltip="10 km/h"> > > I played a bit and made a MaxSpeed set > http://latuviitta.org/downloads/set_attributes.zip > > Traffic sign icons are from > http://www.cs.helsinki.fi/u/ijjarvin/traffic_signs/fisigns.zip found through > the OSM wiki page http://wiki.openstreetmap.org/wiki/Finland:Traffic_signs. > The JOSM license (GPL2) apply for the icons but they may also be in public > domain, I am not sure. I can check that but I do not mean that this toolset > should be included with the SetAttributes extension but rather to tell that > creating your own toolsets is simple and also that it is OK to use my toolset > with OpenJUMP. > > As a possible enhancement for the future I wonder if it would make sense to > add an option to set a geometry type constraint for the tools. For example > max speed would be accepted for lines and for points because it can be an > attribute of a road (line) or a traffic sign (point) but Stop would only make > sense for points. > > -Jukka Rahkonen- > > Michaël Michaud wrote: > > Hi Jukka, > > Thanks for the tests. > > Here is a version 0.4 with better messages (and resources for translation). > https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/More%20Plugins/SetAttributes%20PlugIn/ > > Note that the xml attribute "atomic" in "button" element makes the plugin > more or less permissive regarding the schema : > - atomic="false" (or no atomic attribute) : missing attributes are simply > ignored > - atomic="true" : fails with a message if an attribute is missing > > I'll try to write a wiki page to explain how to write a configuration file > > Michaël > > Le 10/05/2015 19:25, Rahkonen Jukka (MML) a écrit : >> Hi, >> >> I got it, this tool edits only layer named as "layerName". I think that this >> tool will need a manual with good examples and also some improvements to the >> error messages but it will become a good tool and nice addition into OJ Plus. >> >> -Jukka Rahkonen- >> ________________________________________ >> Rahkonen Jukka (MML) wrote: >> >> Hi, >> >> Feature feels useful and simple to use and configure. My first experiences: >> >> - I could not make the buttons which should update attribute "Nom0" to work. >> I have that attribute in the table as String but the result is always >> "No selected feature found in a matching editable layers >> - Error message should handle the case when layer does not have a >> correct attribute. Something like "No selected feature with attribute {0} >> found" >> >> If I have an attribute window open when using the toolbox the values are >> updated in the window which is great. Generally I am not sure it that >> happens with all editing tools. Would it be good to have a "Reshesh" button >> in the attribute window? >> >> -Jukka Rahkonen- >> ________________________________________ >> Michaël Michaud wrote: >> >> Hi Jumpers, >> >> I just committed code of a new extension which makes it possible to >> create toolboxes from xml to set one or many attribute(s) values of a >> selection of features in one click. >> The toolbox is composed of as many buttons as needed, each button set >> attributes of one or several attributes with specified values. It is >> defined in a xml file located in lib/ext/set_attributes (two examples >> including explanation >> attached) >> >> https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/More%20Plugins/SetAttributes%20PlugIn/? >> >> How to : >> ----------- >> - copy the jar file in lib/ext >> - copy the set_attributes directory in lib/ext Study how to write a >> xml for your use case from the xml attached in this mail Start >> OpenJUMP, click on menu Extension > SetAttributes... then check the >> name of your xml and click OK You can have several toolboxes for >> different purposes and you can adjust the definition of your buttons >> without re-starting OpenJUMP (just re-activate the plugin from the >> menu) >> >> I propose to include this lightweight extension in PLUS version if >> feedback if good enough. >> >> Michaël >> >> ---------------------------------------------------------------------- >> -------- One dashboard for servers and applications across >> Physical-Virtual-Cloud Widest out-of-the-box monitoring support with >> 50+ applications Performance metrics, stats and reports that give you >> Actionable Insights Deep dive visibility with transaction tracing >> using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> ---------------------------------------------------------------------- >> -------- One dashboard for servers and applications across >> Physical-Virtual-Cloud Widest out-of-the-box monitoring support with >> 50+ applications Performance metrics, stats and reports that give you >> Actionable Insights Deep dive visibility with transaction tracing >> using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> ---------------------------------------------------------------------- >> -------- One dashboard for servers and applications across >> Physical-Virtual-Cloud Widest out-of-the-box monitoring support with >> 50+ applications Performance metrics, stats and reports that give you >> Actionable Insights Deep dive visibility with transaction tracing >> using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications Performance > metrics, stats and reports that give you Actionable Insights Deep dive > visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel