You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2014-08-10 11:37:47

iain1940
Member
Registered: 2013-09-09
Posts: 6

Using Josm 'circle' commands

I wish to create a path of specific length from a given point and think that the 'circle' command might help me to do this.

I have installed the 'command' addin and the command line is displayed.

I have found the 'command definition :

<?xml version="1.0" encoding="UTF-8"?>
<command version="3" name="Circle" icon="circle.png" run="python circle.py {Center} {Radius} {Sides}">
	<parameter required="true" type="point">
		<name>Center</name>
		<description>Center of circle</description>
	</parameter>
	<parameter required="true" type="length" minvalue="0.1" maxvalue="10000">
		<name>Radius</name>
		<description>Radius of circumcircle(m)</description>
		<value>10</value>
	</parameter>
	<parameter required="true" type="natural" minvalue="3" maxvalue="144">
		<name>Sides</name>
		<description>Number of sides</description>
		<value>12</value>
	</parameter>
</command>

Unfortunately I don't know what to do next.
How do I pass the point, radius and sides to the command.
Sorry if this is very elementary but I can't find where this is specified

Last edited by iain1940 (2014-08-10 11:39:09)

Offline

#2 2014-08-10 12:49:34

nevw
Member
From: SE Queensland, Australia
Registered: 2013-04-11
Posts: 447

Re: Using Josm 'circle' commands

I am not familiar with the commandline plugins, but this page  http://wiki.openstreetmap.org/wiki/JOSM … ommandLine  says you should begin typing Circle at the command line and it will then ask you for the parameters. I assume select a node on the map to anchor the output to before entering the command.
Where does the command line appear? ... in one of the window icons at the left (and under the windows tab) which you would click on to open?

Offline

#3 2014-08-10 13:28:46

iain1940
Member
Registered: 2013-09-09
Posts: 6

Re: Using Josm 'circle' commands

Once the 'command'  addin is installed the command line is automically displayed at the top of the screen (see attached)
6j200g.jpg

I'd done what you suggested (with variations) but no response

Offline

#4 2014-08-10 13:35:43

nevw
Member
From: SE Queensland, Australia
Registered: 2013-04-11
Posts: 447

Re: Using Josm 'circle' commands

Looks good anyway

I think you could also use the measurement plugin http://wiki.openstreetmap.org/wiki/JOSM … easurement
It puts an icon on the left side, which when selected opens a window that displays the output.

You can select the units under preferences>map settings>ok

Edit: I need to select the 'draw nodes' button first, then the tapemeasure icon at the left, then click on the map, and then works as described on the web page.

Last edited by nevw (2014-08-10 13:55:46)

Offline

#5 2014-08-10 15:53:51

nevw
Member
From: SE Queensland, Australia
Registered: 2013-04-11
Posts: 447

Re: Using Josm 'circle' commands

I just installed in on my iMac and works as expected.
20j398n.png
You may need to double check where you created the CommandLine folder that holds all the files from folder "JOSM-CommandLine-commands-master" that you downloaded.

Last edited by nevw (2014-08-14 09:23:24)

Offline

#6 2014-08-10 16:02:46

iain1940
Member
Registered: 2013-09-09
Posts: 6

Re: Using Josm 'circle' commands

It may be that I haven't all the Python modules installed.

Offline

#7 2014-08-10 16:07:24

nevw
Member
From: SE Queensland, Australia
Registered: 2013-04-11
Posts: 447

Re: Using Josm 'circle' commands

iain1940 wrote:

It may be that I haven't all the Python modules installed.

I think those were installed when I installed this  http://wiki.openstreetmap.org/wiki/Qual … ols_script
but maybe the mac came with python installed?

Last edited by nevw (2014-08-10 16:16:00)

Offline

Board footer

Powered by FluxBB