Thanks Peppe. Perhaps I'll find some time soon to fix this.
Larry
On Mon, Jan 26, 2015 at 1:24 AM, Giuseppe Aruta
wrote:
> Jukka, Larry
> I tried the patch that Larry sent but is seems not working with OpenJump.
> At least with my machine Ubuntu/OpenJDK. It the other members of our
> community agree, I vote to comment out Road Curve tool untill further
> solutions.
> A workaround to draw roads is to use Tools>Analysis> Offset curve tool, by
> Michael, which generate parallel lines so selected one
> Peppe
>
> 2015-01-21 23:53 GMT+01:00 Larry Becker :
>
>> 1. Python tools feels somehow like a promising way for writing new
>>> drawing tools. The Python part of the tools look almost understandable for
>>> non-programmer and I suppose that Python is the most common geospatial
>>> scripting language at the moment. *However, if I understand right for
>>> creating new tools Python is not enough but also some java programming is
>>> needed*. By the way, the Road Arc tools does not work with latest
>>> snapshots and it makes so bad a jam that only killing the process helps.
>>> The error from the console window:
>>>
>>
>> @Jukka, I assume you are referring to the following line from Startup.py:
>>
>> #tools can be defined in java only - as in this orphaned JUMP Note tool
>>
>> The comment is badly worded. It should say #tools may also be defined in
>> java and activated here - as in this orphaned JUMP Note tool There are
>> many examples of defining a new drawing tool in jython only.
>>
>> While I don't currently have my OpenJump development platform up to date,
>> I did diff the SkyJUMP copies of two attached files and bring them up to
>> date with the new Shift key feature of the Road Curve tool (it is maddening
>> to draw long straight stretch of road without it!). If one of the
>> developers has a few minutes, they can see if it fixes the issue. If it
>> doesn't we can comment out lines 100 through 109 in startup.py to
>> deactivate the Road tool.
>>
>> regards,
>>
>> Larry Becker
>>
>> On Tue, Jan 20, 2015 at 6:07 AM, Rahkonen Jukka (MML) <
>> jukka.rahko...@maanmittauslaitos.fi> wrote:
>>
>>> Hi,
>>>
>>>
>>>
>>> I was searching tools for making some CAD alike drawing and studied what
>>> we have. I found:
>>>
>>> 1. Some of the Python tools in the standard delivery has
>>> CAD-alike features (rotated rectangle, Arc tool).
>>>
>>> 2. Peppe has made a CAD tools plugin that adds some CAD tools
>>> into the default digitizing box.
>>>
>>> 3. Kosmo GIS has a special CAD toolbox with about 15 tools.
>>>
>>>
>>>
>>> Quick comments:
>>>
>>>
>>>
>>> 1. Python tools feels somehow like a promising way for writing
>>> new drawing tools. The Python part of the tools look almost understandable
>>> for non-programmer and I suppose that Python is the most common geospatial
>>> scripting language at the moment. However, if I understand right for
>>> creating new tools Python is not enough but also some java programming is
>>> needed. By the way, the Road Arc tools does not work with latest snapshots
>>> and it makes so bad a jam that only killing the process helps. The error
>>> from the console window:
>>>
>>>
>>>
>>> Exception in thread "AWT-EventQueue-0" Traceback (innermost last):
>>>
>>> File
>>> "C:\oj_test\OJ_18\OpenJUMP-20150116-r4270-PLUS\lib\ext\jython\RoadTool.py",
>>> line 201, in handleDeActivation
>>>
>>> AttributeError: 'NoneType' object has no attribute 'actionPerformed'
>>>
>>> Exception in thread "AWT-EventQueue-0" Traceback (innermost last):
>>>
>>>
>>>
>>> 2. I would rather place the additional CAD tools to their own
>>> tool box because they do not behave exactly as the standard tools. Many of
>>> the OJ keyboard shortcuts stop working when a CAD tools is selected. On the
>>> other hand, the SHIFT key does not alter the behaviour of CAD tools as
>>> planned in most cases. The draw vertical/horizontal tool, tools for drawing
>>> closed linestrings and the annotation layer tool would be nice additions to
>>> OJ PLUS. Annotation tool might need some revisiting.
>>>
>>> 3. Many of the Kosmo tools are fine. I wonder how difficult it
>>> would be to adapt some of those for OJ. For example the “Continue lines
>>> until they cross” tools is simple and clever and I do not remember such
>>> tool in other open source GIS. “Draw perpendicular” works well also with
>>> circles and Bezier curves but it would be nice to have a sister tool “Draw
>>> tangent”.
>>>
>>>
>>>
>>> None of these CAD tools had a tool for my need. Or perhaps the “Draw
>>> with commands” tool in Kosmo has but I could not discover the right syntax
>>> even I found the manual
>>> http://www.kosmoland.es/public/kosmo/v_2.0/docs/Extension_Herramienta_CAD.pdf.
>>> What I would like to do feels simple to me:
>>>
>>>
>>>
>>> - Draw a point or first vertex to coordinates x/y
>>>
>>> - Draw next point or vertex by angle and distance or to next
>>> given coordinates
>>>
>>>
>>>
>>> I k