Changes between Version 10 and Version 11 of Help/Plugin/Scripting


Ignore:
Timestamp:
2013-07-16T19:53:56+02:00 (12 years ago)
Author:
skyper
Comment:

added AutoAddIntersections + format update

Legend:

Unmodified
Added
Removed
Modified
  • Help/Plugin/Scripting

    v10 v11  
    22= Plugin -> Scripting =
    33
    4 [[TOC(noheading,inline)]]
     4[[PageOutline(2-4,,inline)]]
     5
    56
    67== In a nutshell ==
    7 
    8 The {{{scripting}}} plugins allows you to run scripts within JOSM.
     8The **scripting** plugins allows you to run scripts within JOSM.
    99
    1010Use it to automate small tasks for which no dedicated plugin is available, i.e.
    11 
    1211* additional quality tests for which no validator test cases are available
    1312* automatically entering data in very specific situations (i.e. sequences of house numbers)
     
    1615
    1716The plugin includes a embedded scripting engine for Javascript based on Mozilla Rhino and a
    18 [http://gubaer.github.com/josm-scripting-plugin/content/js-doc/index.html Javascript API] for the JOSM application objects.
     17[http://gubaer.github.com/josm-scripting-plugin/content/js-doc/index.html Javascript API] for the JOSM application objects.\\
     18Alternatively, you can use any scripting language which provides a JSR-223 compatible scripting engine, in particular
     19[http://groovy.codehaus.org/ Groovy], [http://www.jython.org/ Python], or [http://jruby.org/ Ruby].\\
     20Please refer to the [https://gubaer.github.io/josm-scripting-plugin/doc/documentation.html plugin documentation] for more information and find the source on [https://github.com/gubaer/josm-scripting-plugin GitHub].
    1921
    20 Alternatively, you can use any scripting language which provides a JSR-223 compatible scripting engine, in particular
    21 [http://groovy.codehaus.org/ Groovy], [http://www.jython.org/ Python], or [http://jruby.org/ Ruby].
    22 
    23 Please refer to the [http://gubaer.github.com/josm-scripting-plugin/content/index.html plugin documentation] on
    24 [https://github.com/gubaer/josm-scripting-plugin GitHub] for more information.
    2522
    2623== Example scripts in Python ==
     24Here are some more examples:
     25* [wiki:Help/Plugin/Scripting/Python]\\
     26 Various small scripts that are meant to illustrate how to do one thing.
    2727
    28 Here are some more examples:
     28* [wiki:Help/Plugin/Scripting/Python/SurfaceTypesOfRoutes] (Interesting for cycle routes, both loops and linear ones)\\
     29 Short piece of code, but illustrates some interesting concepts and reports on OSM data. Doesn't make changes to the data
    2930
    30 [wiki:Help/Plugin/Scripting/Python][[BR]]
    31     Various small scripts that are meant to illustrate how to do one thing.
    32 [wiki:Help/Plugin/Scripting/Python/SurfaceTypesOfRoutes] (Interesting for cycle routes, both loops and linear ones)
    33     Short piece of code, but illustrates some interesting concepts and reports on OSM data. Doesn't make changes to the data
     31* [wiki:Help/Plugin/Scripting/Python/RCN_Route_Validator]\\
     32 This is not a trivial script anymore. It does a lot in a complicated field (networks of cycle node routes with numbered nodes), makes changes to relations, writes to a file that can be pasted to the wiki. Analyzes routes, but also networks of routes or collections of networks of routes, depending on the selection in JOSM when the script was run.
    3433
    35 [wiki:Help/Plugin/Scripting/Python/RCN_Route_Validator][[BR]]
    36     This is not a trivial script anymore. It does a lot in a complicated field (networks of cycle node routes with numbered nodes), makes changes to relations, writes to a file that can be pasted to the wiki. Analyzes routes, but also networks of routes or collections of networks of routes, depending on the selection in JOSM when the script was run.
     34* [attachment:ticket:7991:AutoAddIntersections.py AutoAddIntersections] (needs [wiki:Plugin/UtilsPlugin2 UtilsPlugin2])\\
     35 Adds command queue listener that will perform utilsplugin2's AddNodesAtIntersections command after encountering Extrude command. (See #7991)\\
     36 Run once per JOSM session.
    3737
    3838----
    3939Back to [wiki:/Plugins#JOSMdocu Plugin Help][[BR]]
    4040Back to [wiki:/Help Main Help]
    41