Re: [JPP-Devel] OpenJUMP and CAD tools
Thanks Peppe. Perhaps I'll find some time soon to fix this. Larry On Mon, Jan 26, 2015 at 1:24 AM, Giuseppe Aruta giuseppe_ar...@yahoo.it 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 ToolsAnalysis Offset curve tool, by Michael, which generate parallel lines so selected one Peppe 2015-01-21 23:53 GMT+01:00 Larry Becker becker.la...@gmail.com: 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 know I can workaround the manual feed of coordinates effectively by using WKT but not the angle + distance alternative. -Jukka Rahkonen- -- New Year. New Location. New Benefits. New Data Center
Re: [JPP-Devel] OpenJUMP and CAD tools
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 know I can workaround the manual feed of coordinates effectively by using WKT but not the angle + distance alternative. -Jukka Rahkonen- -- New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel # Copyright (C) 2005 Integrated Systems Analysts, Inc. # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU
Re: [JPP-Devel] GDAL reads and writes JUMP JML now
Sounds like an idea whose time has come. With GDAL support (in the MAXI release) it would be possible to integrate the GUI tool from SkyJUMP that uses ogr2ogr to to load any supported file format while reprojecting the coordinate system. See the attached screen shot. The main feature is the exhaustive drop down list of coordinate systems that can be reduced by typing a key word. regards Larry On Wed, Oct 22, 2014 at 2:15 PM, edgar.sol...@web.de wrote: On 20.10.2014 12:30, edgar.sol...@web.de wrote: For testing the driver a GDAL from current trunk (revision r27882 or higher) is needed. Windows users can get ready made binaries from http://gisinternals.com/sdk/ by selecting some of the “development” versions. The GDAL tool to use is ogr2ogr http://gdal.org/ogr2ogr.html. As an example, for converting data from MapInfo tab into JML format the command to use is i will update PLUS snapshot as soon as possible scratch that.. there were mere 60 downloads of our GDAL-windows package https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/Drivers/ from sourceforge since january. maybe we should come up with a MAXI release integrating GDAL for the lazy crossing the 100MB border though. ..ede -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] GDAL reads and writes JUMP JML now
You got me. 8-) Jukka may be the last SkyJUMP user outside of the small community of users it was built to support. On Wed, Oct 22, 2014 at 2:46 PM, edgar.sol...@web.de wrote: On 22.10.2014 21:43, Larry Becker wrote: The main feature is the exhaustive drop down list of coordinate systems that can be reduced by typing a key word. not targeting Jukka at all : ..ede -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] GDAL reads and writes JUMP JML now
You can check it out as the sourceforge stand-alone project iGor http://sourceforge.net/projects/ogr-igor/ It supports shapefiles now, but it should be easy to add the new JML conversion support. Larry On Wed, Oct 22, 2014 at 2:52 PM, edgar.sol...@web.de wrote: hmm.. if you've already got it in SkyJUMP i am definitely on board.. let's port that... additionally we should have a converter (File-Convert) that'd allow to easily convert files within the restraints of ogr2ogr.. simply showing the error in a dialog if one occurs. hmm.. as JML support is new, what does your extension read into SkyJUMP.. shapefiles? ..ede On 22.10.2014 21:43, Larry Becker wrote: Sounds like an idea whose time has come. With GDAL support (in the MAXI release) it would be possible to integrate the GUI tool from SkyJUMP that uses ogr2ogr to to load any supported file format while reprojecting the coordinate system. See the attached screen shot. The main feature is the exhaustive drop down list of coordinate systems that can be reduced by typing a key word. regards Larry On Wed, Oct 22, 2014 at 2:15 PM, edgar.sol...@web.de mailto: edgar.sol...@web.de wrote: On 20.10.2014 12:30, edgar.sol...@web.de mailto:edgar.sol...@web.de wrote: For testing the driver a GDAL from current trunk (revision r27882 or higher) is needed. Windows users can get ready made binaries from http://gisinternals.com/sdk/ by selecting some of the “development” versions. The GDAL tool to use is ogr2ogr http://gdal.org/ogr2ogr.html. As an example, for converting data from MapInfo tab into JML format the command to use is i will update PLUS snapshot as soon as possible scratch that.. there were mere 60 downloads of our GDAL-windows package https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/Drivers/ from sourceforge since january. maybe we should come up with a MAXI release integrating GDAL for the lazy crossing the 100MB border though. ..ede -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net mailto: Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] GDAL reads and writes JUMP JML now
Well, there is the SJ layer context menu item Open in Google Earth that uses OGR to translate the layer to KML and launches it in GE. Gimmicky, but impressive. However, currently it only supports the UTM projection. On Wed, Oct 22, 2014 at 3:13 PM, edgar.sol...@web.de wrote: any other goodies. while we're at it you wanna see ported to OJ? ..ede On 22.10.2014 22:01, Larry Becker wrote: You can check it out as the sourceforge stand-alone project iGor http://sourceforge.net/projects/ogr-igor/ It supports shapefiles now, but it should be easy to add the new JML conversion support. Larry On Wed, Oct 22, 2014 at 2:52 PM, edgar.sol...@web.de mailto: edgar.sol...@web.de wrote: hmm.. if you've already got it in SkyJUMP i am definitely on board.. let's port that... additionally we should have a converter (File-Convert) that'd allow to easily convert files within the restraints of ogr2ogr.. simply showing the error in a dialog if one occurs. hmm.. as JML support is new, what does your extension read into SkyJUMP.. shapefiles? ..ede On 22.10.2014 21:43, Larry Becker wrote: Sounds like an idea whose time has come. With GDAL support (in the MAXI release) it would be possible to integrate the GUI tool from SkyJUMP that uses ogr2ogr to to load any supported file format while reprojecting the coordinate system. See the attached screen shot. The main feature is the exhaustive drop down list of coordinate systems that can be reduced by typing a key word. regards Larry On Wed, Oct 22, 2014 at 2:15 PM, edgar.sol...@web.de mailto: edgar.sol...@web.de mailto:edgar.sol...@web.de mailto: edgar.sol...@web.de wrote: On 20.10.2014 12:30, edgar.sol...@web.de mailto: edgar.sol...@web.de mailto:edgar.sol...@web.de mailto: edgar.sol...@web.de wrote: For testing the driver a GDAL from current trunk (revision r27882 or higher) is needed. Windows users can get ready made binaries from http://gisinternals.com/sdk/ by selecting some of the “development” versions. The GDAL tool to use is ogr2ogr http://gdal.org/ogr2ogr.html. As an example, for converting data from MapInfo tab into JML format the command to use is i will update PLUS snapshot as soon as possible scratch that.. there were mere 60 downloads of our GDAL-windows package https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/Drivers/ from sourceforge since january. maybe we should come up with a MAXI release integrating GDAL for the lazy crossing the 100MB border though. ..ede -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net mailto: Jump-pilot-devel@lists.sourceforge.net mailto: Jump-pilot-devel@lists.sourceforge.net mailto: Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net mailto: Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net mailto: Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Macro recorder for OpenJUMP (work in progress)
Hi Michaël, A bold new feature! One question: are you considering the use of BeanShell as the macro language? This would multiply the power of macro recording by making it a first step in script writing. regards, Larry Becker On Mon, Oct 6, 2014 at 6:28 AM, Michael Michaud m.michael.mich...@orange.fr wrote: Hi, Macro recording an action on a selected layer : There is an interesting question about plugins executed on a selected layer or category (some are dialogless like delete or copy/paste) User starts a macro, delete selected layer A and stop the macro. What is the expected behaviour when the macro is run again ? - should it delete the selected layer (whatever its name is) - or should it delete layer A, regardless of whether it is selected or not. Use cases are welcome to try to define a behaviour both consistent and useful. Michaël -- Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Selecting Sequential LineStrings
Hi Landon, Although I'm not an active developer much anymore, I recall having thought about this issue. My suggestion would be to use the status bar for prompts like select the primary linestring. Then the user doesn't have to click extra buttons. My 2 cents. regards, Larry On Fri, Aug 1, 2014 at 11:26 AM, Landon Blake sunburned.surve...@gmail.com wrote: Hey guys. I'm working on some CAD plug-ins for OpenJUMP. For a couple of the plug-ins I need the user to select first a primary LineString and then a secondary LineString. I've been peeking at the core source code and Javadoc this morning and can't find a place where this is done already. I'm thinking I can do this by creating a GUI panel with two buttons. The first button would activate the select features tool. I'd then grab the selected LineString. The second button would activate the select features tool a second time and would allow the user to grab the second LineString. Here are some questions: How do I return focus to my plug-in dialog after the user finishes selection with the SelectFeaturesTool? Can I do this with the built in tool, or do I need to create a custom cursor tool to do this? Thanks for the help! I'll make sure to share my code (and all of the CAD tools) when I'm finished. Thanks. Landon -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] VOTE.. Re: Integration of the SkyPrintPlugin into CORE
+1 - SkyPrint core (at least the driver part) On Sun, Apr 13, 2014 at 7:48 AM, edgar.sol...@web.de wrote: sorry, but what's the current consensus now? please everyone interested raise hands again. all i can remember is SkyPrint into CORE - Michael into PLUS - Ede ..ede On 01.04.2014 08:58, Michael Michaud wrote: Hi , Although I'm generally not in favour of adding new dependencies to the core, I think that - printing is a core feature - having two printers in PLUS and none in CORE is a bit strange So my vote is to add the new printer to the CORE As for the name, an other option would be File Print Printer File Print Printer (advanced) or File Print Printer (core) File Print Printer (plus) My two cents Michaël I am in favour of Ede's proposal. Peppe 2014-03-17 20:18 GMT+01:00 edgar.sol...@web.de mailto: edgar.sol...@web.de: On 17.03.2014 18:39, Matthias Scholz wrote: Hi, If it works on Win/Linux/Mac and 32-bit/64-bit then absolutely into core. The jar is only about 40 kb and makes it possible to Not quite correct. You need the itext jar in the lib folder too ;-) ok, that's 1MB extra.. that smells like PLUS to me then. @All.. is there agreement that this is wanted in CORE, or would we rather have it in PLUS, to keep CORE lean? We can have a File - Print submenu with SkyPrint in CORE and SkyPrint + Geoff's plugin in the PLUS. I am undecided, but Printing should be a core feature. However, what Matthias proposed maybe best as Geoffs Printing is a bit heavier and people should know by now that the goodies come with PLUS (hopefully). i'd suggest File-Print-Printer (Cadplan) Printer (SkyPrint) as to differentiate the two. trying to describe the difference would be to difficult in a short menu item's text. this can easily be done with the new install mechanism. default-plugins.xml can override the install setting of any extension. the string would go into OJ language files then. wrt. to the integration. @All.. is there agreement that this is wanted in CORE, or would we rather have it in PLUS, to keep CORE lean? We can have a File - Print submenu with SkyPrint in CORE and SkyPrint + Geoff's plugin in the PLUS. Matthias: you might wanna read the old thread on what we negotiated http://sourceforge.net/p/jump-pilot/mailman/jump-pilot-devel/thread/5288BF32.3060408%40web.de/#msg31648034 I read it yesterday again. To get the SkyPrinter run from lib/ext we need the itext jar in the lib path. Ede, should i move the itext-2.1.7.jar from lib/plus into lib/ and copy SkyPrinterPlugIn-1.0.0.jar to the SVN into lib/ext or do you do that during release build for PLUS this is handled easily. everything in trunk/lib/plus/ is simply copied into lib/ext/ during the PLUS release build. so, after Jukka or others approved the extension you might simply - add documentation to etc/readme.txt (section Licensing/PLUS), read other entries there to get an idea of the needed information - commit the needed jar to lib/plus/ it will be included in the next PLUS build as you volunteered (kind of) now for the extension's maintenance ;) please also generate a proper extension release for sf.net http://sf.net files, instead of only a jar. that would be a zip file, containing ReadMe.txt - with chapters Installation - which file to copy where Licenses - name, files, component lib files - needed support jars, extension jar license files (txt,pdf...) for the components above, download them from the net and upload it for users wanting to use the extension with a barebone CORE OJ only. regards.. ede -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net mailto: Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech
Re: [JPP-Devel] Integration of the SkyPrintPlugin into CORE
Jukka has it right. I think of it as two parts: a printer (or PDF) driver, and a screen print utility. It should be possible for Cadplan to use the SkyPrint driver, just as it uses the ISA print driver now, if Geoff is willing. I would recommend that the SkyPrint driver be put in core so that developers can count on it being there. The only (minor) difficulty I see is the printing of the map furniture through iText. As I recall, I had to put in special code to support North arrows and scale bars in SkyJUMP. I want to thank Mattias for his good work in porting the capability, since I was too lazy. 8-) It may be useful to review this threadhttp://jump-pilot-devel-openjump-develop-and-use.1063199.n5.nabble.com/JPP-Devel-RenderingManager-modes-in-skyjump-td5708408.html#a5708423from March of last year on the same topic. regards, Larry Becker On Tue, Apr 1, 2014 at 6:45 AM, Rahkonen Jukka (Tike) jukka.rahko...@mmmtike.fi wrote: Hi, In my opinion SkyPrint is not really a printer plugin. It is rather an enhanced PrintScreen utility that sends the map from your screen to printer. It has some very good features which makes the print quality better than really using print screen or Save view as... option of OpenJUMP. These include some style adjustments and a possibility to double the raster image resolution. The unique feature in SkyPrint is that it can write out layered PDF where each map layer from OpenJUMP is written as a separate PDF layer. The visibility of layers can be controlled with the layer tool of Acrobat Reader. I am not sure if any other viewer support this feature. Why I would call it PrintScreen utility is that it is missing all features that printed maps tend to have: Title, legend, scale, North Arrow etc. The SkyPrint UI shows the advanced features it has but here is the list of enhancement option it has for those who have not tried it: - Remove transparency - Print page border - Remove fills from basic style - Remove fills for color themes - Adjust line width by percent - Double raster image resolution SkyPrint creates very good quality prints and layered PDF is very nice format for many purposes but SkyPrint as the only printing utility is rather limited. Better long termo option would be to enhance the Cadplan printer with PDF layers and quality enhancement options. -Jukka Rahkonen- Michael Michaud wrote: Hi Geoff, Matthias Thanks a lot for the offer Geoff. As I'm not a daily user of printing features, my main concern for now is to rationalize developpements and to develop in a useful way. To help heading in that direction, may advice would be - to make a detailed comparison of skyprinter and cadplan printer features - to make a small survey about how people use them and how they are satisfied with them - to study how they can converge or how they can complete each other in future developments But the first step is probably to make skyprinter available, either in core or in plus version. Matthias, what do you think ? Is there already a comparison between both plugins ? Best regards, Michaël Dear All I would be quite happy to look at adding any required additional functionality to my printer plugin if this would add to the general OpenJump capability. Please let me know what might be useful. thanks Geoff On 18/03/2014 18:02, Rahkonen Jukka (Tike) wrote: Hi, Let SkyPrint be in the Plus then. However, then Core will still remain without printing capabilities which I think it would deserve. But there is already the Save view as.. option in Core. If I think my own printing needs I need very often not only the map on a paper but also title, legend in a good place and fixed, selectable scale. Having these features brings the core printer pretty close to Cadplan printer plugin so perhaps OJ Core will live without printing options. For me title and legend and more frequently needed options than layered PDF which is the biggest gig in Skyprint. Perhaps it could be possible to add layering into Cadplan printer which also seems to be able to write PDF files with iText. I have a small wish for the SkyPrint plugin: it could have a dropdown menu for selecting the most common paper sizes for PDF dimensions. -Jukka Rahkonen- *Lähettäjä:* Giuseppe Aruta [mailto:giuseppe_ar...@yahoo.itgiuseppe_ar...@yahoo.it] *Lähetetty:* 18. maaliskuuta 2014 11:05 *Vastaanottaja:* OpenJump develop and use *Aihe:* Re: [JPP-Devel] Integration of the SkyPrintPlugin into CORE I am in favour of Ede's proposal. Peppe 2014-03-17 20:18 GMT+01:00 edgar.sol...@web.de: On 17.03.2014 18:39, Matthias Scholz wrote: Hi, If it works on Win/Linux/Mac and 32-bit/64-bit then absolutely into core. The jar is only about 40 kb and makes it possible to Not quite correct. You need the itext jar in the lib folder too ;-) ok, that's 1MB extra.. that smells like PLUS to me
Re: [JPP-Devel] Download statistics
My company trained a group of 25 in Belgium on JUMP, but for download counts that large, I suspect some university is using it in a GIS introduction course. Larry On Thu, Nov 21, 2013 at 3:17 PM, Michaël Michaud michael.mich...@free.frwrote: Hi, When OpenJUMP downloads come from Germany, France, Italy or Finland, I can make some assumptions, but this week, figures are surprising - and quite high ;-) 1. Belgium 481 2. Greece 303 3. Spain 76 4. United States 23 5. Germany 11 Michaël -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] SkyJUMP print code - need tester for detecting printers problem
I'm good with changing the package to org.openjump.core.ui or whatever. I'm interested in trying it out soon! Larrry On Sun, Nov 10, 2013 at 1:15 PM, Michaël Michaud michael.mich...@free.frwrote: Hi, a small question, befor i start working. Should i change the package name from com.isa.jump.plugin to org.openjump.core.ui.plugin.file for example? I would say yes, rename the package and keep Larry as the original author in javadoc. (I make a copy to Larry so that he can respond and give his opinion), Michaël Matthias Hi, Michaël do you use my latest SVN Version 3621(23.07.2013) from plug-ins/SkyPrinterPlugIn for the skyprinter_0_1_1.zip build? In my latest version are some enhancements, such as scale print. I saw you committed but haven't used it so far. I'll use it more after it is included in CORE ;-) (maybe we'll have to take the fine print icon for skyjumper and create another one for cadplan's printer) Michaël Matthias Hi Peppe, For any reason, it seems that skyprinter and itext.jar have now to be dropped in lib directory, not in ext. And about a former remark, I just checked that width/height are in mm (skyjump 0.1.1) Michaël @Ede http://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/Printing%20Plugins/SkyPrinter%20Plugin/ 2013/11/10 edgar.sol...@web.de On 10.11.2013 15:02, Giuseppe Aruta wrote: Printer plugin doesn't load with latest OJ NB (3793). But it loads fine with OJ vesions previous Ede's modification on DefaultPlugIn.xml load system. how is it installed? is there a distribution or source repository? ..ede -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and registerhttp://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and registerhttp://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- _ __ ___ _ ___ __ _ Technologieconsulting Matthias Scholz Siebigeröder Str 17a 06308 Klostermansfeld T +49 34772 34150 E m...@jammerhund.de W www.openjump.de _ __ ___ _ ___ __ _ -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and registerhttp://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and registerhttp://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing
Re: [JPP-Devel] SkyJUMP print code - need tester for detecting printers problem
It isn't likely that there will be much further development of the print code in SkyJUMP. We kind of established a precedent early on that code ported from SkyJUMP would be repackaged. The two programs are not 100% compatible, so the code has to be ported and back ported anyway. Larry On Mon, Nov 11, 2013 at 2:05 PM, edgar.sol...@web.de wrote: On 11.11.2013 18:40, Matthias Scholz wrote: Hi, Hi, a small question, befor i start working. Should i change the package name from com.isa.jump.plugin to org.openjump.core.ui.plugin.file for example? I would say yes, rename the package and keep Larry as the original author in javadoc. (I make a copy to Larry so that he can respond and give his opinion), not necessarily! we've got several packages in core so having another one wouldn't make a big difference. also, keeping the package name would make it much more transparent where the plugin stems from. Of course, this is also an option. I find it more difficult to maintain code when classes are sorted after their author than when they are sorted after their function though. That's just my opinion. i'm fine with either way. But I'm also fine with keeping code in its own jar with its original package name and including it in CORE distribution. One simple reason for an integration into the core, is the much simpler development, debugging, packaging, deployment. At the Moment the plug-ins/SkyPrinterPlugIn repository only a storage for code! No (ant/maven) project, that allows everyone to easy build and deploy. On the other hand should core code reside in the core repository. Or we must discuss the modularisation of OJ in general. A nice task for the future ;-) Matthias, are you OK with this solution ? I'm not really happy with it. But we are a community project and we can only work together. ok. so you'd prefer renaming and integrating into core repository then? my main worry is crating a another fork of a maintained extension where our extension will not profit from the external development! if Larry agrees to maintain the extension in our svn from then on this objection of course would become unfounded. Larry: what are your plans? would you maybe like Matthias to contribute to your svn or rather see the code over at us in OJ's svn? there is no reason that Matthias cannot pimp your svn into a full blown maven/ant build. just feel we should use as much synergy as possible in cases like these! ..ede -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] LayerViewPanel Widget
Hi Landon, There used to be a demo folder in the project under com/vividsolutions/jump. It had a folder with a stand-alone layer view panel demo. Of course it had a few dependencies, but I think it comes close to what you are attempting. I still have it in the SkyJump project on sourceforge, and JUMP 1.2 is still available for download. And the original JUMP Developer Guide is useful when attempting something like this. People mostly have forgotten that document and that it contains help on how to use JUMP components in other apps. regards, Larry On Fri, Sep 20, 2013 at 1:15 PM, Landon Blake sunburned.surve...@gmail.comwrote: Has anyone extracted the LayerViewPanel as a stand-alone widget for Swing Programs? I was thinking about doing this, or of coding something similar from scratch, but I wanted to ask here first. -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Unrecognized attribute name: IMG.FACTORY
I tried the new OJ PLUS snapshot rev3729. Works pretty good for MRSID files! However, I'm having trouble loading shapefiles. I get an Illegal Argument Exception when I use Open or Open File. It works like normal when using Load Datasets. Unrecognized attribute name: IMG.FACTORY java.lang.IllegalArgumentException: Unrecognized attribute name: IMG.FACTORY at com.vividsolutions.jump.feature.FeatureSchema.getAttributeIndex(FeatureSchema.java:97) at com.vividsolutions.jump.feature.AbstractBasicFeature.getAttribute(AbstractBasicFeature.java:103) at org.openjump.core.ui.io.file.DataSourceFileLayerLoader.open(DataSourceFileLayerLoader.java:121) at org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(OpenFileWizard.java:157) at org.openjump.core.ui.plugin.file.OpenWizardPlugIn.run(OpenWizardPlugIn.java:104) at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152) at java.lang.Thread.run(Unknown Source) Running under XP with Java 1.7.0_25 (x86). Tried KML and JML files and got the same issue. regards, Larry -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] FW: getting error on adding new image in image folder
Convert the icon to one of the supported types ( GIF, JPEG, or PNG). Larry On Thu, Jun 20, 2013 at 4:05 AM, Tintu mary George tintu.geo...@rptechsoft.com wrote: hi, i didnt get ans for this mail.can you reply for this mail? From: Tintu mary George Sent: Thursday, June 20, 2013 1:23 PM To: jump-pilot-devel@lists.sourceforge.net Subject: getting error on adding new image in image folder Hi, I am trying to crete new tool on tool box.I am already crete plugin for that.but same thing we need it toolbar.So that i added one image named exe.tif to this com\vividsolutions\jump\workbench\ui\images,and change in the JUMPCofiguration.java. But I am getting error on running the openjump java.lang.NullPointerException at javax.swing.ImageIcon.init(ImageIcon.java:205) at com.vividsolutions.jump.workbench.ui.images.IconLoader.icon(IconLoader.java:44) at com.vividsolutions.jump.workbench.ui.zoom.panchayathtool.getIcon(panchayathtool.java:72) at com.vividsolutions.jump.workbench.ui.WorkbenchToolBar.addCursorTool(WorkbenchToolBar.java:160) at com.vividsolutions.jump.workbench.ui.WorkbenchToolBar.addCursorTool(WorkbenchToolBar.java:111) at com.vividsolutions.jump.workbench.JUMPConfiguration.add(JUMPConfiguration.java:1267) at com.vividsolutions.jump.workbench.JUMPConfiguration.configureToolBar(JUMPConfiguration.java:1279) at com.vividsolutions.jump.workbench.JUMPConfiguration.setup(JUMPConfiguration.java:383) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:429) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:381) can u please help me to solve this problem? -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] RenderingManager modes in skyjump
@Michaël, A few hints: com.isa.jump.plugin.PrintPlugIn is the UI class that uses PrinterDriver and PDFDriver to do the work. You can use PrintPlugin as is with some localization work, or you can use as an example to build your own UI class. @Geoffrey, In order to use the new print architecture you might want to use some of the pubic code in PrinterDriver after it is translated to OJ. As a minimum you might try: PrinterDriver.disableDoubleBuffering(yourLayerViewPanel); yourLayerViewPanel.getRenderingManager().setRenderingMode( RenderingManager.EXECUTE_ON_EVENT_THREAD); yourLayerViewPanel.getRenderingManager().renderAll(); yourLayerViewPanel.getRenderingManager().copyTo(graphics); yourLayerViewPanel.getRenderingManager().setRenderingMode( RenderingManager.INTERACTIVE); PrinterDriver.enableDoubleBuffering(yourLayerViewPanel); regards, Larry On Wed, Jun 12, 2013 at 4:01 PM, Michaël Michaud michael.mich...@free.frwrote: Hi Geoffrey, I suspect the issues raised by Larry are central to the issues I have had with printing. In my printer plugin I have three options for printing and they each give slightly different results depending on what is being printed (scale of map, size of text and patterns etc). It is often necessary for a user to try each mode then pick the results that best suits their needs. The different rendering modes are now available in the RenderingManager, that is : public final static int INTERACTIVE = 0; public final static int SINGLE_THREAD_QUEUE = 1; public final static int EXECUTE_ON_EVENT_THREAD = 2; I now try to familiarize with Larry's Printer code. As far as I could see, scale problems also exist in SkyJUMP printer (ex. decoration elements are not displayed the same size with every option). Ideally the core renderer should do the job, but I appreciate the optimisations that are necessary for the UI may make this not easily possible. I have come across a similar problem with printing large JTables (several thousand rows) where I had to manually force the image to be fully painted for the printing process. Otherwise I found that only part of the image would actually get printed, depending on where the UI had scrolled to on the screen. I see, Hopefully, printing in the event thread will help in this kind of situation. Let me know if you have ideas to improve printing core capabilities to get a better control on how things are done in printing extensions. Michaël Whether the problem can be (economically) fixed is another problem Geoff On 10/06/2013 04:28, Michaël Michaud wrote: Hi Larry (Becker), I'm slowly progressing on this topic. I added different rendering modes in RenderingManager, Except the printing stuff, there are only a few classes where new modes are used. I tested the change on AbstractZoomTool : In OpenJUMP, MouseWheel zoom is done on an INTERACTIVE mode In SkyJUMP, you use the EXECUTE_ON_EVENT_THREAD mode I feel like INTERACTIVE mode gives a better feedback on large datasets Is there any motivation to have changed rendering mode to EXECUTE_ON_EVENT_THREAD in SKYJump for mousewheel zoom ? Michaël Hi Michaël, Thanks for starting this effort. I'll try to answer your questions as best I can. When I wrote this code four years ago, I was immersed in printer lore that I have mostly forgotten. Here are a few things that I can recall: (excuse my lecture tone, I know you are very knowledgeable on the subject of rendering) 1. Rendering for interactive display has completely different goals than rendering for printing. It is mostly an issue of responsiveness vs. quality. The JUMP render architecture, as you well know, has excellent responsiveness and an especially quick redraw capability thanks to per-layer double buffering. In this aspect it far outperforms ArcMap and many other GIS programs. While this is a positive for interactive use, it is a huge negative for printer rendering. Having a timer-based repaint from an off-screen buffer occur while printing causes the output to change from vector to raster mode, so defeating double-buffering is very important. 2. The next issue is that rendering can be multi-threaded and this can cause problems for the inherently linear print process. The best mode for printing is to render on the GUI thread because this will block other things from interfering with the print process. This causes side effects such as blocking communication with WMS and other server based layers, but this is taken care of in the PrinterDriver by creating a Runnable to run in a separate task, but under control of the PrinterDriver. 3. The next issue is resolution. Normally, of course, we render to screen resolution which is usually between 72 and 120 dots per inch or a pixel size of .~ 28 mm. I
Re: [JPP-Devel] RenderingManager modes in skyjump
Hi Michaël, I recall it is pretty subjective, but I think I used EXECUTE_ON_EVENT_THREAD to avoid over-use of threads which can spawn out of control with the mouse wheel. regards, Laarry On Sun, Jun 9, 2013 at 3:28 PM, Michaël Michaud michael.mich...@free.frwrote: Hi Larry (Becker), I'm slowly progressing on this topic. I added different rendering modes in RenderingManager, Except the printing stuff, there are only a few classes where new modes are used. I tested the change on AbstractZoomTool : In OpenJUMP, MouseWheel zoom is done on an INTERACTIVE mode In SkyJUMP, you use the EXECUTE_ON_EVENT_THREAD mode I feel like INTERACTIVE mode gives a better feedback on large datasets Is there any motivation to have changed rendering mode to EXECUTE_ON_EVENT_THREAD in SKYJump for mousewheel zoom ? Michaël Hi Michaël, Thanks for starting this effort. I'll try to answer your questions as best I can. When I wrote this code four years ago, I was immersed in printer lore that I have mostly forgotten. Here are a few things that I can recall: (excuse my lecture tone, I know you are very knowledgeable on the subject of rendering) 1. Rendering for interactive display has completely different goals than rendering for printing. It is mostly an issue of responsiveness vs. quality. The JUMP render architecture, as you well know, has excellent responsiveness and an especially quick redraw capability thanks to per-layer double buffering. In this aspect it far outperforms ArcMap and many other GIS programs. While this is a positive for interactive use, it is a huge negative for printer rendering. Having a timer-based repaint from an off-screen buffer occur while printing causes the output to change from vector to raster mode, so defeating double-buffering is very important. 2. The next issue is that rendering can be multi-threaded and this can cause problems for the inherently linear print process. The best mode for printing is to render on the GUI thread because this will block other things from interfering with the print process. This causes side effects such as blocking communication with WMS and other server based layers, but this is taken care of in the PrinterDriver by creating a Runnable to run in a separate task, but under control of the PrinterDriver. 3. The next issue is resolution. Normally, of course, we render to screen resolution which is usually between 72 and 120 dots per inch or a pixel size of .~ 28 mm. I do some tricks to increase the apparent resolution without changing the scale. This is especially an issue when there are raster layers. The PrinterPlugin interface has options to double the resolution of raster layers so that even when zooming in on a PDF it still appears smooth. 4. There is the issue of transparency. This is supported in PDF so it isn't a problem there, but it will cause problems for a real printer. The UI has options to defeat transparency and other style settings that might not look quite so nice on a printer. 5. There are also issues of line width scaling that make linestrings almost invisible at printer resolutions. Getting back to more practical advice about implementing PDF generation in OpenJump, I would recommend you start first by implementing the SkyJUMP PrinterDriver and PrinterPlugin. This will allow you to print to PDF with a free PDF print driver without getting into the iText library. You can experiment with commenting out the RenderManager enhancements to see the effects, which for some situations may not be too bad. Once you get the driver working it should be easy add the iText library which gives the direct PDF generation with layers. When testing the PDF output always determine first if it is generating true vectors by zooming in fully. Then you may also see the effects of decimation as implemented in Java2DConverter and even in java.awt.Graphics2D. That's all for now. I've rambled on enough. Let me know what else I can clarify. Regards, Larry On Thu, Mar 14, 2013 at 3:00 AM, Michaël Michaud michael.mich...@free.fr wrote: Hi Larry (Becker), I've started pdf printer integration in openjump and the main change that I face is one in RenderingManager where you introduced 3 rendering mode public final static int INTERACTIVE = 0; public final static int SINGLE_THREAD_QUEUE = 1; public final static int EXECUTE_ON_EVENT_THREAD = 2; Before I port this change to OpenJUMP (maybe I'll wait after 1.6 release), I'd like to have a better vision of what problem it is supposed to solve and to know if it is related to the add of printing capabilities. Thanks for all, Michaël -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today:http://p.sf.net/sfu/appdyn_d2d_mar
Re: [JPP-Devel] [ jump-pilot-Bugs-3613274 ] Inconsistencies in plugin enablecheck
I'm going to stand with Michaël on this one. Here is why: In SkyJUMP (and probably JUMP) it behaves this way and it seems natural. I suspect this capability has been lost along the way since OJ has added more sophisticated support for window management and multiple views. Here is how I tested so we can see if I understood exactly what Michaël was going for: 1. I created two new projects, each with one rectangle in one layer. In project 2 I selected the rectangle. 2. I opened an Attribute View for project 1 and project 2 for the one layer in each. 3. With Attribute View 2 as the active window, I went to Tools-Analysis-Buffer (Multiple Ring) For SkyJUMP the menu was active and for OpenJUMP it was not. Make Attribute View 1 active and SkyJUMP greys out the menu - OJ does not change. @Michaël: is this what you meant? regards, Larry On Tue, May 14, 2013 at 3:46 PM, Michaël Michaud michael.mich...@free.frwrote: Hi, On 14.05.2013 19:54, Michaël Michaud wrote: Le 14/05/2013 10:32, edgar.sol...@web.de a écrit : On 14.05.2013 08:43, SourceForge.net wrote: == Should be activated if no layer is selected but a Attribute table is active Generate Create point layer I think plugins which have a layer chooser in their dialog box should be available every time a the active frame is related to a task including at least one layer. Selected layer, if any, should be proposed first. Don't you think so ? sorry, lost me here.. can you give steps? why should 'Create point layer' be active when an attribute window is active? OK, I realize that what I feeled like something obvious is not... I think that as a user, I have to know in which project I work (it is not the same to create a point in project 1 and to create it in project 2) But I generally don't want to bother about which window is active, if they belong to the same project. Just want to work on my project. The plugin may update the view, the table, both, create a report, etc. It is not related to a particular view of the project. In Create point layer case, my last operation was to check or to edit some coordinates in the attribute table. Now I want to create the points. Why should I have to explain OpenJUMP I don't want to create them in Attribute table but in the view. I just want to create them in my project. I don't want to bother which is the active frame and click the view just to have the menu available. Oh, this may not be a great example, but hope it makes my perspective more clear. the plugin draws in the task frame, hence it should be active only then. Maybe you point a technical issue I did not see. My point is that the user generally does not need to bother which frame is active. In some cases, the soft may need to know of course. Michaël ..eDe -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] [openjump-users] Maps made using Open JUMP
Hi Andrei, Fantastic! Your maps are truly inspiring. Thanks for sharing your work. Inkscape is a wonderful tool. It also has unequaled capabilities to edit PDF. In my limited experience using it, PDF import seems to have a higher fidelity translator than SVG. Have you tried it? Text comes in as text. regards, Larry Becker On Mon, May 13, 2013 at 8:01 AM, Andrei Nacu andreina...@yahoo.com wrote: Hi all, I want to share my latest maps made with Open JUMP. They can also be found on Wikimedia Commons. A general map of the Roman Empire in AD 125, with physical background: Full size maphttp://upload.wikimedia.org/wikipedia/commons/b/bb/Roman_Empire_125.png link address http://commons.wikimedia.org/wiki/File:Roman_Empire_125.png And the political version: Full size maphttp://upload.wikimedia.org/wikipedia/commons/4/4e/Roman_Empire_125_political_map.png link addresshttp://commons.wikimedia.org/wiki/File:Roman_Empire_125_political_map.png Regarding the creation of the maps, I find Open JUMP to be the most vector-friendly open source GIS software. The preparation of the datasets (rivers, lakes, sea, roads, borders) was really piece of cake, especially after the 2 bugs regarding 'Merge features' and the fill closed area tool were solved. The offset curve command was very useful for making administrative boundaries parallel with water courses. I'm also thankful that Geoffrey Roy has added a scaling option for Printer svg outputs. There's no need for any further rescaling in Inkscape now. Of course the maps were not entirely made with Open JUMP. The shaded relief was made in GRASS and improved in GIMP, since Sextante-shaded relief is not as powerful (and you can only use it for ASCII files, and not for DEM's). And the legend and curved labels were made in Inkscape. Actually, I chose to write all the labels in Inkscape, since text is transformed to paths when the map is exported from Open JUMP. Because of this, no further text edits (like making curved labels, changing size and fonts) can be made. Overall, I'm satisfied with the latest version of Open JUMP. Of course, there are some minor style options which could be added (like more px steps for line widths; e.g. 0.5, 1, 1.5, 2 and so on). And a curved labels option would be nice as well. But I'm not sure if these are really needed. OJ is more focused on elegant vector editing and analysis, not on map layouts. If I remember, even ArcGIS10 made clumsy curved labels, so in the end you always have to use a vector graphics editor to polish your maps. Regards, Andrei http://commons.wikimedia.org/wiki/File:Roman_Empire_125_political_map.png -- -- You received this message because you are subscribed to the Google Groups openjump-users group. To post to this group, send email to openjump-us...@googlegroups.com. To unsubscribe from this group, send email to openjump-users+unsubscr...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/openjump-users?hl=en --- You received this message because you are subscribed to the Google Groups openjump-users group. To unsubscribe from this group and stop receiving emails from it, send an email to openjump-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] WMS Layer / SID Layer
HI Michaël, Yes, you are correct. I believe his is not the first time changes to WMSLayer have affected SIDLayer. The original SIDLayer was a quick hack that never got the refactoring it deserved. A common abstract parent is probably the best practice. However, I'm not sure why OJ still has the SIDLayer class since it was incorporated into the last version of vividsolutions JUMP as MrSIDReferencedImage (which is not descended from WMSLayer).. Is there some feature of the original class that isn't in it? The java2xml perhaps doesn't support saving to the project as well? I would like to test this, but after an hour of trying I was unable to get a MRSID file to load in OJ. There are many different wiki pages and readme files that contradict each other, but I couldn't get any of them to work. I finally resorted to debug and found the required path for the support executables, however I got an NPE when I tried to open a SID file at com.vividsolutions.jump.workbench.imagery.mrsid.MrSIDReferencedImage.getEnvelope(MrSIDReferencedImage.java:98). This is the version that doesn't depend on WMSLayer so something else is going on, but I don't have time right now to trace it down. The path to the executables is: ../lib/ext/etc/ for mrsidgeodecode.exe and mrsidgeoinfo.exe, and also a tmp folder for the tiles. regards, Larry On Sun, Apr 14, 2013 at 11:34 AM, Michaël Michaud michael.mich...@free.frwrote: Hi Stefan, Larry While updating WMS code, I've found several patches from Stefan about SID Layer handling. Seems that SIDLayer inherits from WMS Layer, hence, patches have been added in WMS code to exclude cases where WMS Layers are instances of SIDLayer. The design seems error prone and probably currently buggy (and maybe more now that I've updated the code with WMS only in mind). Maybe the model would need an abstract parent for both WMS and SID Layer. The reason of sharing is probably the common createImage() method, but WMSLayer has also references to the WMService which have nothing to do with SID Layer (AFAIK). Agree with that ? Any comment ? Regards, Michaël -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] WMS Layer / SID Layer
The main task to keep it working is maintaining the command line parameters to support the latest version of the MRSIDS utilities. I'll be doing that for SkyJUMP so it is a simple matter to keep OJ up to date too. MRSID, ECW, and ArcSDE are OpenJump's gateway to the non-free GIS world. Some of us are still tied to the commercial and government sector. regards, Larry On Mon, Apr 15, 2013 at 2:47 PM, Michaël Michaud michael.mich...@free.frwrote: Hi Larry, OK, I've located the problem that was causing the NPE. The MRSID executables now depend on the geos.dll (C++ port of the Java Topology Suite) which must be located in the same directory. MRSID files now work fine, although not as well as in SkyJUMP. ;-) (SkyJUMP has added a simple plugin called EditMrSID which allows adjustment of dynamic range and transparancy.) I can't see a reason to keep the SIDLayer class. Does anyone else? Thanks a lot, I hadn't even caught that SIDLayer was deprecated in favour of MrSIDReferencedImage. Probably the reason why Stefan removed some references to SID Layers in WMSLayer code. SIDLayer has probably to be removed then. On Mon, Apr 15, 2013 at 10:10 AM, edgar.sol...@web.de wrote: is MrSid a format still in use? should we fix it? .. ede Don't now. I personnaly do not wish to spend time to support this format, but if we (Larry) can keep it working without too much effort, maybe some users will be happy to have it. Michaël On 15.04.2013 16:46, Larry Becker wrote: HI Michaël, Yes, you are correct. I believe his is not the first time changes to WMSLayer have affected SIDLayer. The original SIDLayer was a quick hack that never got the refactoring it deserved. A common abstract parent is probably the best practice. However, I'm not sure why OJ still has the SIDLayer class since it was incorporated into the last version of vividsolutions JUMP as MrSIDReferencedImage (which is not descended from WMSLayer).. Is there some feature of the original class that isn't in it? The java2xml perhaps doesn't support saving to the project as well? I would like to test this, but after an hour of trying I was unable to get a MRSID file to load in OJ. There are many different wiki pages and readme files that contradict each other, but I couldn't get any of them to work. I finally resorted to debug and found the required path for the support executables, however I got an NPE when I tried to open a SID file at com.vividsolutions.jump.workbench.imagery.mrsid.MrSIDReferencedImage.getEnvelope(MrSIDReferencedImage.java:98). This is the version that doesn't depend on WMSLayer so something else is going on, but I don't have time right now to trace it down. The path to the executables is: ../lib/ext/etc/ for mrsidgeodecode.exe and mrsidgeoinfo.exe, and also a tmp folder for the tiles. regards, Larry On Sun, Apr 14, 2013 at 11:34 AM, Michaël Michaud michael.mich...@free.fr mailto:michael.mich...@free.fr wrote: Hi Stefan, Larry While updating WMS code, I've found several patches from Stefan about SID Layer handling. Seems that SIDLayer inherits from WMS Layer, hence, patches have been added in WMS code to exclude cases where WMS Layers are instances of SIDLayer. The design seems error prone and probably currently buggy (and maybe more now that I've updated the code with WMS only in mind). Maybe the model would need an abstract parent for both WMS and SID Layer. The reason of sharing is probably the common createImage() method, but WMSLayer has also references to the WMService which have nothing to do with SID Layer (AFAIK). Agree with that ? Any comment ? Regards, Michaël -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net mailto: Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter
Re: [JPP-Devel] The new geometry is invalid. Cancelled.
Hi Michaël, Echoing what I think you are proposing: 1) when Combine Selected Features is invoked, a basic topology validity check is done on the result. 2) Any errors should be reported in the status bar or the Output Window. 3) If an invalid geometry results from building a MultiPolygon, a GeometryCollection is built instead. +1 if this is the plan. -1 if the plan is to just build a GeometryCollection instead. regards, Larry On Tue, Apr 9, 2013 at 1:36 PM, Michaël Michaud michael.mich...@free.frwrote: Hi, Is it in OJ possible to check first for valid geometries when Combine Selected Features or is this a great problem? If it is a great problem maybe it is better Combine Selected Features makes always a geometrycollection? There are several points : 1 - in the step by step process you described, error should have been thrown while combining the two polygons, not while moving the resulted invalid multipolygon 2 - I agree that in this case, building a valid GeometryCollection is better than building an invalid Multipolygon, even if GeometryCollection are much less useful (many operations accepting MultiPolygon will fail on GeometryCollection). If if no one has any objection, I propose to do the change. 3 - you surely knows that OpenJUMP has a hidden option to accept/refuse invalid geometries during edit operations (in this case, it is of no help though) Regards, Michaël What do you think? Regards Uwe Am 09.04.2013 03:21, schrieb Martin Davis: As Michael and Stefan point out, Polygons in a MultiPolygon must be edge-disjoint (which another way of stating the formal definition must only touch at a finite number of points. If they touched along an edge, that would cause an infinite number of points to be coincident). Another way of looking at this is that MultiPolygons are in a sense the canonical description of a given area of the plane. If edge touches or overlaps were allowed then there would be an infinite number of geometries which described the same area. Also, from the point of view of computing polygon overlay and spatial relationships this is a nice rule to have, since it reduces the number of cases which need to be checked for. This makes the code simpler and more performant. The cost is that it is necessary to ensure that MultiPolygons are valid at creation time. This is a reasonable tradeoff, since in general geometries are queried more often than they are created. GeometryCollections on the other hand have no particular semantics - they are just bags of geometries. This makes them useful for holding arbitrary sets of geometries, but makes them more complex (and sometimes slower) to process. On 4/8/2013 11:04 AM, Michaël Michaud wrote: Hi Uwe, Stefan, OpenJUMP (JTS) is right, this MultiPolygon is not OGC conform Here is the citation : Multipolygon 2. The Boundaries of any 2 Polygons that are elements of a MultiPolygon may not ‘cross’ and may touch at only a finite number of points. (Note that crossing is prevented by assertion 1 above). Don't ask me why, I've always thought it is strange that lines can share their boundaries in a MultiLineString and polygons cannot share an edge in a MultiPolygon, but it's a well established rule that JTS follows. Michaël Hi Uwe, I am not sure I would call it a bug. OJ, should (try to) create data that are OGC conform, but in this case it doesn't. Which means, the case needs special treatment, but this is not implemented. That the multi-polygon causes an error is with the OGS SF specification = correct. However, that the geometry collection does not cause an error should be correct aw well, because there is, I believe, nothing said about geometry collections and their validity. Geometry collections should be allowed to have any type of geometries in what ever way they are drawn - like a container. If we would check geometry collections for their validity it may be that people cannot store anymore the data they have. Hence, checking should be optional. But I guess here, Michael M. knows probably more about OGC conformance? I'll also cc to JTS list. cheers, stefan PS: the Multi-polygon: MULTIPOLYGON ((( 80 125, 80 241, 175 241, 175 125, 80 125 )), (( 175 125, 175 241, 263 241, 263 125, 175 125 ))) Am 08.04.13 09:48, schrieb Uwe Dalluege: Hi Stefan, I am afraid I do not understand :-( Do you think this is a bug in OJ? The multipolygon causes an error the geometrycollection not. Is this behaviour OGC-conform (simpel features...)? What do you think? uwe Am 08.04.2013 16:36, schrieb Stefan Steiniger: Hi, so - well the
Re: [JPP-Devel] Layer statistics and geometry types
I guess the Info tab of Layer Properties only says Multiple Geometry Types in such a case, but it should be easily fixed. Larry On Tue, Mar 19, 2013 at 3:22 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, Sometimes it would be useful to get a fast statistics about how many features on the layer belong to each geometry type. I know that by counting feature statistics I get the geometry type written into type field but often it would be enough to see for example if the layer holds only simple polygons or if it is a mixture of polygons and multipolygons. -Jukka Rahkonen- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Layer statistics and geometry types
Done. My first contribution in a while! Hope I didn't break anything. No additional translations are required. Larry On Tue, Mar 19, 2013 at 8:37 AM, edgar.sol...@web.de wrote: any takers? .. else it probably calls for another featreq. ..ede On 19.03.2013 14:18, Larry Becker wrote: I guess the Info tab of Layer Properties only says Multiple Geometry Types in such a case, but it should be easily fixed. Larry On Tue, Mar 19, 2013 at 3:22 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi mailto:jukka.rahko...@mmmtike.fi wrote: Hi, Sometimes it would be useful to get a fast statistics about how many features on the layer belong to each geometry type. I know that by counting feature statistics I get the geometry type written into type field but often it would be enough to see for example if the layer holds only simple polygons or if it is a mixture of polygons and multipolygons. -Jukka Rahkonen- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] [ jump-pilot-Bugs-3608038 ] TIF image fails to add with error
SkyJUMP has some limited support for GDAL via the OGR2OGR file conversion utility. I recommend the FWTools http://fwtools.maptools.org/binaries which support windows and linux. If you stick to command line stuff JNI is not needed. regards, Larry Becker On Fri, Mar 15, 2013 at 9:25 AM, Chris Warner chriswarne...@gmail.comwrote: On 15/03/2013 12:06, Rahkonen Jukka wrote: You need to use Sextante image loader (or Pirol plugin) if you want to use 32-bit images is OpenJUMP. If images are your main point, I would recommend to use Saga GIS or Quantum GIS instead. Hi Jukka, thanks for the quick response - you're a nice guy, really appreciate it. I am a GIS developer - I was thinking about helping to code a GDAL plug-in, because OJ (or our implementation at least) could really use some advanced raster functions. I came across this thread below and agree with both you and Landon, this would help OJ compete with the likes of QGIS etc. What do you, or others think - any ideas suggestions? I really think integration of C libraries directly into OJ is a bad thing. Incorporating native libraries can be a real challenge when your distributing a Java program for MS Windows, Linux, and Mac. It also requires that at least some of our Java programmers deal with C code when building and distributing OpenJUMP. If GDAL was incorporated, I'd like to see that done as a plug-in if possible, and not in the core. *If GeoTools already wraps GDAL, that is certainly something that is** **worth investigating.* Landon Megabytes do not have so big meaning nowadays but I like still a lot that OpenJUMP takes only about 20 MB on the disk and it starts very fast. Kosmo comes with 26 dlls (17 MB) and gvSIG with 32 dlls (18 MB). It looks like most dlls are needed for GDAL and support of different image formats. *It might be good idea to have the OpenJUMP advanced imagery support as a* * **separate plugin.* Compressed tiff files cannot be opened at all. And for some reason the Sextante raster option does not open our aerial images at all, not even as untiled and uncompressed. *It would be very nice to get** **better support for different tiff variants.* -Jukka Rahkonen- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] RenderingManager modes in skyjump
Hi Michaël, Thanks for starting this effort. I'll try to answer your questions as best I can. When I wrote this code four years ago, I was immersed in printer lore that I have mostly forgotten. Here are a few things that I can recall: (excuse my lecture tone, I know you are very knowledgeable on the subject of rendering) 1. Rendering for interactive display has completely different goals than rendering for printing. It is mostly an issue of responsiveness vs. quality. The JUMP render architecture, as you well know, has excellent responsiveness and an especially quick redraw capability thanks to per-layer double buffering. In this aspect it far outperforms ArcMap and many other GIS programs. While this is a positive for interactive use, it is a huge negative for printer rendering. Having a timer-based repaint from an off-screen buffer occur while printing causes the output to change from vector to raster mode, so defeating double-buffering is very important. 2. The next issue is that rendering can be multi-threaded and this can cause problems for the inherently linear print process. The best mode for printing is to render on the GUI thread because this will block other things from interfering with the print process. This causes side effects such as blocking communication with WMS and other server based layers, but this is taken care of in the PrinterDriver by creating a Runnable to run in a separate task, but under control of the PrinterDriver. 3. The next issue is resolution. Normally, of course, we render to screen resolution which is usually between 72 and 120 dots per inch or a pixel size of .~ 28 mm. I do some tricks to increase the apparent resolution without changing the scale. This is especially an issue when there are raster layers. The PrinterPlugin interface has options to double the resolution of raster layers so that even when zooming in on a PDF it still appears smooth. 4. There is the issue of transparency. This is supported in PDF so it isn't a problem there, but it will cause problems for a real printer. The UI has options to defeat transparency and other style settings that might not look quite so nice on a printer. 5. There are also issues of line width scaling that make linestrings almost invisible at printer resolutions. Getting back to more practical advice about implementing PDF generation in OpenJump, I would recommend you start first by implementing the SkyJUMP PrinterDriver and PrinterPlugin. This will allow you to print to PDF with a free PDF print driver without getting into the iText library. You can experiment with commenting out the RenderManager enhancements to see the effects, which for some situations may not be too bad. Once you get the driver working it should be easy add the iText library which gives the direct PDF generation with layers. When testing the PDF output always determine first if it is generating true vectors by zooming in fully. Then you may also see the effects of decimation as implemented in Java2DConverter and even in java.awt.Graphics2D. That's all for now. I've rambled on enough. Let me know what else I can clarify. Regards, Larry On Thu, Mar 14, 2013 at 3:00 AM, Michaël Michaud michael.mich...@free.frwrote: Hi Larry (Becker), I've started pdf printer integration in openjump and the main change that I face is one in RenderingManager where you introduced 3 rendering mode public final static int INTERACTIVE = 0; public final static int SINGLE_THREAD_QUEUE = 1; public final static int EXECUTE_ON_EVENT_THREAD = 2; Before I port this change to OpenJUMP (maybe I'll wait after 1.6 release), I'd like to have a better vision of what problem it is supposed to solve and to know if it is related to the add of printing capabilities. Thanks for all, Michaël -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Linestring digitizing
Hey guys, I've been following the discussion on linestring digitizing, and it reminded me that SkyJUMP's Constrained Linestring tool seems to support an edit mode that OJ doesn't. If the linestring is selected, you are allowed to extend it from either end by simply clicking an endpoint within snap distance. I had kind of assumed that OJ had implemented this code, but I can't seem to get it to work in the last version I have installed (1.5.2). Not sure how this would impact the discussion, but I thought I would mention it. regards, Larry -- Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Linestring digitizing
As with many things it helps to know the secret. It works for me after I turned on snapping. Thanks Jukka. You are The Man when it comes to digitizing. On Fri, Mar 8, 2013 at 9:33 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, ** ** OpenJUMP supports it just like you described with the standard Linestring tool. Switch snapping on, select an existing line and you can extent it from endpoint or startpoint. You can also connect two distinct linestrings by selecting them both and digitizing a new connecting line. It works for me in OJ 1.5.2 but only with the standard tool, not with Constrained Linestring tool. ** ** -Jukka Rahkonen- ** ** *Lähettäjä:* Larry Becker [mailto:becker.la...@gmail.com] *Lähetetty:* 8. maaliskuuta 2013 17:12 *Vastaanottaja:* OpenJump develop and use *Aihe:* [JPP-Devel] Linestring digitizing ** ** Hey guys, I've been following the discussion on linestring digitizing, and it reminded me that SkyJUMP's Constrained Linestring tool seems to support an edit mode that OJ doesn't. If the linestring is selected, you are allowed to extend it from either end by simply clicking an endpoint within snap distance. I had kind of assumed that OJ had implemented this code, but I can't seem to get it to work in the last version I have installed (1.5.2). Not sure how this would impact the discussion, but I thought I would mention it. regards, Larry -- Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] OJ spoils shapefile if shema is edited
A more general solution than my last post is: if (columnType == AttributeType.INTEGER) { fields[f] = new DbfFieldDef(columnName, 'N', 11, 0); //LDB: previously 16 DbfFieldDef fromFile = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); if (fromFile.fieldnumdec == 0) fields[f] = fromFile; f++; } else if (columnType == AttributeType.DOUBLE) { fields[f] = new DbfFieldDef(columnName, 'N', 33, 16); DbfFieldDef fromFile = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); if (fromFile.fieldnumdec 0) fields[f] = fromFile; f++; Larry On Fri, Mar 1, 2013 at 10:38 AM, Larry Becker becker.la...@gmail.comwrote: I have a fix that works in SkyJUMP and should work in OpenJUMP. It isn't elegant but it works by avoiding calling overrideWithExistingCompatibleDbfFieldDef when a type change is detected. There may be a more direct solution, but I didn't find one. The patch file for SkyJUMP is: ### Eclipse Workspace Patch 1.0 #P SkyJumpSVN Index: com/vividsolutions/jump/io/ShapefileWriter.java === --- com/vividsolutions/jump/io/ShapefileWriter.java(revision 2) +++ com/vividsolutions/jump/io/ShapefileWriter.java(working copy) @@ -407,11 +407,13 @@ if (columnType == AttributeType.INTEGER) { fields[f] = new DbfFieldDef(columnName, 'N', 11, 0); //LDB: previously 16 -fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); +if ((fieldMap != null) !fieldMap.toString().endsWith(N 33.16})) +fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); f++; } else if (columnType == AttributeType.DOUBLE) { fields[f] = new DbfFieldDef(columnName, 'N', 33, 16); -fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); +if ((fieldMap != null) !fieldMap.toString().endsWith(N 11.0})) +fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); f++; } else if (columnType == AttributeType.STRING) { int maxlength = findMaxStringLength(featureCollection, t); Larry On Fri, Mar 1, 2013 at 9:09 AM, Larry Becker becker.la...@gmail.comwrote: I can reproduce it in SkyJUMP. I think this is thte result of using overrideWithExistingCompatibleDbfFieldDef in ShapeWriter. My rational behind this method introduced a few years ago (July 2010) is that the size of the numbers entered during an edit session should not automatically lead to a reduction of precision in the shapefile. This was the case before this procedure was introduced. I had shapefiles for which there were published data standards, but SkyJUMP would change the number of digits each time I saved the file. The change achieved its goal, but it may not work correctly for this particular case due to the type change. I agree with Jukka. It may be an unusual case, but the reliability of shapefile IO is crucial to the JUMP family. This must be fixed. I will work on it too. BTW, the result is the same if you Save Dataset As instead of Save Selected Datasets. Larry On Thu, Feb 28, 2013 at 7:00 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, This is bad. I have tested only with r3277 but not with any older versions. I can reproduce this: - Start OJ - Create a layer, add attribute attr of type DOUBLE - Make a point, set attr=1.0 - Save as a shapefile - Delete layer, read in the saved shapefile, everything OK - Edit schema, change attr into type INTEGER - Do Save selected dataset - Shapefile is now corrupted OJ cannot open this saved shapefile. The error is java.io.EOFException at java.io.DataInputStream.readFully(Unknown Source) at java.io.DataInputStream.readFully(Unknown Source) at com.vividsolutions.jump.io.EndianDataInputStream.readByteLEnum(EndianDataInputStream.java :75) at org.geotools.dbffile.DbfFile.GetDbfRec(DbfFile.java:230) at com.vividsolutions.jump.io.ShapefileReader.read(ShapefileReader.java:179) at com.vividsolutions.jump.io.datasource.DelegatingCompressedFileHandler.read(DelegatingComp ressedFileHandler.java:80) at com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.executeQuery(ReaderWri terFileDataSource.java:61) at org.openjump.core.ui.io.file.DataSourceFileLayerLoader.open(DataSourceFileLayerLoader.jav a:107) at org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(OpenFileWizard.java:131) at org.openjump.core.ui.plugin.AbstractWizardPlugin.run(AbstractWizardPlugin.java:73
Re: [JPP-Devel] OJ spoils shapefile if shema is edited
I can reproduce it in SkyJUMP. I think this is thte result of using overrideWithExistingCompatibleDbfFieldDef in ShapeWriter. My rational behind this method introduced a few years ago (July 2010) is that the size of the numbers entered during an edit session should not automatically lead to a reduction of precision in the shapefile. This was the case before this procedure was introduced. I had shapefiles for which there were published data standards, but SkyJUMP would change the number of digits each time I saved the file. The change achieved its goal, but it may not work correctly for this particular case due to the type change. I agree with Jukka. It may be an unusual case, but the reliability of shapefile IO is crucial to the JUMP family. This must be fixed. I will work on it too. BTW, the result is the same if you Save Dataset As instead of Save Selected Datasets. Larry On Thu, Feb 28, 2013 at 7:00 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, This is bad. I have tested only with r3277 but not with any older versions. I can reproduce this: - Start OJ - Create a layer, add attribute attr of type DOUBLE - Make a point, set attr=1.0 - Save as a shapefile - Delete layer, read in the saved shapefile, everything OK - Edit schema, change attr into type INTEGER - Do Save selected dataset - Shapefile is now corrupted OJ cannot open this saved shapefile. The error is java.io.EOFException at java.io.DataInputStream.readFully(Unknown Source) at java.io.DataInputStream.readFully(Unknown Source) at com.vividsolutions.jump.io.EndianDataInputStream.readByteLEnum(EndianDataInputStream.java :75) at org.geotools.dbffile.DbfFile.GetDbfRec(DbfFile.java:230) at com.vividsolutions.jump.io.ShapefileReader.read(ShapefileReader.java:179) at com.vividsolutions.jump.io.datasource.DelegatingCompressedFileHandler.read(DelegatingComp ressedFileHandler.java:80) at com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.executeQuery(ReaderWri terFileDataSource.java:61) at org.openjump.core.ui.io.file.DataSourceFileLayerLoader.open(DataSourceFileLayerLoader.jav a:107) at org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(OpenFileWizard.java:131) at org.openjump.core.ui.plugin.AbstractWizardPlugin.run(AbstractWizardPlugin.java:73) at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorM anager.java:152) at java.lang.Thread.run(Unknown Source) GDAL cannot open this shapefile either. It suggests that there is something wrong with the .dbf file. From ogrinfo: Layer name: spoil Geometry: Point Feature Count: 1 Extent: (280.00, 127.00) - (280.00, 127.00) Layer SRS WKT: (unknown) attr: Real (33.16) ERROR 1: fread(34) failed on DBF file. -Jukka Rahkonen- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] OJ spoils shapefile if shema is edited
I have a fix that works in SkyJUMP and should work in OpenJUMP. It isn't elegant but it works by avoiding calling overrideWithExistingCompatibleDbfFieldDef when a type change is detected. There may be a more direct solution, but I didn't find one. The patch file for SkyJUMP is: ### Eclipse Workspace Patch 1.0 #P SkyJumpSVN Index: com/vividsolutions/jump/io/ShapefileWriter.java === --- com/vividsolutions/jump/io/ShapefileWriter.java(revision 2) +++ com/vividsolutions/jump/io/ShapefileWriter.java(working copy) @@ -407,11 +407,13 @@ if (columnType == AttributeType.INTEGER) { fields[f] = new DbfFieldDef(columnName, 'N', 11, 0); //LDB: previously 16 -fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); +if ((fieldMap != null) !fieldMap.toString().endsWith(N 33.16})) +fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); f++; } else if (columnType == AttributeType.DOUBLE) { fields[f] = new DbfFieldDef(columnName, 'N', 33, 16); -fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); +if ((fieldMap != null) !fieldMap.toString().endsWith(N 11.0})) +fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); f++; } else if (columnType == AttributeType.STRING) { int maxlength = findMaxStringLength(featureCollection, t); Larry On Fri, Mar 1, 2013 at 9:09 AM, Larry Becker becker.la...@gmail.com wrote: I can reproduce it in SkyJUMP. I think this is thte result of using overrideWithExistingCompatibleDbfFieldDef in ShapeWriter. My rational behind this method introduced a few years ago (July 2010) is that the size of the numbers entered during an edit session should not automatically lead to a reduction of precision in the shapefile. This was the case before this procedure was introduced. I had shapefiles for which there were published data standards, but SkyJUMP would change the number of digits each time I saved the file. The change achieved its goal, but it may not work correctly for this particular case due to the type change. I agree with Jukka. It may be an unusual case, but the reliability of shapefile IO is crucial to the JUMP family. This must be fixed. I will work on it too. BTW, the result is the same if you Save Dataset As instead of Save Selected Datasets. Larry On Thu, Feb 28, 2013 at 7:00 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, This is bad. I have tested only with r3277 but not with any older versions. I can reproduce this: - Start OJ - Create a layer, add attribute attr of type DOUBLE - Make a point, set attr=1.0 - Save as a shapefile - Delete layer, read in the saved shapefile, everything OK - Edit schema, change attr into type INTEGER - Do Save selected dataset - Shapefile is now corrupted OJ cannot open this saved shapefile. The error is java.io.EOFException at java.io.DataInputStream.readFully(Unknown Source) at java.io.DataInputStream.readFully(Unknown Source) at com.vividsolutions.jump.io.EndianDataInputStream.readByteLEnum(EndianDataInputStream.java :75) at org.geotools.dbffile.DbfFile.GetDbfRec(DbfFile.java:230) at com.vividsolutions.jump.io.ShapefileReader.read(ShapefileReader.java:179) at com.vividsolutions.jump.io.datasource.DelegatingCompressedFileHandler.read(DelegatingComp ressedFileHandler.java:80) at com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.executeQuery(ReaderWri terFileDataSource.java:61) at org.openjump.core.ui.io.file.DataSourceFileLayerLoader.open(DataSourceFileLayerLoader.jav a:107) at org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(OpenFileWizard.java:131) at org.openjump.core.ui.plugin.AbstractWizardPlugin.run(AbstractWizardPlugin.java:73) at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorM anager.java:152) at java.lang.Thread.run(Unknown Source) GDAL cannot open this shapefile either. It suggests that there is something wrong with the .dbf file. From ogrinfo: Layer name: spoil Geometry: Point Feature Count: 1 Extent: (280.00, 127.00) - (280.00, 127.00) Layer SRS WKT: (unknown) attr: Real (33.16) ERROR 1: fread(34) failed on DBF file. -Jukka Rahkonen- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net
Re: [JPP-Devel] OJ spoils shapefile if shema is edited
Hi Michaël, I'm not sure what you are seeing, but I tested both Sky and OJ before the mod, and they both preserved an N 16.5 format when saving selected datasets. regards, Larry On Fri, Mar 1, 2013 at 3:41 PM, Michaël Michaud michael.mich...@free.frwrote: Hi Larry, Thanks a lot for your patch. It took me time to understand how it works. I noticed that the overrideWithExistingCompatibleDbfFieldDef is used for AttributeType.INTEGER and AttributeType.DOUBLE but for DOUBLE, I could not find a case where the overriding method can change the dbf field. It seems to me that currently, the original number of decimal of a double will never be preserved (i mean in OpenJUMP code) ? What do you think ? Michaël A more general solution than my last post is: if (columnType == AttributeType.INTEGER) { fields[f] = new DbfFieldDef(columnName, 'N', 11, 0); //LDB: previously 16 DbfFieldDef fromFile = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); if (fromFile.fieldnumdec == 0) fields[f] = fromFile; f++; } else if (columnType == AttributeType.DOUBLE) { fields[f] = new DbfFieldDef(columnName, 'N', 33, 16); DbfFieldDef fromFile = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); if (fromFile.fieldnumdec 0) fields[f] = fromFile; f++; Larry On Fri, Mar 1, 2013 at 10:38 AM, Larry Becker becker.la...@gmail.comwrote: I have a fix that works in SkyJUMP and should work in OpenJUMP. It isn't elegant but it works by avoiding calling overrideWithExistingCompatibleDbfFieldDef when a type change is detected. There may be a more direct solution, but I didn't find one. The patch file for SkyJUMP is: ### Eclipse Workspace Patch 1.0 #P SkyJumpSVN Index: com/vividsolutions/jump/io/ShapefileWriter.java === --- com/vividsolutions/jump/io/ShapefileWriter.java(revision 2) +++ com/vividsolutions/jump/io/ShapefileWriter.java(working copy) @@ -407,11 +407,13 @@ if (columnType == AttributeType.INTEGER) { fields[f] = new DbfFieldDef(columnName, 'N', 11, 0); //LDB: previously 16 -fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); +if ((fieldMap != null) !fieldMap.toString().endsWith(N 33.16})) +fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); f++; } else if (columnType == AttributeType.DOUBLE) { fields[f] = new DbfFieldDef(columnName, 'N', 33, 16); -fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); +if ((fieldMap != null) !fieldMap.toString().endsWith(N 11.0})) +fields[f] = overrideWithExistingCompatibleDbfFieldDef(fields[f], fieldMap); f++; } else if (columnType == AttributeType.STRING) { int maxlength = findMaxStringLength(featureCollection, t); Larry On Fri, Mar 1, 2013 at 9:09 AM, Larry Becker becker.la...@gmail.comwrote: I can reproduce it in SkyJUMP. I think this is thte result of using overrideWithExistingCompatibleDbfFieldDef in ShapeWriter. My rational behind this method introduced a few years ago (July 2010) is that the size of the numbers entered during an edit session should not automatically lead to a reduction of precision in the shapefile. This was the case before this procedure was introduced. I had shapefiles for which there were published data standards, but SkyJUMP would change the number of digits each time I saved the file. The change achieved its goal, but it may not work correctly for this particular case due to the type change. I agree with Jukka. It may be an unusual case, but the reliability of shapefile IO is crucial to the JUMP family. This must be fixed. I will work on it too. BTW, the result is the same if you Save Dataset As instead of Save Selected Datasets. Larry On Thu, Feb 28, 2013 at 7:00 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, This is bad. I have tested only with r3277 but not with any older versions. I can reproduce this: - Start OJ - Create a layer, add attribute attr of type DOUBLE - Make a point, set attr=1.0 - Save as a shapefile - Delete layer, read in the saved shapefile, everything OK - Edit schema, change attr into type INTEGER - Do Save selected dataset - Shapefile is now corrupted OJ cannot open this saved shapefile. The error is java.io.EOFException at java.io.DataInputStream.readFully(Unknown Source) at java.io.DataInputStream.readFully(Unknown Source) at com.vividsolutions.jump.io.EndianDataInputStream.readByteLEnum
Re: [JPP-Devel] Convex hull for selected features is a linestring
Hi Jukka, The original version of the one that creates linestrings from the selection is from SkyJUMP, and this is as it was designed. However, I have no objection to changing it to produce a polygon. We used it as a visual aid to determine line-of-sight between features, but this is not typical. The interface does not distinguish the most important difference between the two implementations of convex hull: algorithm. The one with the layer input uses JTS and the Graham Scan, the other uses the Package Wrapping algorithm with enhancements. Graham Scan has a better worst case performance, so it might be better to combine the two functions as we did with Buffer and use the JTS algorithm in both cases. regards, Larry Becker On Mon, Jun 4, 2012 at 1:42 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: ** Hi, Operation Create convex hull for a layer creates a polygon while convex hull for selected features makes a linestring. This is perhaps a bug and against the definitions of http://www.vividsolutions.com/jts/javadoc/com/vividsolutions/jts/algorithm/ConvexHull.html For reproducing, create a new layer, digitise a polygon, select it and do Tools - Analysis - Convex Hull and have a look at the resulting geometry. -Jukka Rahkonen- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Performance issue with large polygons with holes in ShapefileReader
Hi Michaël, Do you think this optimization will have an effect on the Shapefile with overlapping shells issue that we worked in 2008? see: http://www.mail-archive.com/jump-pilot-devel@lists.sourceforge.net/msg04403.html regards, Larry 2012/4/20 Michaël Michaud michael.mich...@free.fr Hi, Here are some test cases done with a 200 Mb shapefile (thanks Jukka) containing : 221770 polygons worst case : 287273 pts and 5484 holes Dataset : Current OJ code / 1st Martin's optimization / 3rd Martin's optimization / 1st+3rd whole shapefile : 41 s / 24 s / 24 s / 11 s worst polygon : 4.6 s / 0.16 s / 3.3 s / 0.13 s == 1st optimization has a big impact on worst case and a medium impact on a whole file with mixed cases 3rd optimization has a small impact on worst case and a medium impact on a whole file with mixed cases I'll commit the 3rd optimization anyway has it has no side effect. For the 1st one, i'll try to check if it may have negative impact on some shapefile (if I can find or produce such shapefiles) regards, Michaël Hi Martin, The performance improvement from just #1 was dramatic - reading a 1M feature shapefile went from over 1000 s to 32 s. Wonder how complex your shapefile is. It took me hours to create the following 65Mo shapefile, but it has been loaded in 11 s only Min Max Moyenne Total Pts 4 398604 3492.4928774928776 3677595 Trous 0 4804 37.41310541310541 39396 Composants 1 71 1.8034188034188035 1899 Surface 0.041523783176671714 1.1578715743783949E7 93654.73981537568 9.86184410255906E7 Longueur 1.553765588506568 456680.2181261205 4068.589468188681 4284224.710002681 Michaël Wow, your polygon should be really complex ! Will do some test and I'll report my results on this list. Michaël PolygonHandler change: ((ArrayList) holesForShells.get(findIndex(shells, minShell))).add(testHole); /** * Finds a object in a list. Should be much faster than indexof * * @param list * @param o * @return */ private static int findIndex(ArrayList list, Object o) { int n = list.size(); for (int i = 0; i n; i++) { if (list.get(i) == o) return i; } return -1; } -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!http://p.sf.net/sfu/Boundary-d2dvs2 ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!http://p.sf.net/sfu/Boundary-d2dvs2 ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!http://p.sf.net/sfu/Boundary-d2dvs2 ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Combining polygons
Hi Michaël and Jukka, It looks to me like one of the many revisions to FeatureInstaller lost an important change to support EZ Buttons. The patch below restores it. The change to EasyPanel should not be necessary. Please excuse me if my superficial look at the code has missed an important detail. Larry Index: C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/ui/plugin/FeatureInstaller.java === --- C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/ui/plugin/FeatureInstaller.java (revision 2786) +++ C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/ui/plugin/FeatureInstaller.java (working copy) @@ -649,12 +649,12 @@ } public void addMenuItemShownListener(final JMenuItem menuItem, - final MenuItemShownListener menuItemShownListener) { -JMenu menu = (JMenu) ((JPopupMenu) menuItem.getParent()).getInvoker(); -menu.addMenuListener(new MenuItemShownMenuListener(menuItem, -menuItemShownListener)); + final MenuItemShownListener menuItemShownListener) { + JMenu menu = (JMenu) ((JPopupMenu) menuItem.getParent()).getInvoker(); + menu.addMenuListener(new JumpMenuListener( menuItemShownListener,menuItem)); } + /** * Convenience method for entries without menupath * On Mon, Apr 2, 2012 at 2:41 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, I had a try with rev. 2785 and Combine two polygons attached to EZ Buttons so that the layer was editable at the time of shortcut creation. For me the EZ Button connected tool still combines selected polygons whether the layer is editable or not. I tried with a few different ways. - By toggling the Editable setting of a layer without closing the file in between. - Saving the editable layer on disk and opening it as non-editable - By creating new layers, adding a few polygons, making then non-editable and using the EZ Button connected combine tool. -Jukka Rahkonen- Michaël Michaud wrote: Hi Jukka, Larry - Combine two selected polygons tool is fast but it has a little bug. It allows to combine polygons even if the layer is non-editable. How do you do that ? Menu item is inactive (grayed) if layer is non editable. Good question indeed. It took awhile to repeat it. This is somehow related to EZ-Buttons shortcut. The shortcut seems to remember, not only the menu selection it is connected with, but also the state of OJ project when the shortcut was created. It can be created by opening some layer to OJ and making is editable so thet combine two polygons is working. Create the EZ-Button shortcut now and add a new layer. Now the EZ-Buttons shortcut combines polygons even the layer is not editable. So this is a feature in the EZ-Buttons. I tried to fixed this problem. Jukka, could you have a look to check it solves your problem (from svn 2781) Larry, could you double check the small change I did to the EasyPanel class http://jump-pilot.svn.sourceforge.net/viewvc/jump-pilot/core/t runk/src/org/openjump/core/ui/plugin/view/EasyPanel.java?r1=1873r2= 2781sortby=date Thanks, Michaël - Combine polygon with neighbouring polygon is very slow and can give an out-of-memory error. Is it perhaps walking through all the features when searching for the one to use for combining? I would guess that it should be much faster if it correctly selects just the few adjacent polygons for candidates first. I think the algo of this plugin is not so simple... I think Stefan know it better - Making union of selected features suits me well because I would like to combine about 10-20 polygons together. However, because it creates new layer each time there is some extra work with joining them together later. - Union selected in place (if result can be simple polygon) would be the ideal tool for just this case. Agree, this would be helpful. Not sure I would limit to simple polygons though. In my case I want that the new areas are also continuos. Sometimes multipolygons would be acceptable. Perhaps there could be a check box for cases when features selected for combining are all simple polygons Allow multipolygons as new features? . If selection already contains multipolygons then the result can naturally contain them too. I suppose you don't want to union all adjacent polygons, otherwise, the simplest is to union the whole layer, then to explode the multipolygon. Yes, this is the case. All the polygons in the layer are adjacent and all together would be a monster polygon with thousands of holes and hundreds of thousands of vertices. I am going to reduce the number of polygons into about 500 and I want all them to have some reasonable amount of vertices. Automatic system by using some grid layer as a helper layer for splitting data into rectangular pieces first
Re: [JPP-Devel] Combining polygons
Sure. It wraps MenuListener in the JumpMenuListener wrapper class so that EasyPanel can determine which menu items had EnableChecks. It has been a few years since I wrote this so I'm not sure of all the hows and whys that it was done this way. 8-) Larry On Mon, Apr 2, 2012 at 10:02 AM, edgar.sol...@web.de wrote: Larry, could you please elaborate in short what this change does on the code level? ..thanks ede On 02.04.2012 16:53, Larry Becker wrote: Hi Michaël and Jukka, It looks to me like one of the many revisions to FeatureInstaller lost an important change to support EZ Buttons. The patch below restores it. The change to EasyPanel should not be necessary. Please excuse me if my superficial look at the code has missed an important detail. Larry Index: C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/ui/plugin/FeatureInstaller.java === --- C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/ui/plugin/FeatureInstaller.java (revision 2786) +++ C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/ui/plugin/FeatureInstaller.java (working copy) @@ -649,12 +649,12 @@ } public void addMenuItemShownListener(final JMenuItem menuItem, - final MenuItemShownListener menuItemShownListener) { -JMenu menu = (JMenu) ((JPopupMenu) menuItem.getParent()).getInvoker(); -menu.addMenuListener(new MenuItemShownMenuListener(menuItem, -menuItemShownListener)); + final MenuItemShownListener menuItemShownListener) { + JMenu menu = (JMenu) ((JPopupMenu) menuItem.getParent()).getInvoker(); + menu.addMenuListener(new JumpMenuListener( menuItemShownListener,menuItem)); } + /** * Convenience method for entries without menupath * On Mon, Apr 2, 2012 at 2:41 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, I had a try with rev. 2785 and Combine two polygons attached to EZ Buttons so that the layer was editable at the time of shortcut creation. For me the EZ Button connected tool still combines selected polygons whether the layer is editable or not. I tried with a few different ways. - By toggling the Editable setting of a layer without closing the file in between. - Saving the editable layer on disk and opening it as non-editable - By creating new layers, adding a few polygons, making then non-editable and using the EZ Button connected combine tool. -Jukka Rahkonen- Michaël Michaud wrote: Hi Jukka, Larry - Combine two selected polygons tool is fast but it has a little bug. It allows to combine polygons even if the layer is non-editable. How do you do that ? Menu item is inactive (grayed) if layer is non editable. Good question indeed. It took awhile to repeat it. This is somehow related to EZ-Buttons shortcut. The shortcut seems to remember, not only the menu selection it is connected with, but also the state of OJ project when the shortcut was created. It can be created by opening some layer to OJ and making is editable so thet combine two polygons is working. Create the EZ-Button shortcut now and add a new layer. Now the EZ-Buttons shortcut combines polygons even the layer is not editable. So this is a feature in the EZ-Buttons. I tried to fixed this problem. Jukka, could you have a look to check it solves your problem (from svn 2781) Larry, could you double check the small change I did to the EasyPanel class http://jump-pilot.svn.sourceforge.net/viewvc/jump-pilot/core/t runk/src/org/openjump/core/ui/plugin/view/EasyPanel.java?r1=1873r2= 2781sortby=date Thanks, Michaël - Combine polygon with neighbouring polygon is very slow and can give an out-of-memory error. Is it perhaps walking through all the features when searching for the one to use for combining? I would guess that it should be much faster if it correctly selects just the few adjacent polygons for candidates first. I think the algo of this plugin is not so simple... I think Stefan know it better - Making union of selected features suits me well because I would like to combine about 10-20 polygons together. However, because it creates new layer each time there is some extra work with joining them together later. - Union selected in place (if result can be simple polygon) would be the ideal tool for just this case. Agree, this would be helpful. Not sure I would limit to simple polygons though. In my case I want that the new areas are also continuos. Sometimes multipolygons would be acceptable. Perhaps there could be a check box for cases when features selected for combining are all simple polygons Allow multipolygons as new features? . If selection already contains multipolygons then the result can naturally contain them too. I suppose
Re: [JPP-Devel] Selectable and Editable menu items won't check on Vista and Win7
Hi Michaël, I've attached screen captures to illustrate the problem. Notice that XP displays both icons and checks, but Windows 7 shows only icons. Now that I look closely, I see that the icons themselves provide a subtle feedback that the item is selected. I prefer the actual checks myself. Larry 2012/3/29 Michaël Michaud michael.mich...@free.fr Hi Larry, Thanks for the tip. Can you give more details about the configuration that does not work, I can't reproduce the problem : Windows Vista SP2 64bits + jre6 32 bits works as it should Windows Vista SP2 64bits + jre7 32 bits works as it should Windows Vista SP2 64bits + jre7 64 bits works as it should. Michaël Le 29/03/2012 21:55, Larry Becker a écrit : Hi, I noticed that the Selectable and Editable menu items won't check on Vista and Win7 due to an interface change. If we get rid of the menu icons, which don't really add much, the functionality is restored. I have included a patch to try out the fix. regards, Larry Index: C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/JUMPConfiguration.java === --- C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/JUMPConfiguration.java (revision 2751) +++ C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/JUMPConfiguration.java (working copy) @@ -507,10 +507,10 @@ .getFrame().getLayerNamePopupMenu(); featureInstaller.addPopupMenuItem(layerNamePopupMenu, editablePlugIn, -editablePlugIn.getName(), true, EditablePlugIn.ICON, editablePlugIn +editablePlugIn.getName(), true, null, editablePlugIn .createEnableCheck(workbenchContext)); featureInstaller.addPopupMenuItem(layerNamePopupMenu, selectablePlugIn, -selectablePlugIn.getName(), true, selectablePlugIn.ICON, selectablePlugIn +selectablePlugIn.getName(), true, null, selectablePlugIn .createEnableCheck(workbenchContext)); layerNamePopupMenu.addSeparator(); // === -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel attachment: XP.PNGattachment: Win7.png-- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Selectable and Editable menu items won't check on Vista and Win7
Hi, I noticed that the Selectable and Editable menu items won't check on Vista and Win7 due to an interface change. If we get rid of the menu icons, which don't really add much, the functionality is restored. I have included a patch to try out the fix. regards, Larry Index: C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/JUMPConfiguration.java === --- C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/JUMPConfiguration.java (revision 2751) +++ C:/eclipse3/workspace/OpenJumpSvn/src/com/vividsolutions/jump/workbench/JUMPConfiguration.java (working copy) @@ -507,10 +507,10 @@ .getFrame().getLayerNamePopupMenu(); featureInstaller.addPopupMenuItem(layerNamePopupMenu, editablePlugIn, -editablePlugIn.getName(), true, EditablePlugIn.ICON, editablePlugIn +editablePlugIn.getName(), true, null, editablePlugIn .createEnableCheck(workbenchContext)); featureInstaller.addPopupMenuItem(layerNamePopupMenu, selectablePlugIn, -selectablePlugIn.getName(), true, selectablePlugIn.ICON, selectablePlugIn +selectablePlugIn.getName(), true, null, selectablePlugIn .createEnableCheck(workbenchContext)); layerNamePopupMenu.addSeparator(); // === -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Edit styles of all selected layers
When the Layer Properties was introduced in SkyJUMP, it was inspired by the Windows explorer Properties option, which shows you static information such as file size, but also lets you change some things such as read only or shared status for one file or an entire selection. It wasn't envisioned as an alternative to Change Style, but as a way to modify multiple layer's differing styles at the same time. As such its scope is limited to style parameters that can be varied continuously over a set range. I just had a look at the new Style submenu. I like it! For this menu I would think a new feature called something like Multilayer Change Style or Change Style Batch would be nice. It would enable only when multiple layers are selected, display the standard Change Style dialog, and allow editing of all selected layers at once. The tricky part to implement would be that it seems polite to grey (dim) all style attributes that had differing values (as a warning). Larry 2012/3/7 Michaël Michaud michael.mich...@free.fr Hi Larry, That is a great beantool Michaël! It certainly demonstrates how much can be accomplished with a little code. If it was to be implemented as a plugin, we have space on the Style tab of the Layer Properties dialog. It could be implemented as a slider like the Transparency adjustment that proportionally adjusts line width, or by using an option checkbox, make the slider change to absolute width. Both modes would be useful. Right, I forgot this place. And adding a component to change the line width this way should not be too much work. IMHO, this panel would be more easy to find in the new Style menu. What do you think ? I'm expecting read-only information when I open this layer properties dialog. Maybe my interpretation though. Regards, Michaël Larry 2012/3/7 Michaël Michaud michael.mich...@free.fr Hi Jukka, It would speed up things sometimes if some style settings could be edited for all selected layers at once. Making lines wider width is the most common case for me. Agree with you. Easy to solve with a script. Doing a nice plugin, consistent with OpenJUMP style management and style panels is much more work. I would recommend a FeatureRequest (I think there are already several FR related to styling, but unfortunately, there has not been work done in this domain for a long time). Attached is a small beantool doing the job. Could be added to the distribution as an example of a beantool with a small UI. Michaël -Jukka Rahkonen- -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service.http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service.http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Jump-pilot-devel mailing list
Re: [JPP-Devel] Edit styles of all selected layers
That is a great beantool Michaël! It certainly demonstrates how much can be accomplished with a little code. If it was to be implemented as a plugin, we have space on the Style tab of the Layer Properties dialog. It could be implemented as a slider like the Transparency adjustment that proportionally adjusts line width, or by using an option checkbox, make the slider change to absolute width. Both modes would be useful. Larry 2012/3/7 Michaël Michaud michael.mich...@free.fr Hi Jukka, It would speed up things sometimes if some style settings could be edited for all selected layers at once. Making lines wider width is the most common case for me. Agree with you. Easy to solve with a script. Doing a nice plugin, consistent with OpenJUMP style management and style panels is much more work. I would recommend a FeatureRequest (I think there are already several FR related to styling, but unfortunately, there has not been work done in this domain for a long time). Attached is a small beantool doing the job. Could be added to the distribution as an example of a beantool with a small UI. Michaël -Jukka Rahkonen- -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service.http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] [openjump-users] workbench-properties.xml in 1.5.1
I have done a basic port of the Orthogonalize plugin from SkyJUMP to OpenJUMP. Orthogonalize is a tool (currently on the right click menu) that squares up selected building polygons. Orthogonalization is the process of fixing polygons and multipolygons whose interior angles are close, but not exactly 90 degrees. An angle tolerance parameter controls what we mean by not exactly. You have the option of fixing in place on the source layer, or to a new layer. Stefan looked at this tool a few years ago. The tool is dependent on another function: Copy Select Elements to New Layer. I ported it too. Some enhancement of the GeoUtils class was necessary. No internationalization has currently been done, but all messages are collected at the top of the source. I'm cross-posting this to the developers list. @Developers: What do you think is the appropriate action? Just commit it or make a new plugin hosted on jump-pilot? @Arnd, the KLM support is another story. Michael had a look at it a few months back. As I recall, the coordinate translation to geographic projection is the issue. regards, Larry On Mon, Feb 27, 2012 at 3:55 PM, Stefan Steiniger sst...@geo.uzh.ch wrote: Hi Arnd, yes, it means you can use an old one. there should be no disadvantages - except maybe that you can not use ecw images. I think most of the changes where done to find the right Java path (in case you have several java versions) and to ensure that the jpg2000 and ecw drivers are found. As long as all the plugins are there that you want - it should be fine ;) However, if you have windows, you may just download the link to the bat file that Ede sent (if you can download bat files with the security settings). cheers, stefan On 27/02/2012 1:56 PM, Arnd Kielhorn wrote: Hello Larry, from the ISA-plugin I am espec. using OrthogonalizePlugIn and KML-Support. And we use the Workbench-properties.xml also for some non-free plugins. Stefan meant that I can use the old startup script which references the Workbench-properties.xml to use its functionality. I tested it with OJ 1.5.1 and it works what I can see. The question is: is there any disavantages using the old startup script instead of the new? If not, I can use the old one. Arnd I didn't think there were any features left in the ISA-plugin that hadn't been incorporated into OJ. If there are, perhaps we should just port them over. I think ArcSDE support is available as a stand alone plugin. @Arnd, what features do you still use? thanks, Larry On Mon, Feb 27, 2012 at 3:50 AM,edgar.sol...@web.de wrote: On 27.02.2012 09:59, Arnd Kielhorn wrote: Am 26.02.12 08:16, schrieb Arnd Kielhorn: Hello, could it be that the workbench-properties.xml is not referenced in OJ 1.5.1 ? yes, but only not in the start script I use the ISA-plugin which need entries in workbench-properties.xml to work. who is actually maintaining, developing the isa tools? the link on http://sourceforge.net/apps/**mediawiki/jump-pilot/index.** php?title=Plugins_for_OpenJUMPhttp://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Plugins_for_OpenJUMP is dead. we have older releases than 2.5 here http://sourceforge.net/**projects/jump-pilot/files/** OpenJUMP_plugins/ISA%**20Plugins/http://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/ISA%20Plugins/ actually the proper fix would be add an extension that loads the plugins. but adding bin/workbench-properties.xml to the jump parameters in start scripts if it exists won't hurt either. please try http://jump-pilot.svn.**sourceforge.net/viewvc/jump-** pilot/core/trunk/scripts/oj_**windows.bathttp://jump-pilot.svn.sourceforge.net/viewvc/jump-pilot/core/trunk/scripts/oj_windows.bat ..ede -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] [openjump-users] workbench-properties.xml in 1.5.1
Hmm, sourceforge autoblocked my first reply attempt (from gmail, no less). Anyone else having issues. Thanks for the quick reply Michaël. Is Copy Select Elements to New Layer the same as OpenJUMP's ReplicateSelectedItemsPlugIn (org.openjump.core.ui.plugin.edit) ? ReplicateSelectedItemsPlugIn (yours, I think) has more sophisticated checking for different schema on multiple layers, but it would need to be modified to support external invocation from another plugin (not hard), or I could just inline the needed code in Orthogonalize. There is now a kml parser in JTS... That is good news. The one I wrote is based on the JUMP GML parser. It doesn't support hierarchical geometries (you'd think this would be easy, but I didn't find it to be). thanks, Larry 2012/2/29 Michaël Michaud michael.mich...@free.fr Hi, I have done a basic port of the Orthogonalize plugin from SkyJUMP to OpenJUMP. Orthogonalize is a tool (currently on the right click menu) that squares up selected building polygons. Orthogonalization is the process of fixing polygons and multipolygons whose interior angles are close, but not exactly 90 degrees. An angle tolerance parameter controls what we mean by not exactly. You have the option of fixing in place on the source layer, or to a new layer. Stefan looked at this tool a few years ago. Stefan, how does this tool compare with Mapgen toolbox? The tool is dependent on another function: Copy Select Elements to New Layer. I ported it too. Some enhancement of the GeoUtils class was necessary. Is Copy Select Elements to New Layer the same as OpenJUMP's ReplicateSelectedItemsPlugIn (org.openjump.core.ui.plugin.edit) ? No internationalization has currently been done, but all messages are collected at the top of the source. I'm cross-posting this to the developers list. @Developers: What do you think is the appropriate action? Just commit it or make a new plugin hosted on jump-pilot? I like to have advanced options in extensions (generalization, corrections, simplification... can lead to a lot of advanced functions). But we can discuss with others wether or not it should be included in the core. @Arnd, the KLM support is another story. Michael had a look at it a few months back. As I recall, the coordinate translation to geographic projection is the issue. Right, I had a look at it. I noticed 3 points : - Projections : as far as I can remember, kml files can be I/O as geographic or UTM coordinates. You are right, this is a limitation. But we can suppose that OpenJUMP users use Ede's CTS or another tool for transformations (I use my own for french projections). - I also had a look at the code, and noticed that geometry is parsed by your own code. There is now a kml parser in JTS and I thought that it would simplify the code if we could use it (started to do this, but as you know, days are only 24 hours and weeks only 7 days ;-) - Last point is that the first kml I really wanted to parse failed to be parsed (I think this is because it was hierarchically structured with several folders included in each others (do not know if it is not conform or if it is a limitation of the parser). That said, the plugin works fine for simple kml files. I included it in an extension available on http://geo.michaelm.free.fr/OpenJUMP/resources/drivers/ and if other users have a good experience with it and want it to be uploaded on sourceforge right now, I'll do it. Michaël regards, Larry On Mon, Feb 27, 2012 at 3:55 PM, Stefan Steiniger sst...@geo.uzh.chwrote: Hi Arnd, yes, it means you can use an old one. there should be no disadvantages - except maybe that you can not use ecw images. I think most of the changes where done to find the right Java path (in case you have several java versions) and to ensure that the jpg2000 and ecw drivers are found. As long as all the plugins are there that you want - it should be fine ;) However, if you have windows, you may just download the link to the bat file that Ede sent (if you can download bat files with the security settings). cheers, stefan On 27/02/2012 1:56 PM, Arnd Kielhorn wrote: Hello Larry, from the ISA-plugin I am espec. using OrthogonalizePlugIn and KML-Support. And we use the Workbench-properties.xml also for some non-free plugins. Stefan meant that I can use the old startup script which references the Workbench-properties.xml to use its functionality. I tested it with OJ 1.5.1 and it works what I can see. The question is: is there any disavantages using the old startup script instead of the new? If not, I can use the old one. Arnd I didn't think there were any features left in the ISA-plugin that hadn't been incorporated into OJ. If there are, perhaps we should just port them over. I think ArcSDE support is available as a stand alone plugin. @Arnd, what features do you still use? thanks, Larry On Mon, Feb 27, 2012 at
Re: [JPP-Devel] Add scale panel on Info bar
I'd be the first to admit that some of the features that I put in SkyJUMP have no purpose in OJ. 8-) Larry On Sun, Feb 26, 2012 at 3:49 PM, Stefan Steiniger sst...@geo.uzh.ch wrote: I am for 123 [45687 pts] though, it also needs to translate pts... mhm.. stefan Am 26.02.12 02:16, schrieb Michaël Michaud: Hi 1) I think that envelope of selected features in pixels (displayed in second panel, between brackets) takes place and is useless What do you think ? without seeing it... yes, why would I need the pixels? Currently, the number of selected features message is displayed by ShowFullPathPlugIn (don't know why, probably not the best place) Il looks like : Number selected: 123 [1254.4, 65987] 45687 pts Code comes with the following comment from Larry : //LDB added the following to simulate 4D Draw Coordinates Panel My suggestion is to keep only : Number selected: 123 [45687 pts] or Selection: 123 features [45687 pts] Michaël -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] OpenJUMP roadmap updates
I agree that there is no need to ask my consent each time you want to incorporate a feature from SkyJUMP. I do like to point out any potential problems you might have, so coordination is still helpful. There should be no real issues with porting the Colourization plugin (or whatever we are going to call it). It does require a modification to styles and adds an RGB attribute when invoked, so it does have some risk of side effects. It currently only supports fill color so it can't be used with linestrings, although extending support for line colour would be fairly trivial. regards, Larry On Sun, Feb 19, 2012 at 6:28 AM, edgar.sol...@web.de wrote: On 18.02.2012 17:53, Michaël Michaud wrote: I can do this integration in the next days, before doing it I wonder if Larry Backer agrees, since ISA team made this plugin. I've get an answer a few months ago, where he told me he was generally happy when a plugin was ported from SkyJUMP to OpenJUMP. But I think he's still monitoring the forum, and maybe he'll confirm that. i wouldn't wait, because in the past Larry always supported backports and from a legal standpoint it is a act of courtesy anyway as these plugins were released under GPL2 with all the rights that come with it. of course i am thankful to the isa team for their contributions. ..ede -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Editing shapefiles with SBN and SBX indexes
I just ran into an issue with SkyJUMP and I assume OpenJUMP (since our shapefile drivers are the same). When I add features to a shapefile layer that was created by ESRI and save changes, the SBN and SBX optional spatial index files are not updated (when present), This causes problems when viewing in ESRI-based software which assumes that the spatial indexes are up to date with their associated shapefiles. According to Wikipedia, these index files are not supported by any software except ESRI and are not strictly necessary. My testing seems to confirm that deleting them does no harm. I suggest that we check for the existence of shapefiles with.sbn and .sbx extensions (not to be confused with SHX database index files) and delete them as part of the process of writing or updating a shapefile. This should probably go at the end of com.vividsolutions.jump.io.ShapefileWriter.write. Comments? regards, Larry Becker ISA -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Cannot open old project file
Hi Jukka, I haven't posted for a while, but I'm still listening. Your post reminded me that OJ still doesn't have one of my favorite features in SkyJUMP: the layer file. These are basically project files per layer. They are created when you use the Archive Selected Datasets menu option. It creates a zip file containing all of the selected layers (using their current file format) along with a project file (with the jmp extension) that has the same filename as each archived layer . The zip file can then be used to deliver data along with associated style information to others without any file path problems. The recipient of the archive can choose to open it directly and work on it in-place (all changes will be written back into the zip file), or extract it and Merge the selected layer project files into their current project. This feature has been in use at ISA for many years and we consider it essential to using JUMP to work on projects with multiple people editing at the same time. regards, Larry Becker ISA On Tue, Jan 10, 2012 at 3:17 PM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, New OJ does not open my old project files which I have created in 2009. It is not a problem because I have the corresponding OpenJUMP version in the same zip file. Big advantage from a small footprint. I still wonder what has changed and how the old project files could be edited to be usasable with a fresh OJ. It would be nice to be able to save the project file to that datasource path would be relational to JUMP_HOME or something. That would make it possible to deliver data, project, styles and software all together - unzip and launch and you are ready to work in one minute. You cannot do that with ArcGIS but I guess it might be possible to do with OpenJUMP. It is already possible if operation system gives USB disk the same volume letter in the lottery but that is not always the case and users without admin rights cannot change volume letters at least on Windows. -Jukka Rahkonen- -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] EZ Buttons bug
Hi Matthias, Yes, I couldn't figure out how to copy a menu's enableChecks event handler to the EZ Buttons. I didn't study it too much though, so there may be a fairly easy solution. regards, Larry On Sun, Aug 14, 2011 at 2:36 PM, Matthias Scholz m...@jammerhund.de wrote: Hi! The EZ Buttons do not observe the enableChecks. If you bind a tool to a button which needs one or more features selected (blend linestrings for example), then you get some exceptions. Matthias -- FREE DOWNLOAD - uberSVN with Social Coding for Subversion. Subversion made easy with a complete admin console. Easy to use, easy to manage, easy to install, easy to extend. Get a Free download of the new open ALM Subversion platform now. http://p.sf.net/sfu/wandisco-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] ESRI file geodatabases
+1 vote to support file geodatabase as a geotools dataset (if ede can provide a geotools dataset adapter). I volunteer to add or improve write capability. I have a little time to contribute in the next couple of weeks. I have ArcMap available to test compatibility. I don't have experience with JNI or JNA, but I need to learn. JNA sounds like the way to go if it really works. Larry On Tue, Aug 9, 2011 at 11:06 PM, Martin Davis mtncl...@telus.net wrote: Translation has various problems, such as: - a cumbersome step before being able to access data - limitations of the shapefile format (which I presume you would have to target for output): e.g. 2 GB limit, dumb column names, limited types, etc - more storage requirements Don't get me wrong - I'm not saying that Read-Write to FGDB is not needed. I'm just saying that having Read capability would still provide value. M On 8/9/2011 7:27 AM, Larry Becker wrote: Hi Martin, Disagreed. ... Another way to think of this - what better way to to suck the life out of a proprietary format than to make a one-way gateway into an open solution? (This is a tried-and-true ploy of proprietary platforms...) I see your point, but if I needed a one way translator, I would just use OGR2OGR, shameless self-promotion preferably with the iGOR interface (after I update it to support FGDB)./shameless self-promotion I'm also in the position of needing to do advanced editing on data that is maintained in ESRI format. So far it is just shapefiles, but the popularity of file geodatabases is increasing. I can't give the customer data back in a different format, especially one that can't handle the data size or field names. I need to be able to edit *along side of *the ESRI solution, especially in an ArcGIS Engine runtime environment that doesn't have all of the regular tools. regards, Larry On Mon, Aug 8, 2011 at 8:08 PM, Martin Davis mtncl...@telus.net wrote: On 8/8/2011 10:33 AM, Larry Becker wrote: It looks like there could be cooperation between the two groups on the development of the Java interface at least. Cooperation with GeoTools seems like a reasonable way to go. The ogr support approach would not seem to provide any advantage beyond translating FGDB to shapefiles as SkyJUMP uses that library for mdb translation now. There may be Java bindings for the low level API in OGR that I'm not aware of, but this would be a level removed from the actual API we want to use. Agreed. It's bad enough having to include the C libs needed for access to non-Java APIs, but including a bunch of OGR libs as well just compounds the problem. Also, from a development point-of-view if there are issues that makes two places which need to be looked at and updated - and if the problem is in OGR then OJ is hostage to OGR's schedule. The only way this would be any use in JUMP (IMHO) is if we could open and edit FGDBs like ArcMap does. We discussed the idea of supporting the Access personal geodatabase years ago, but abandoned the idea because it was too risky because it was proprietary and had no published API. Disagreed. Providing Read-Only access to FGDB is still very useful, since it provides a gateway into OJ for ESRI users. And there is lots of functionality which is difficult to accomplish in ESRI tools which is easy in OJ (and other Java solutions like JEQL). I'm now in the unenviable position of working with ESRI tools on a daily basis, and by the biggest stumbling block to trying to introduce OJ into my environment is the inability to read the (sometimes huge) FGDBs that we use. Another way to think of this - what better way to to suck the life out of a proprietary format than to make a one-way gateway into an open solution? (This is a tried-and-true ploy of proprietary platforms...) I'm not even sure that the ESRI FGDB API supports writing.. or at least, not without a lot of caveats. As far as the ESRI license, it would put us in the same position as having the end user download the MRSID executable. Not good, but doable. On the minus side, by supporting the proprietary FGDB format, we might be using effort that could be better applied to open source solutions. See comment above about providing a gateway... What are the viable open source alternatives? Spatial Lite seems to have a C API as well. SpatialLite support would be useful too, but I don't think it's going to replace FGDB in the wider world anytime soon (unfortunately). just a few thoughts, Larry On Mon, Aug 8, 2011 at 10:22 AM, edgar.sol...@web.de wrote: Obviously there is interest in geotools to add a gt2 datastore for it. Also cite: Justin Deoliveira: Just a note that fgdb support was recently added to ogr as a format... so using the existing ogr datastore (and its java bindings for ogr) could be an easier route to go. However it requires ogr = 1.9.0. In any way we should (re)implement
Re: [JPP-Devel] ESRI file geodatabases
Hi Martin, Disagreed. ... Another way to think of this - what better way to to suck the life out of a proprietary format than to make a one-way gateway into an open solution? (This is a tried-and-true ploy of proprietary platforms...) I see your point, but if I needed a one way translator, I would just use OGR2OGR, shameless self-promotion preferably with the iGOR interface (after I update it to support FGDB)./shameless self-promotion I'm also in the position of needing to do advanced editing on data that is maintained in ESRI format. So far it is just shapefiles, but the popularity of file geodatabases is increasing. I can't give the customer data back in a different format, especially one that can't handle the data size or field names. I need to be able to edit *along side of *the ESRI solution, especially in an ArcGIS Engine runtime environment that doesn't have all of the regular tools. regards, Larry On Mon, Aug 8, 2011 at 8:08 PM, Martin Davis mtncl...@telus.net wrote: ** On 8/8/2011 10:33 AM, Larry Becker wrote: It looks like there could be cooperation between the two groups on the development of the Java interface at least. Cooperation with GeoTools seems like a reasonable way to go. The ogr support approach would not seem to provide any advantage beyond translating FGDB to shapefiles as SkyJUMP uses that library for mdb translation now. There may be Java bindings for the low level API in OGR that I'm not aware of, but this would be a level removed from the actual API we want to use. Agreed. It's bad enough having to include the C libs needed for access to non-Java APIs, but including a bunch of OGR libs as well just compounds the problem. Also, from a development point-of-view if there are issues that makes two places which need to be looked at and updated - and if the problem is in OGR then OJ is hostage to OGR's schedule. The only way this would be any use in JUMP (IMHO) is if we could open and edit FGDBs like ArcMap does. We discussed the idea of supporting the Access personal geodatabase years ago, but abandoned the idea because it was too risky because it was proprietary and had no published API. Disagreed. Providing Read-Only access to FGDB is still very useful, since it provides a gateway into OJ for ESRI users. And there is lots of functionality which is difficult to accomplish in ESRI tools which is easy in OJ (and other Java solutions like JEQL). I'm now in the unenviable position of working with ESRI tools on a daily basis, and by the biggest stumbling block to trying to introduce OJ into my environment is the inability to read the (sometimes huge) FGDBs that we use. Another way to think of this - what better way to to suck the life out of a proprietary format than to make a one-way gateway into an open solution? (This is a tried-and-true ploy of proprietary platforms...) I'm not even sure that the ESRI FGDB API supports writing.. or at least, not without a lot of caveats. As far as the ESRI license, it would put us in the same position as having the end user download the MRSID executable. Not good, but doable. On the minus side, by supporting the proprietary FGDB format, we might be using effort that could be better applied to open source solutions. See comment above about providing a gateway... What are the viable open source alternatives? Spatial Lite seems to have a C API as well. SpatialLite support would be useful too, but I don't think it's going to replace FGDB in the wider world anytime soon (unfortunately). just a few thoughts, Larry On Mon, Aug 8, 2011 at 10:22 AM, edgar.sol...@web.de wrote: Obviously there is interest in geotools to add a gt2 datastore for it. Also cite: Justin Deoliveira: Just a note that fgdb support was recently added to ogr as a format... so using the existing ogr datastore (and its java bindings for ogr) could be an easier route to go. However it requires ogr = 1.9.0. In any way we should (re)implement a geotools reader/writer extension or pimp my old GT2 reader/writer to work with the latest oj. ede On 08.08.2011 17:07, Sunburned Surveyor wrote: It looks like there is some interest and opportunity for collaboration with the GeoTools team on FGDB support. You can see the thread I started on their development mailing list here: http://osgeo-org.1803224.n2.nabble.com/FGDB-Support-in-GeoTools-td6662165.html I'm already way over committed, so I can't take the lead on this effort, but I hope we can work together with the GeoTools people if there is a desire and resources for work on a FGDB library. Landon On Sun, Aug 7, 2011 at 10:44 AM, Sunburned Surveyor sunburned.surve...@gmail.com wrote: If we did decide to explore FGDB support for OpenJUMP, I'd recommend we collaborate with GeoTools on the lower-level code. I can post there to see if there is anything going on in this area and will get back
Re: [JPP-Devel] ESRI file geodatabases
It looks like there could be cooperation between the two groups on the development of the Java interface at least. The following thread is a bit discouraging toward that effort: http://forums.arcgis.com/threads/35051-Problem-loading-libraries-to-Java The sourceforge project at http://sourceforge.net/projects/jfilegdbexplore/looks very thin, but seems to imply it can be done. The post at http://forums.arcgis.com/threads/2696-How-To-File-Geodatabase-using-Java is listed under the ArcObjects forum, and not the forum dedicated to the new API. The ogr support approach would not seem to provide any advantage beyond translating FGDB to shapefiles as SkyJUMP uses that library for mdb translation now. There may be Java bindings for the low level API in OGR that I'm not aware of, but this would be a level removed from the actual API we want to use. The only way this would be any use in JUMP (IMHO) is if we could open and edit FGDBs like ArcMap does. We discussed the idea of supporting the Access personal geodatabase years ago, but abandoned the idea because it was too risky because it was proprietary and had no published API. As far as the ESRI license, it would put us in the same position as having the end user download the MRSID executable. Not good, but doable. On the minus side, by supporting the proprietary FGDB format, we might be using effort that could be better applied to open source solutions. What are the viable open source alternatives? Spatial Lite seems to have a C API as well. just a few thoughts, Larry On Mon, Aug 8, 2011 at 10:22 AM, edgar.sol...@web.de wrote: Obviously there is interest in geotools to add a gt2 datastore for it. Also cite: Justin Deoliveira: Just a note that fgdb support was recently added to ogr as a format... so using the existing ogr datastore (and its java bindings for ogr) could be an easier route to go. However it requires ogr = 1.9.0. In any way we should (re)implement a geotools reader/writer extension or pimp my old GT2 reader/writer to work with the latest oj. ede On 08.08.2011 17:07, Sunburned Surveyor wrote: It looks like there is some interest and opportunity for collaboration with the GeoTools team on FGDB support. You can see the thread I started on their development mailing list here: http://osgeo-org.1803224.n2.nabble.com/FGDB-Support-in-GeoTools-td6662165.html I'm already way over committed, so I can't take the lead on this effort, but I hope we can work together with the GeoTools people if there is a desire and resources for work on a FGDB library. Landon On Sun, Aug 7, 2011 at 10:44 AM, Sunburned Surveyor sunburned.surve...@gmail.com wrote: If we did decide to explore FGDB support for OpenJUMP, I'd recommend we collaborate with GeoTools on the lower-level code. I can post there to see if there is anything going on in this area and will get back to the list. Landon On Thu, Aug 4, 2011 at 2:25 AM, edgar.sol...@web.de wrote: Thanks for the overview on this.. ede On 04.08.2011 01:28, Martin Davis wrote: Yes, they are definitely positioning FGDBs as the replacement for shapefiles - at least in their world. FGDB has a lot of advantages for them - no limit on file size, able to contain all of the weird and wonderful ESRI data structures, and platform-independent. Oh, and no 11-char limit on field names!!! philosophy Personally I can't see it replacing the role that Shapefiles play in the wider geospatial world - that is, a (fairly( open, easily-accessible, documented spatial data format. The FGDB format is closed and proprietary - only the API is somewhat open. And it's written in C, which limits its use in some situations. Also, the FGDB format is very complex, and completely tailored to support ESRI's needs, rather than a more general set of needs. It would be GREAT to have a truly open geospatial format, which was essentially a shapefile for the 21st century. GML is NOT that format... so the field lies open /philosophy It would be great to have a solution for accessing FGDBs from Java (OpenJUMP of course, but I'd also like to be able to read them from JEQL). If OJ could read them that should make it quite appealing for working with newer ESRI data. One possiblity is this work on a Java interface to the FGDB API. If this project has taken care of all the JNI nastiness, then it could be worth using. http://sourceforge.net/projects/jfilegdbexplore/ http://sourceforge.net/projects/jfilegdbexplore/ I know that the GDAL project is working on adding a driver for the FGDB API. This is in C, of course, so not directly usable by OJ. Martin On 8/3/2011 8:27 AM, Larry Becker wrote: It would seem that ESRI is positioning the file geodatabase as the heir to the shapefile. They now have a cross-platform API that provides access without ArcObjects. http://forums.arcgis.com/threads/31841-Welcome-to-the-discussion-forum
Re: [JPP-Devel] ESRI file geodatabases
Hi ede, why would it be removed? I was referring to the OGR API adding a level of abstraction above the actual FGDB C++ API, but still being not a Java API. i still like the idea of having an interface that uses geotools mechanisms to load data. that would automatically enable oj users to use all gt2 datastores. opinions? I like using geotools too. If they implement a FGDB datastore that has read and write access, it should be the preferred method. Larry On Mon, Aug 8, 2011 at 1:52 PM, edgar.sol...@web.de wrote: On 08.08.2011 19:33, Larry Becker wrote: It looks like there could be cooperation between the two groups on the development of the Java interface at least. The following thread is a bit discouraging toward that effort: http://forums.arcgis.com/threads/35051-Problem-loading-libraries-to-Java i have some experience with rxtx serial library in this regard and even wrote an autoload the correct library for the os we are running on wrapper. so when push comes to shove i can deliver support there. The ogr support approach would not seem to provide any advantage beyond translating FGDB to shapefiles as SkyJUMP uses that library for mdb translation now. There may be Java bindings for the low level API in OGR that I'm not aware of, but this would be a level removed from the actual API we want to use. why would it be removed? i still like the idea of having an interface that uses geotools mechanisms to load data. that would automatically enable oj users to use all gt2 datastores. opinions? The only way this would be any use in JUMP (IMHO) is if we could open and edit FGDBs like ArcMap does. We discussed the idea of supporting the Access personal geodatabase years ago, but abandoned the idea because it was too risky because it was proprietary and had no published API. good point. the licensing terms of ESRI are pretty discouraging as far as i understand. As far as the ESRI license, it would put us in the same position as having the end user download the MRSID executable. Not good, but doable. agreed On the minus side, by supporting the proprietary FGDB format, we might be using effort that could be better applied to open source solutions. What are the viable open source alternatives? Spatial Lite seems to have a C API as well. also agreed. as long as it is not really open, as in free software, i am in no way interested to take part in developing for a company that does not even pay me (respect). still i am open to use solution others came up with, using the c api or whatever, or help out if i can (see loading native libraries above). regards ede On Mon, Aug 8, 2011 at 10:22 AM, edgar.sol...@web.de mailto: edgar.sol...@web.de wrote: Obviously there is interest in geotools to add a gt2 datastore for it. Also cite: Justin Deoliveira: Just a note that fgdb support was recently added to ogr as a format... so using the existing ogr datastore (and its java bindings for ogr) could be an easier route to go. However it requires ogr = 1.9.0. In any way we should (re)implement a geotools reader/writer extension or pimp my old GT2 reader/writer to work with the latest oj. ede On 08.08.2011 17:07, Sunburned Surveyor wrote: It looks like there is some interest and opportunity for collaboration with the GeoTools team on FGDB support. You can see the thread I started on their development mailing list here: http://osgeo-org.1803224.n2.nabble.com/FGDB-Support-in-GeoTools-td6662165.html I'm already way over committed, so I can't take the lead on this effort, but I hope we can work together with the GeoTools people if there is a desire and resources for work on a FGDB library. Landon On Sun, Aug 7, 2011 at 10:44 AM, Sunburned Surveyor sunburned.surve...@gmail.com mailto:sunburned.surve...@gmail.com wrote: If we did decide to explore FGDB support for OpenJUMP, I'd recommend we collaborate with GeoTools on the lower-level code. I can post there to see if there is anything going on in this area and will get back to the list. Landon On Thu, Aug 4, 2011 at 2:25 AM, edgar.sol...@web.de mailto: edgar.sol...@web.de wrote: Thanks for the overview on this.. ede On 04.08.2011 01:28, Martin Davis wrote: Yes, they are definitely positioning FGDBs as the replacement for shapefiles - at least in their world. FGDB has a lot of advantages for them - no limit on file size, able to contain all of the weird and wonderful ESRI data structures, and platform-independent. Oh, and no 11-char limit on field names!!! philosophy Personally I can't see it replacing the role that Shapefiles play in the wider geospatial world - that is, a (fairly( open, easily-accessible, documented spatial data format. The FGDB
[JPP-Devel] ESRI file geodatabases
It would seem that ESRI is positioning the file geodatabase as the heir to the shapefile. They now have a cross-platform API that provides access without ArcObjects. http://forums.arcgis.com/threads/31841-Welcome-to-the-discussion-forum-for-the-File-Geodatabase-API ! Is this something the JUMP community should look into supporting? Larry -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos much more. Register early save! http://p.sf.net/sfu/rim-blackberry-1___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] I need an help
Hi Stefan. Welcome back! @Peppe, I think Stefan is referring to Edit Selected Side, and it seems like a perfect example of what you are trying to do. It creates a new temporary layer and calculates distance and angles. regards, Larry On Wed, Jul 13, 2011 at 2:28 PM, Stefan Steiniger sst...@geo.uzh.ch wrote: Hei Peppe thats great news that you started programming! for the first one - how about this example on the buffer: http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Example_Plugin_For_Buffering_Features_in_a_Layer but instead of creating a buffer geometry you get the coordinate of the point and create a new point feature in a new layer... or so? But what makes it a bit more difficult is that you stay in an interaction mode... i.e. you activate the function once and then stop it later when you are done and keep writing to the same layer... so you need like two buttons and create the layer only once? (my draw circles tool from the editing box is a bit a mess, but could help too)...mhm the more I think about it, the more complicated it seems to me. for the second on.. seems more tricky to me. Would need to think about it. However, the tools that came with SkyJump to modify and access edges of a polygon do something similar - right? cheers, stefan On 13/07/2011 2:26 AM, Edgar Soldin wrote: My idea is to start from this tool to obtain other surveying tools. My questions are: 1) actually the tool only displays on status panel the value of the angle. I need that it creates a new layer and , for every measuring, a point with the values of degrees saved in an attribute 2) I need that the tools creates, for every measuring, a line with vectors (segments) oriented according the calculated angles. I really thatnk if someone can help me. i usually look around if somewhere in oj or in an extension is a similar functionality as i need and look how thy did it, reading the source. then i cherry-pick the routines i need and glue them together as needed. good luck ede -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] SkyJUMP installation
I haven't done any 64bit testing on SkyJUMP. It should work if you modify the SkyJUMP.ini file in /bin. -vm *C:\ASHSII\Jump\bin\j2re\bin\SkyJump.exe* -jararg1 -properties -jararg2 workbench-properties.xml -vmargs -Xmx512m -Xms40M Change the -vm parameter to point to your jvm instead of the included one. I suppose I need to make a 64 bit version. Larry 2011/7/2 Michaël Michaud michael.mich...@free.fr Hi, is there a 32bit jre installed? the skyjump exe is probably 32bit and therefor does not find the 64bit jre you have installed? Yes my default (and currently unique) jre installed is a 32 bit version. Michaël a wild guess, ede On 02.07.2011 16:45, Michaël Michaud wrote: Hi Larry, I have tried to install SkyJUMP_12_109.EXE on my windows box (Vista 64 bits), but the installation process stops with the following message : Any idea ? Michaël -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] New realize of OpenJUMP JUFRE 0.3
Impressive! Larry On Thu, Jun 30, 2011 at 12:39 AM, Martin Davis mtncl...@telus.net wrote: Giuseppe, Wow! That's a great list of changes. Based on a quick read of the doc, it looks like some great ideas in there. I'm excited to see so much activity on JUMP - the app is really moving forward now! Martin On 6/29/2011 4:05 AM, Giuseppe Aruta wrote: Hi all this is a new version of OpenJUMP Jufre version 0.3. The software is based on OpenJUMP 1.4 with more improvements. - OpenJUMP Jufre 0.3 can be downloaded here: http://sourceforge.net/projects/opensit/files/Openjump/Jufre/jufre-1.3.zip/download - This is the source code of the core software: http://sourceforge.net/projects/opensit/files/Openjump/Jufre/jufre-1.3-src.zip/download - I tried to catalog all the enhancements and changes I did on the core software and I did a list here. Only basicStyle.class modification (for Featurecolorchooser plugIn) is missing. This text explain all the modifications: http://sourceforge.net/projects/opensit/files/Openjump/Jufre/read_first.pdf/download . Between them: - new organization of Editing Toolbox and Attribute schema - new plugIn - New organization of Schema panel I will be glad of users/developers impression. I will be out of web for a week, so keep questions warm untill 12th of July. OpenJUMP Jufre is developed to test new enhancements and tools that oner day (I will be glad) will be added to standard OpenJUMP. This software is not developed for business or other job activity as it might have some bugs (not yer discovered) Giuseppe Aruta -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel - No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1388 / Virus Database: 1516/3732 - Release Date: 06/28/11 -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] menu entries for geometry conversion
+1 On Fri, Jun 24, 2011 at 4:15 AM, edgar.sol...@web.de wrote: peppe votes to have the geometry conversion also in the layerview context menu. as i do not work with gis i don't know how often one needs this functonality. so i put that up for voting. anybody else in favor or against it? @michael: your vote on integrating the geomconv into core is still missing. regards ede -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Proprietary code in OJ : BASE64Encoder
Hi Michaël and Ede, I'm glad to assist if I can. I tried VALUE_INTERPOLATION_BILINEAR, VALUE_INTERPOLATION_BICUBIC, and whatever the default is. I couldn't see any visible difference in a grey-scale image, so I think it can be removed without any obvious effect. regards, Larry 2011/6/14 Michaël Michaud michael.mich...@free.fr Hi Ede, I think MrSID plugin is from Larry. Hope he can give some hints MrSid image samples seem quite easy to find. See http://www.mass.gov/mgis/dwn-imgs.htm I can make some tests as soon as you have committed +1 to get rid of both classes Michaël Le 14/06/2011 21:36, edgar.sol...@web.de a écrit : just found com/vividsolutions/jump/workbench/imagery/mrsid/MrSIDReferencedImage.java uses com.sun.image.codec.jpeg.JPEGDecodeParam; com/vividsolutions/wms/MapRequest.java uses sun.misc.BASE64Encoder should i deal with them in the same manner? who would be willing to test the resulting nightly build? i don't know mrsid nor use wms. ede On 22.02.2011 12:47, Michaël Michaud wrote: Hi, There are two classes in wms package using the sun proprietary BASE64Encoder class I suggest to replace it by http://migbase64.sourceforge.net/ which is BSD licensed and could be included in OJ code. But I don't know much this part of the code and I would be pleased to get advice from WMS and network gurus before I do the change. Michaël Le 22/02/2011 12:08, Michaël Michaud a écrit : Hi Larry, OJ developpers, I'm trying to remove some dependencies to sun proprietary code in OpenJUMP I've just removed one dependency to com.sun.image.codec.jpeg.JPEGDecodeParam in com.vividsolutions.jump.workbench.imagery.graphic.GraphicImage I thing it was supposed to set different interpolation modes for gray images and color images, but I could not see any effect. Every image I have tested are interpolated (old image framework), with or without the JPEGDecodeParam test Every image I have tested are not interpolated (Raster-Sextante framework) Any hint on this I have committed the code (removed JPEGDecodeParam test), but of course, I can set it back if I missed something. Michaël -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] converting MoveSelectedItemsTool to PlugIn
The code can just be copied over. The only hard part is the new translations. Larry On Fri, May 13, 2011 at 1:09 PM, Arnd Kielhorn a.kielh...@gmx.de wrote: Hello Larry, that is a really useful function. Is there a possibility to implement it in OJ? Kindly regards Arnd Hi Peppe, I think I know what kind of functionality you are talking about. SkyJUMP has modified the Move Along Angle tool to include a duplicate before move option. It allows you to enter the number of duplicates too. I've attached a screen shot. regards, Larry On Thu, May 12, 2011 at 11:41 AM, Giuseppe Aruta giuseppe_ar...@yahoo.itwrote: I know pastItemAtPoint PlugIn and I use it frequently. Clone Item shoud do something similar but with the possibility to move the feature before to passte it. Anyhow, I will explore this possibility when I have a laptop with me Peppe *Da:* Michaël Michaud michael.mich...@free.fr *A:* jump-pilot-devel@lists.sourceforge.net *Inviato:* Giovedì 12 Maggio 2011 13:10 *Oggetto:* Re: [JPP-Devel] converting MoveSelectedItemsTool to PlugIn Le 04/05/2011 12:17, Giuseppe Aruta a écrit : Or I can invert my problem: How can I call CopyItemPlugIn and PasteItem PlugIn inside MoveSelectedItemTool to have a Clone effect. Do you know the PasteItemsAtPlugIn ?It seems to do what you want : select features, right click in the view at the place where you want to clone your features, choose paste at (Incolla elementi al punto)You can even create a shortcut with Larry's EZButton to avoid to right-click-choose-menu item operation.Michaël Peppe --- *Mer 4/5/11, Giuseppe Aruta giuseppe_ar...@yahoo.itgiuseppe_ar...@yahoo.it * ha scritto: Da: Giuseppe Aruta giuseppe_ar...@yahoo.it giuseppe_ar...@yahoo.it Oggetto: Re: [JPP-Devel] converting MoveSelectedItemsTool to PlugIn A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net jump-pilot-devel@lists.sourceforge.net Data: Mercoledì 4 maggio 2011, 08:46 Hi Michael, I was working around CAD like tools. A MacroPlugin like CopyPlugIn PastePlugIn MoveSelectedItem(PlugIn) will define a clone item tool. Peppe --- *Mar 3/5/11, Michaël Michaud michael.mich...@free.frmichael.mich...@free.fr * ha scritto: Da: Michaël Michaud michael.mich...@free.fr michael.mich...@free.fr Oggetto: Re: [JPP-Devel] converting MoveSelectedItemsTool to PlugIn A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net jump-pilot-devel@lists.sourceforge.net Data: Martedì 3 maggio 2011, 21:23 Hi Peppe,A CursorTool is basically a MouseListener.If you convert it to a plugin, how will define the translation parameters ?I think it is possible to re-use a part CursorTool's code for a PlugIn, but I can't see a generic way to convert from one to another.Can you give more details about your use-case ?MichaëlLe 03/05/2011 11:04, Giuseppe Aruta a écrit : Hi all, is there a general way to convert a Tool into a PlugIn? I want to use MoveSelectedItemsTool into a MacroPlugIn. regards Peppe -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution.http://p.sf.net/sfu/whatsupgold-sd ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps:// lists.sourceforge.net/lists/listinfo/jump-pilot-devel -Segue allegato- --WhatsUp Gold - Download Free Network Management SoftwareThe most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution.http://p.sf.net/sfu/whatsupgold-sd -Segue allegato- ___Jump-pilot-devel mailing listjump-pilot-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -Segue allegato- --WhatsUp Gold - Download Free Network Management SoftwareThe most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution.http://p.sf.net/sfu/whatsupgold-sd -Segue allegato- ___Jump-pilot-devel mailing listjump-pilot-de...@lists.sourceforge.net
Re: [JPP-Devel] Shape analysis using area-perimeter ratio
Hi Michaël and Martin, Thanks for confirming that this is a valid shape analysis technique. The great thing about this list is getting instant access to a large depth and breadth of algorithmic knowledge. My current requirement is to sort a list of CAD figures into either linestring or polygon shapefiles. (BTW, I'm not doing this in JUMP at the present time, but in an external program, so I apologize for the off-topic post.) The CAD figures are not composed of lines, thank goodness, so a graph analysis is not necessary. Without applying some kind of algorithm, the only available technique is to check to see if the figure is closed. This caused a problem with utility loops (i.e. water lines) showing up as polygons. Putting in an area threshold check partially solved that problem (utility loops are large), but caused large pavement polygons to show up as linestrings. I'm betting on the fact that pavement polygons tend to be long and thin, and utility loops tend to be more circular, although this has yet to be conclusively demonstrated. However, the technique doesn't have to be fool-proof to save time. It just has to be right about 80% of the time. regards, Larry On Wed, Apr 27, 2011 at 7:31 PM, Martin Davis mtncl...@telus.net wrote: We implemented this as part of the JCS Conflation Suite (which was the reason JUMP was originally developed!) There's a whole body of theory around shape recognition - much of which is very complicated and hard to implement/use. The circularity ratio is one of the more usable techniques. Martin On 4/27/2011 2:00 PM, Larry Becker wrote: I had a need to classify polygon shapes into general categories such as roads and buildings, and I though it might be possible to use a thinness factor calculated using the area and perimeter. After fooling around with it for a while and not getting the answer, I goggled and found the following solution: lCircularity ratio: the ratio of the area of the shape to the area of a circle (the most compact shape) having the same perimeter. (area-perimeter ratio) M = ( 4 * Pi * Area of Polygon) / (Perimeter of Polygon)^2 For a circle, the ratio is one; for a square, it is π / 4; for an infinitely long and narrow shape, it is zero. I found it at: http://ce.sharif.edu/~alamgir/ Further searches indicate that this method of classification may be relatively unknown. Does anyone have knowledge in this area? regards, Larry Becker -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1209 / Virus Database: 1500/3600 - Release Date: 04/27/11 -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Shape analysis using area-perimeter ratio
I had a need to classify polygon shapes into general categories such as roads and buildings, and I though it might be possible to use a thinness factor calculated using the area and perimeter. After fooling around with it for a while and not getting the answer, I goggled and found the following solution: Slide 11 lCircularity ratio: the ratio of the area of the shape to the area of a circle (the most compact shape) having the same perimeter. (area-perimeter ratio) M = ( 4 * Pi * Area of Polygon) / (Perimeter of Polygon)^2 For a circle, the ratio is one; for a square, it is π / 4; for an infinitely long and narrow shape, it is zero. I found it at: http://ce.sharif.edu/~alamgir/ Further searches indicate that this method of classification may be relatively unknown. Does anyone have knowledge in this area? regards, Larry Becker -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] about layer tree (menu)
Hi Peppe, In com.vividsolutions.jump.workbench.JUMPConfiguration is where this is done, I think. regards, Larry On Tue, Feb 15, 2011 at 9:34 AM, Giuseppe Aruta giuseppe_ar...@yahoo.itwrote: Hi all, I probably made my question in a wrong way on my former mail: The class RasterImageContextMenu defines the order of the tools which are available into Sextante layer tree (first ToggleRasterImageVisibility , than ChangeRasterImagePropertiesPlugIn, ExtractSelectedPartOfImage etc etc) I wonder if this is the same for File layer tree: Is there a file that control the position of all the tools (modify, selectable, property etc, etc.)? Or is it controlled by other ways? My propose is to try to reconfigure layer tree using submenus regards Peppe --- Lun 14/2/11, Giuseppe Aruta giuseppe_ar...@yahoo.it ha scritto: Da: Giuseppe Aruta giuseppe_ar...@yahoo.it Oggetto: [JPP-Devel] about layer tree A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Data: Lunedì 14 febbraio 2011, 18:40 Hi all, which class defines tool positions on layer tree? thanks Peppe -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] About new measure tools
Hi Peppe, Speaking as someone who often uses Imperial units, thanks for thinking of us! I haven't updated to the latest snapshot. Did the Measure in feet option on the bottom of the tools menu go away? One of the issues that I have found with any Measure in feet tool is that it assumes your project units are meters. Of course it doesn't work if your units are degrees, but the problem that confuses our users the most is when the project units are feet, you can't use the Measure in feet tool because it will do unnecessary conversion and give the wrong answer. regards, Larry On Mon, Feb 14, 2011 at 9:17 AM, Giuseppe Aruta giuseppe_ar...@yahoo.itwrote: Hi all, I saw that the new measure tools have been substituted the original tool into the last OJ Night snapshot. I have a couple of proposals: a) Is it possible to duplicate those 2 tools, but in Feet instead of Meters? That means that we can have 4 tools instead of 2 (measure distance in meters, measure area in meters, measure distance in feet,measure area in feet). That probably solves many works for people who use Imperial measure system. b) as I can see those tools display also the relative distances between points, but those distances are not saved: it would be useful to save even that information on an extra layer. regards and thanks Peppe -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Question to Larry - Skyjump color manage
Here is what I propose to implement for the CAD Style: Add a new panel to the Style dialog with: 1) a check box to enable the style 2) a menu drop-down to choose the layer attribute. I will parse through all of the candidate attributes and list only those that contain a String with a hexadecimal RGB color specification (i.e. FF for red). This style will override the basic style panel fill and line colors just as color theming does. Of course, other kinds of per-feature CAD styling such as line type, etc. could be added in the future. Comments, suggestions? Larry On Sat, Nov 20, 2010 at 3:54 AM, Giuseppe Aruta giuseppe_ar...@yahoo.itwrote: Hi Larry, I did amistake: The name of the attribute field would be color and not Color. See the difference between uppercase and lowercase. thanks Peppe --- *Ven 19/11/10, Giuseppe Aruta giuseppe_ar...@yahoo.it* ha scritto: Da: Giuseppe Aruta giuseppe_ar...@yahoo.it Oggetto: Re: [JPP-Devel] Question to Larry - Skyjump color manage A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Data: Venerdì 19 novembre 2010, 15:35 Hi Larry , thanks for your availability, I am interested to both tools. As I can see from ISA plugin, the interactive color tool already seems to work with OJ. R_G_B style would be quite useful as general style tool. The the interactive color tool is interesting, too, as a CAD drawing tool. Is it possible to change R_G_B attribute name to Color? This will harmonize the import/export and automatically colorize an imported DXF into OJ. thanks again, Peppe --- *Ven 19/11/10, Larry Becker becker.la...@gmail.com* ha scritto: Da: Larry Becker becker.la...@gmail.com Oggetto: Re: [JPP-Devel] Question to Larry - Skyjump color manage A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Data: Venerdì 19 novembre 2010, 15:02 Hi Peppe, I could do that. Would you want the interactive color tool, the style that recognizes R_G_B attributes, or both? Larry On Fri, Nov 19, 2010 at 5:24 AM, Giuseppe Aruta giuseppe_ar...@yahoo.itwrote: Hi Larry, I found quite useful the tool into Skyjump that allows to set feature color according to a R_G_B attribute in Hexadecimal value - used with Dante Fuster DXF plugin made easy CAD2SHP conversion. I ask you if you plan to import this tool into OpenJUMP. Regards Peppe -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -Segue allegato- -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -Segue allegato- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -Segue allegato- -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev -Segue allegato- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.nethttp://mc/compose?to=jump-pilot-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes
Re: [JPP-Devel] Question to Larry - Skyjump color manage
Hi Peppe, I could do that. Would you want the interactive color tool, the style that recognizes R_G_B attributes, or both? Larry On Fri, Nov 19, 2010 at 5:24 AM, Giuseppe Aruta giuseppe_ar...@yahoo.itwrote: Hi Larry, I found quite useful the tool into Skyjump that allows to set feature color according to a R_G_B attribute in Hexadecimal value - used with Dante Fuster DXF plugin made easy CAD2SHP conversion. I ask you if you plan to import this tool into OpenJUMP. Regards Peppe -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Label Bug in 1.4
Hi Uwe, This change is mine. Sorry I broke compatibility with old projects, but I didn't see a way to prevent that and still add vertical alignment to polygon text. The capability is nice for labeling buildings. I was able to reproduce the bug about reverting to Above Line. Should be an easy fix. There does need to be some cleanup of the text in the dialog. regards, Larry On Fri, Nov 19, 2010 at 3:37 AM, Uwe Dalluege uwe.dallu...@hcu-hamburg.dewrote: Hi, there is a bug with Change StylesLabels in OJ 1.4: 1. Draw a polygon. 2. Label the polygon with Change StylesLabels The ComboBox for Vertical alignment (for points and lines) shows Above Line 3. The text is *outside* of the polygon (In older versions of OJ it is inside!) 4. Change Vertical alignment... to On line The text is now inside the polygon. (By the way the word line starts with small letters but Above Line and Below Line starts with capital letters). 5. Switch to Change StylesRendering. 6. Switch back to Labels and the Vertical alignment switched to Above Line and the text of the polygon is *outside* again! The Labels-Tool does not remember the last choise and the Vertical alignment works also with polygons so my old project was wrong labeld (The text stood outside)! Regards Uwe -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] R: OJ 1.4 stops loading at sextante plugin
Oops! Hope I didn't remove your justification for going to Argentina. 8-) On Thu, Oct 28, 2010 at 2:40 PM, Larry Becker becker.la...@gmail.comwrote: Hi Stefan, Use Google translate: http://translate.google.com/translate?hl=ensl=estl=enu=http%3A%2F%2Fosgeo-org.1803224.n2.nabble.com%2FProblemas-instalacion-sextante-en-ubuntu-9-10-td4342122.html regards, Larry On Thu, Oct 28, 2010 at 1:54 PM, Stefan Steiniger sst...@geo.uzh.chwrote: btw. on MacOSX I have the same problems (win runs fine). someone who knows spanish can tell me if the gvSIG guys found a solution? http://osgeo-org.1803224.n2.nabble.com/Problemas-instalacion-sextante-en-ubuntu-9-10-td4342122.html (maybe a bit more googling) -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] new uploaded OJ 1.4.0.1
Thanks to you, Michaël for your contributions and tireless bug fixing. I know I haven't been much help lately. It is my busy season at work. :-) Larry 2010/10/27 Michaël Michaud michael.mich...@free.fr Hi, Kudos to Stefan for this big release. Thanks a lot for the work you've done. I'm sure this new OJ 1.4 will reach Argentina before you ;-) Thanks also to Ede for his work on new plugins, starting scripts and documentation, and to all contributors who helped making this new version simply better than the last one. Michaël Le 27/10/2010 07:53, Stefan Steiniger a écrit : Hei all, yesterday I discovered a bug with the raster tools sextante when testing with my home range analysis toolbox. It turned out that... - if I call a function in sextante that produces a raster A (e.g. density (Kernel) - radius 100m for a point dataset) and then use another function to create a raster B (e.g. density (Kernel) - radius 500m) - then the data obtained for raster A are not correct (e.g. if I convert the raster into a polygon grid or change the colors); and where taken instead for some reason from B (could not really figure why). The issue did actually not occur when I just loaded rasters and then converted them to polygon grids. I assume the bug was introduced when I tried to separate raster data and raster image/display or fixed the raster-copy/paste bug (because an intermediate version 1.3.2 was working with my toolbox). However as the bug is critical (i.e. makes working with Sextante un-reliable). I decided to do a new 1.4.0.1 release tonight. The version number when starting OJ should reflect that. sorry for that, and I hope everyone agrees on my decision. (I just want to get it done before I leave on Saturday to Argentina) stefan -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Some thought about menus for future realizes (better if on OJ 1.4)
Isn't there a way of breaking context menus up to several columns, like windows does? Maybe java already delivers this in some way? Sure. I did that to organize this menu in SkyJUMP.You need to move at least 3 to a submenu to make it worth while. It might be enough to move 4 items to the Layer menu, if there is room there. Larry On Wed, Oct 27, 2010 at 8:51 AM, edgar.sol...@web.de wrote: On 27.10.2010 15:09, Giuseppe Aruta wrote: That's why I ask the possibility to reduce the number of menus on Layer trees, either moving them to similar menu (see image loader to Layer menu) or adopting one or more submenus. Isn't there a way of breaking context menus up to several columns, like windows does? Maybe java already delivers this in some way? ..ede -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Some thought about menus for future realizes (better if on OJ 1.4)
Sure. See: http://skyjump.cvs.sourceforge.net/viewvc/skyjump/skyjump/com/isa/jump/plugin/ToggleVisiblityPlugIn.java?view=log http://skyjump.cvs.sourceforge.net/viewvc/skyjump/skyjump/com/isa/jump/plugin/TurnVisiblityOffPlugIn.java?view=log http://skyjump.cvs.sourceforge.net/viewvc/skyjump/skyjump/com/isa/jump/plugin/TurnVisiblityOnPlugIn.java?view=log Here is a snippet: public void initialize(PlugInContext context) throws Exception { WorkbenchContext workbenchContext = context.getWorkbenchContext(); FeatureInstaller featureInstaller = new FeatureInstaller(workbenchContext); JPopupMenu layerNamePopupMenu = workbenchContext.getWorkbench() .getFrame() .getLayerNamePopupMenu(); featureInstaller.addPopupSubmenuItem(layerNamePopupMenu, this, Visibility, Turn On, false, null, null); JPopupMenu wmsLayerNamePopupMenu = workbenchContext.getWorkbench() .getFrame() .getWMSLayerNamePopupMenu(); featureInstaller.addPopupSubmenuItem(wmsLayerNamePopupMenu, this, Visibility, Turn On, false, null, null); } Larry On Wed, Oct 27, 2010 at 8:59 AM, Edgar Soldin ed...@soldin.de wrote: On 27.10.2010 15:56, Larry Becker wrote: Isn't there a way of breaking context menus up to several columns, like windows does? Maybe java already delivers this in some way? Sure. I did that to organize this menu in SkyJUMP.You need to move at least 3 to a submenu to make it worth while. It might be enough to move 4 items to the Layer menu, if there is room there. Can you pinpoint a place in the sourcecode of skyjump? ..ede -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] R: Bug in labeling: display symbol position
Hi Arnd, Beautiful explanation of a difficult problem. The pdf explains the problem very well. Unfortunately I don't have the knowledge of font glyphs and typography needed to fix the problem. I suspect a workaround exists with the right font-creation technique. regards, Larry On Wed, Oct 20, 2010 at 10:18 AM, Giuseppe Aruta giuseppe_ar...@yahoo.itwrote: Hi Arnd, as far as I remember we had a discuss some month ago about. This is a resume of all the discussion http://www.mail-archive.com/jump-pilot-devel@lists.sourceforge.net/msg07592.html See also this page: http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Using_Your_Own_%28Geologic%29_Symbology I hope this can help Peppe --- *Mer 20/10/10, Arnd Kielhorn a.kielh...@gmx.de* ha scritto: Da: Arnd Kielhorn a.kielh...@gmx.de Oggetto: [JPP-Devel] Bug in labeling: display symbol position A: jump-pilot-devel@lists.sourceforge.net Data: Mercoledì 20 ottobre 2010, 11:10 Hello, Stefan asked me to post this thread into the developer mailing list. He would do it but he is just in trouble and so he asked me to do it. It is a report ot bug request from a engineer office. They often use Openjump for GIS work. To produce exact layouts it is important to get correct effects from the labeling functions of OJ. But they found out that the behauviour of labeling OJ is not exact. So the point were OJ inserts a symbol or character is not exact the same were the point feature is. As an example which shows the uncorrect behaviour very clearly they sent an OJ task (see also the PDF). For that example the created three variations of the same symbol (one with a quadrate borderline, one without any concomitant lines or points, one with extremly small rectangles in the bottom left and in the top right) which one end should take place at the position of the point feature. The symbol itself always have the same size, same position and the same dimensions. But the labeling effect is different as You can see in the PDF. It means that the position from the symbol depends on concomitant elements but the position from the symbol to the point feature should allways the same. I hope You can understand my explanation in my poorly english. Otherwise I have to try explain it in another way... Kindly regards Arnd -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail -Segue allegato- -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev -Segue allegato- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.nethttp://mc/compose?to=jump-pilot-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Saving a layer with empty geometries into shapefiles
Hi Michaël, If you use Save Selected Datasets, OJ already breaks out shapefile layers into mutiple files. regards, Larry 2010/10/8 Michaël Michaud michael.mich...@free.fr Hi, Agree with Matthias, there are two things. I would consider first one as a OJ bug. OJ could export empty geometries as null shapefiles but it does not (I will fill a bug report). For the mixed shapetype problem, I'm tempted to write a feature request but I'm not sure what I would prefer : - a shapefile exporter which would export mixed shape files in several files (layer-point.shp, layer-line.shp...) - use the EditExtractExtract by geometry type, add an ExportLayersPlugIn able to export several layers without prompting for names Any idea ? Michaël Le 07/10/2010 15:07, Matthias Scholz a écrit : Hi Jukka, I've never used this plugin, but I know this problems with empty schapefiles. In the first case with no geometries it is impossible to determine the geometry type, which is usualy done from a geometry. The geometry type is mandatory for writing a schapefile. Byte 32 in the header is the type field. A solution for such a problem may be a JComboBox to get a valid type from the user or write the shapefile with type 0 Null Shape. Later if we have real geometries in the file we can change the type field in the header. Don't know if other systems have problems with Null Shape files? The second problem with mixed geometries is a design problem of shape fiiles. At the moment are only one geometry type in one file allowed. It's possible that this will be changed in the future. So I see two solutions. Frist you use Edit-Extract-Extract Layers by Geometry Type and save all the layers manualy. The second possibillity is that we extend the ShapefileWriter for splitting this automatically. You can read this in the specs http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf. See page 4 and 5. Matthias Hi, JUMP DB Query plugin http://jumpdbqplugin.sourceforge.net/ used to create a little polygon as a fake geometry for all the lines which the SQL query was returning without a geometry. Now the new versions of the plugin, starting from version 0.7.2. are creating an empty geometry as GEOMETRYCOLLECTION EMPTY. This works fine as long as I am working with OpenJUMP and also saving into JUMP jml format goes OK. But saving into shapefiles gives problems and I have not discovered how I could keep the important attribute data that I have also for the features without geometry. If there are no other geometries on the layer, the OJ message while doing shapefile save is java.lang.Exception: Could not determine shapefile type - data is either all GeometryCollections or empty at com.vividsolutions.jump.io.ShapefileWriter.makeSHAPEGeometryCollection(ShapefileWriter.java:728) at com.vividsolutions.jump.io.ShapefileWriter.write(ShapefileWriter.java:295) at com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.executeUpdate(ReaderWriterFileDataSource.java:72) at com.vividsolutions.jump.workbench.datasource.AbstractSaveDatasetAsPlugIn.run(AbstractSaveDatasetAsPlugIn.java:33) at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151) at java.lang.Thread.run(Unknown Source) If there are also real geometries then the message is om.vividsolutions.jump.io.IllegalParametersException: mixed geometry types found, please separate Polygons from Lines and Points when saving to *.shp at com.vividsolutions.jump.io.ShapefileWriter.checkIfGeomsAreMixed(ShapefileWriter.java:639) at com.vividsolutions.jump.io.ShapefileWriter.write(ShapefileWriter.java:253) at com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.executeUpdate(ReaderWriterFileDataSource.java:72) at com.vividsolutions.jump.workbench.datasource.AbstractSaveDatasetAsPlugIn.run(AbstractSaveDatasetAsPlugIn.java:33) at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151) at java.lang.Thread.run(Unknown Source) Is it possible to save things without geometries into shapefiles at all? It is easy to generate test data, just create a new layer and insert a new WKT feature as GEOMETRYCOLLECTION EMPTY and try to save the layer. Next digitise a point, for example, on the layer, and try saving again. -Jukka Rahkonen- -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb
Re: [JPP-Devel] Translation question
I recommend you check out https://prbeditor.dev.java.net/ if you haven't already. It makes the job of editing multiple language files easy. regards, Larry On Wed, Sep 15, 2010 at 8:47 AM, Matthias Scholz m...@jammerhund.de wrote: Hi, one small question about translation in OJ. Which file must I modify? And should I add new keys in all language files? I'm not sure if I'm right. Before I commit my next changes, it would be nice if anyone can give a hint. Regards Matthias -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Charset choise
Hi Stefan, Having one charset choice doesn't support multiple charsets per project as the current method does. I'm not sure how often this happens, but it isn't too unusual to use datasets from multiple sources. Instead of commenting out the dialogs, it might be better to have a workbench blackboard option to skip them and use the default instead. Surely we are all going to run into an Umlaute or similar in our data eventually. regards, Larry On Wed, Sep 8, 2010 at 6:54 PM, Stefan Steiniger sst...@geo.uzh.ch wrote: I like the charset choice, thanks Matthias. However, I wonder what users feel having every time to chose (even it is only one more click) and probably not knowing what it means. So one thought I had is to comment out the dialog call and put the dialog options in (a new?) options tab instead and store it the blackboard? Then the currently set value is read while loading the shp (i.e. exposing the option in a different way to the user). I know its additional work but may be more user friendly for those who never care about charsets and have to load quite a bit of data during a day? Like I do ;) Actually my co-worker just suggested the option to have a checkbox for the additional dialog asking Do you want to use that value every time. so it doesn't pop up all the time during one session. my 2 cents... stefan Michaël Michaud wrote: Hi Matthias, Can you give me some information about how it is supposed to work. Am I supposed to get a panel with a charset option for any shapefile loading ? Sorry for that question, I did not launch the new compiled version. I know get the charset choice dialog. Thanks, Michaël 2) if we want to keep java 5 compatibility, you have to use new String(byte[], int, int, String) instead of new String(byte[], int, int, Charset) on line 264 3) about your proposition of saving the charset in the project when different from default jvm charset : Seems a good idea to me. Michaël Le 03/09/2010 20:34, Matthias Scholz a écrit : Hi, sorry my mistake. I have it only tested with open and open recent ;-) In the SVN it is fixed for the first time, but there is a general question and I want to hear the other developers/users. If I open a shapefile with a special charset setting for the first time, it would be logic for me, if we save the charset setting for this file in the project. So if the user opens this file again with the project, the file will be opened with the same charset. Should I implement this or have anyone an other suggestion? Regards Matthias Nice feature, but it is going to take a little more work. It currently breaks shapefile loading from a project file and the lright-click on layer legacy method Load Dataset. I think you need to set a default charset on start up. regards, Larry java.lang.IllegalArgumentException: Null charset name at java.nio.charset.Charset.lookup(Charset.java:430) at java.nio.charset.Charset.forName(Charset.java:503) at com.vividsolutions.jump.io.ShapefileReader.read(ShapefileReader.java:137) at com.vividsolutions.jump.io.datasource.DelegatingCompressedFileHandler.read(DelegatingCompressedFileHandler.java:79) at com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.executeQuery(ReaderWriterFileDataSource.java:61) at com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.executeQuery(ReaderWriterFileDataSource.java:79) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.executeQuery(OpenProjectWizard.java:282) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.load(OpenProjectWizard.java:271) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.loadLayers(OpenProjectWizard.java:208) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.open(OpenProjectWizard.java:152) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.open(OpenProjectWizard.java:107) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.run(OpenProjectWizard.java:99) at org.openjump.core.ui.plugin.AbstractWizardPlugin.run(AbstractWizardPlugin.java:71) at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151) at java.lang.Thread.run(Thread.java:619) On Fri, Sep 3, 2010 at 4:46 AM, Matthias Scholzm...@jammerhund.de mailto:m...@jammerhund.de wrote: Hi, I've commited some little changes for selecting an other charset while opening an ESRI shapefile. Thank you Michael and Stefan for your hints to the wizard framework. Thereby the code changes was very small and consitent :-) On the other hand Michael is right with his opinion about the wizard framework. Without good documentation you need many hours to understand and
Re: [JPP-Devel] question about getUltimateWrappee()
This code has always been wrapped in a mystery to me. Larry On Wed, Sep 8, 2010 at 6:57 PM, Stefan Steiniger sst...@geo.uzh.ch wrote: me neither I think you need to ask Jon Aquino or Martin Davis about this ;) stefan Michaël Michaud wrote: Hi Kevin, The FeatureCollectionWrapper.getUltimateWrappee() looks like this: public FeatureCollection getUltimateWrappee() { FeatureCollection currentWrappee = fc; while (currentWrappee instanceof FeatureCollectionWrapper) { currentWrappee = ((FeatureCollectionWrapper) currentWrappee).fc; } return currentWrappee; } Is there a reason line 66 references .fc directly instead of .getWrappee() ? I have no idea. Did you try to find calls to this method in the whole source tree ? Maybe also worthwhile to check in WFS plugin or other plugins which could use caching if this method is called. Michaël For me this currently returns the wrong answer. In the case of a CachingFeatureCollection, there are actually two FeatureCollections: the actual wrapped FC and a cached FC (a potentially small subset of the wrapped FC). So, in this case, .fc references the cached FC, which is not the FC I'm actually after. I've overridden CachingFeatureCollection.getWrappee() in a custom variant to return the actual wrapped FC, which in my case is a custom DataStoreFeatureCollection that mimics a database table, not the cached FC subset. -- Kevin -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] zooming to the last extent opening a project
Hi Nils, OJ has had the capability to restore the view at the time the project was saved since February this year. See JUMPWorkbench.main(). regards, Larry On Tue, Sep 7, 2010 at 11:47 AM, Nils Kuhn nils.k...@bws-gmbh.de wrote: Hi all, I am writing the extent of the viewport of the LayerViewPanel to a project-file while exiting OJ. For setting the viewport to this extent again while opening that project I added a function zoomToLastLocation to the class com.vividsolutions.jump.workbench.ui.plugin.OpenProjectPlugIn. That method I am calling from method initialize in class com.vividsolutions.jump.workbench.ui.plugin.FirstTaskFramePlugIn. Everything works fine but after zooming to the last extent from the project-file the viewport changes to the full extent of all loaded layers again. Could anybody tell me where that's coded? Regards Nils -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] wishlist
Hi Kevin, I had a look at your patch. It looks pretty good to me. Nice addition! regards, Larry On Thu, Sep 2, 2010 at 12:31 AM, Kevin Neufeld kneuf...@refractions.netwrote: Hi Stefan, You're right, I once did have write access to the old JUMP ... that was a long time ago. I'm surprised you remembered :) Sure, if you're willing, I wouldn't mind having access again. I'm not planning on any major core contributions, but in my spare time as I'm working on various plugins, I occasionally come across some minor things that could get cleaned up. I agree that commits to the core should first have the eyes of those that know the code inside and out. So, if you're willing, my account is kdneufeld. Have a good trip, Stefan! -- Kevin On 9/1/2010 8:58 PM, Stefan Steiniger wrote: Hei Kevin, do you want SVN write access? so this way we do not need to sent patches around, and I think you did already a couple of contributions (on the good old JUMP-cvs before it was gone. So there would be no concern about your skills ;) However, if core features are concerned we usually have Larry or Michael testing it before a commit is done. (sorry guys, but indeed Larry and Michael are THOSE who know and have the skill ;) For giving you write access we (Michael, Landon or I) would need your SourceForge account login name - thats all. stefan Kevin Neufeld schrieb: That is the thing with opensource development, eh? :) Development resources are always tight. I just added a patch for review to the feature tracker for my primary issue. http://sourceforge.net/tracker/index.php?func=detailaid=3057748group_id=118054atid=679909 The patch - adds a readonly attribute to a FeatureSchema attribute - uses the attribute in the LayerTableModel to set if a cell is editable - shades cells in the AttributeTablePanel that are non-editable to light gray. I don't know what OJ uses for a testing harness, but preliminary testing looks good. I programmatically added a layer and set one of the schema attributes as read-only. The other issues I mentioned are not a big concern for me at all (just a wishlist) and I no plans to address them any time soon. -- Kevin On 9/1/2010 1:34 PM, Michaël Michaud wrote: Hi Kevin All your propositions seem reasonnable and valuable for OpenJUMP. As Stefan said, the main problem is development resources. I cannot evaluate precisely the work to do without a deeper look, but it concerns core classes and will need caution and tests. Are you volonteer to develop these features ? Michaël Le 01/09/2010 20:15, Kevin Neufeld a écrit : Stefan mentioned that there isn't a road map for OJ, but is there a place to jot down improvement ideas? Here are a couple on my wishlist: 1) The ability to specify which columns are editable in an layer's attribute table. Right now, the FID and geometry column are hard-coded as being the only columns that are not editable. I would like to see this driven off the layer's FeatureSchema. Perhaps there could be a isAttributeReadOnly(int attributeIndex) method added to the FeatureSchema that could be used in LayerTableModel.isCellEditable(int rowIndex, int columnIndex). Primary key attributes that belong to a DynamicFeatureCollection driven off a database is one example of a non-editable column. 2) The ability to customize the tooltips for previously installed plugins on a layer's right click context menu. For example, I could have a custom implementation of a Layer that is backed by a custom FeatureCollection. If I mark the layer as readonly, the Editable menu item is correctly greyed-out. The tooltip says something like This layer cannot be made editable. The menu item is greyed-out ... obviously it's not editable. I would like to change the tooltip to explain *why* the menu item is greyed-out ... which is particular to my custom FeatureCollection. IE. No Primary Key found on the underlying database table Adhoc queries cannot be made editable SQL Server DataStores cannot currently be made editable 3) A new UpdatablePlugIn interface with methods like getPluginVersion(), getPluginURL(). All implementations of the interface could be listed in the extensions tag in the About window. A user could choose to update a selected plugin where a new plugin jar and all the jar's dependencies would automatically download, available upon application restart. I know, I know. This would require a huge framework and lots of developer time, but it sure would be nice to have. Cheers, -- Kevin -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd
Re: [JPP-Devel] Improving OpenJUMP styling
Hi Jukka, As usual you make excellent suggestions. See my comments below. On Wed, Aug 11, 2010 at 4:08 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, I was thinking that now when Matthias and Larry have been working with selection styles it might be good to collect a list about things in OpenJUMP styling which do not work or work in somehow irritating way. I can start with couple of issues: - Colour theming option creates all the new classes with the default styles. Each theme will then have both the fill and line rendering selected, colours are synchronised, and line width is 1. However, I would rather see the classifier to take the defaults from the Rendering tab so I could set for example the line width somehow bigger for all the classes. Usually it would mean less manual fine tunign this way. This seem reasonable to me. I have wished for the same thing. - It seems to be impossible to show vertises on classified layers. There is no user interface for that in the Colour Theming-Custom and defaults are not taken from the main Rendering tab. This and the previous request can probably be done by updating the UI dialog. - The above issue, I think, makes it impossible to use colour theme on point layers. Or it is possible, OpenJUMP is doing the classification, but all the points are still rendered with the same colour. I need to look into this one. - Custom dialogue for a classified layer shows also Transparency slider. However, it is affecting all the classes and not only the selected one. It might be better to remove the slider from the Custom dialogue. There is another slider on the main Colour Theming tab and also the transparency slider on the main Rendering tab can be used. Actually the use of both could be possible if the one that affects all is proportional as in Layer properties. - There is a little issue with the polygon styling. If I create a new layer with OpenJUMP and draw a polygon, and next select to show vertices option from the Rendering tab, as a result ONLY the vertices are shown but the outline and fill disapper. It took me a long time to discover that this happens only if a layer does not have any attribute fields in its schema. It is enought to insert one attribute field into the schema to correct the rendering. Attribute field can be empty for all the features, it does not matter. Sounds like a bug. To start a wishlist for the future, QGis New symbology option gives a possibity to build easily multi-layer or multi-stroke symbols. Something like that would by nice to have in OpenJUMP also. For example a road with red fill, black borders and black dottet centre line could be constructed by piling up a wide black line, a narrover red line and a most narror black dottet line on top. For point layers even such a simple style than big coloured circle and a small insert with another colour can make the map much more easier to read. It is possible to augment the existing style with another tab that would allow an additional overlay. GGis User manual http://download.osgeo.org/qgis/doc/manual/qgis-1.4.0_user_guide_en.pdfha s something about New Symbology option in chapter 5.4.3. Working with the New Generation Symbology On manual page 54, Figure 16, (a) Line composed from three simple lines may give an idea about multi-layer symbols. -Jukka Rahkonen- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Improving OpenJUMP styling
The display of vertises on themed layers works for me. Point colour theming works too. Transparency turns out to be implemented on a per layer basis. I did verify the polygon layer without attribute vertex bug. Larry On Wed, Aug 11, 2010 at 8:47 AM, Larry Becker becker.la...@gmail.comwrote: Hi Jukka, As usual you make excellent suggestions. See my comments below. On Wed, Aug 11, 2010 at 4:08 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I was thinking that now when Matthias and Larry have been working with selection styles it might be good to collect a list about things in OpenJUMP styling which do not work or work in somehow irritating way. I can start with couple of issues: - Colour theming option creates all the new classes with the default styles. Each theme will then have both the fill and line rendering selected, colours are synchronised, and line width is 1. However, I would rather see the classifier to take the defaults from the Rendering tab so I could set for example the line width somehow bigger for all the classes. Usually it would mean less manual fine tunign this way. This seem reasonable to me. I have wished for the same thing. - It seems to be impossible to show vertises on classified layers. There is no user interface for that in the Colour Theming-Custom and defaults are not taken from the main Rendering tab. This and the previous request can probably be done by updating the UI dialog. - The above issue, I think, makes it impossible to use colour theme on point layers. Or it is possible, OpenJUMP is doing the classification, but all the points are still rendered with the same colour. I need to look into this one. - Custom dialogue for a classified layer shows also Transparency slider. However, it is affecting all the classes and not only the selected one. It might be better to remove the slider from the Custom dialogue. There is another slider on the main Colour Theming tab and also the transparency slider on the main Rendering tab can be used. Actually the use of both could be possible if the one that affects all is proportional as in Layer properties. - There is a little issue with the polygon styling. If I create a new layer with OpenJUMP and draw a polygon, and next select to show vertices option from the Rendering tab, as a result ONLY the vertices are shown but the outline and fill disapper. It took me a long time to discover that this happens only if a layer does not have any attribute fields in its schema. It is enought to insert one attribute field into the schema to correct the rendering. Attribute field can be empty for all the features, it does not matter. Sounds like a bug. To start a wishlist for the future, QGis New symbology option gives a possibity to build easily multi-layer or multi-stroke symbols. Something like that would by nice to have in OpenJUMP also. For example a road with red fill, black borders and black dottet centre line could be constructed by piling up a wide black line, a narrover red line and a most narror black dottet line on top. For point layers even such a simple style than big coloured circle and a small insert with another colour can make the map much more easier to read. It is possible to augment the existing style with another tab that would allow an additional overlay. GGis User manual http://download.osgeo.org/qgis/doc/manual/qgis-1.4.0_user_guide_en.pdfha s something about New Symbology option in chapter 5.4.3. Working with the New Generation Symbology On manual page 54, Figure 16, (a) Line composed from three simple lines may give an idea about multi-layer symbols. -Jukka Rahkonen- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Label Bold Error
Could you show a picture of the problem and the style dialog that caused it? Larry 2010/8/10 greateme great...@163.com Hello Yesterday, I discovered the use of OpenJump an exception. When I modify the line element of style, the mark was set on taking the default setting is normal, but when I set the font to bold Shique appeared abnormal, the interface shows the label font size of the disorder appeared . I want to know what causes this is because, when I downloaded source view, the feeling seems to be caused Graphics2D object. Hope to get your advice, thank you! -- 您想拥有和网易免费邮箱一样强大的软件吗? http://qiye.163.com/?163 -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Selectionstyle Patch
Hi Matthias, The code does indeed look much more efficient, however it still doesn't default to the old selection behavior, so I'm not sure how users outside your organization are going to react to the change. I don't like it as well as the current method which outlines the handles. Also there seems to be a problem with point selection feedback. Selected points just seem to disappear for me. regards, Larry On Fri, Jul 30, 2010 at 11:34 AM, Matthias Scholz m...@jammerhund.de wrote: Hi, please can Larry or any other check my modifications again? Now I've solved the problem that the previous saved settings are restored from blackboard. The modifications in the AbstractSelectionRenderer should now smart enough, so that we have no performance problems and can set the properties with setter methods. It would be nice and important for my users if we can integrate the patch in the upcoming release. Regards Matthias Hi Larry, please see the attached file. There is one problem at the moment. After loading a file or project the AbstractSelectionRenderer use the default settings. So you must go to the options an click OK in the SelectionStyllingOptionsPanel. This is because during construction of the SelectionStyllingOptionsPanel instance there is no LayerViewPanel instance an so on no RenderingManager available. Is there a Listener which is fired if the RenderingManager is available or if a layer was added or a file was loaded??? Regards Matthias Hi Matthias, I'm pretty sure that the right place to add setSelectionLineColor, setSelectionPointSize and setSelectionPointForm is AbstractSelectionRenderer since that is where the associated variables are declared. You will have to remove /final /from HANDLE_WIDTH. The real trick is getting the reference to FeatureSelectionRenderer to use the sets. I think this can be done with RenderManager by passing FeatureSelectionRenderer.CONTENT_ID.toRenderManager.getRenderer(). regards, Larry On Sun, Jul 11, 2010 at 7:58 AM, Matthias Scholz m...@jammerhund.demailto: m...@jammerhund.de wrote: Hi Larry, can we do the following? - add some setSelectionLineColor, setSelectionPointSize and setSelectionPointForm to com.vividsolutions.jump.workbench.ui.renderer.Renderer interface - implement simple setter in com.vividsolutions.jump.workbench.ui.renderer.FeatureCollectionRenderer, wich is the parent of AbstractSelectionRenderer which is the parent of FeatureSelectionRenderer, SelectionBackgroundRenderer, PartSelectionRenderer, LineStringSelectionRenderer - change the AbstractSelectionRenderer for using this variables while paint() - in a PlugIn in the OptionsPanel I can get the Renderer with context.getLayerViewPanel().getRenderingManager().getRenderer() call and the I can change the values whith the setter I'm not sure if the Renderer interface is the right place for the setter methods??? Please tell me your opinion, before I start. Any other suggestions are welcome! Regards Matthias I don't see an obvious solution. For one thing, it is unclear how your plugin would affect the interoperability of SelectionBackgroundRenderer, PartSelectionRenderer, and LineStringSelectionRenderer which uses constructors to select different feedback mechanisms. Larry On Sun, Jun 27, 2010 at 3:00 PM, Matthias Scholz m...@jammerhund.de mailto:m...@jammerhund.de mailto:m...@jammerhund.de mailto:m...@jammerhund.de wrote: Hi Sunburned Surveyor and Larry, sorry for my late reply, but i had no time to code last week :-( I agree with Larry's remarks. My question went toward the concrete implementation, as I currently do not have enough knowledge about the internals of OJ. At the beginning I would to build a plugin, but I do not know how to tell the AbstractSelectionRenderer, how he should render with my settings or with the old default one. So actually I have no idea how to integrate the plugin in the rendering process? At this point I need your help. I hope you understand my terrible english ;-) Matthias I haven't looked at the code Mathias provided. It sounds like Larry's provided some great comments. I hope the changes can be made so Mathias code can be integrated. If Mathias needs help making the mods Larry has suggested, he can let me know. The Sunburned Surveyor On Mon, Jun 21, 2010 at 6:28 AM, Larry Becker becker.la...@gmail.com mailto:becker.la...@gmail.com mailto:becker.la...@gmail.com mailto:becker.la...@gmail.com wrote: Hi Matthias, My concern about code efficiency
Re: [JPP-Devel] svn website
Try https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/core/trunk. My project folder is 150MB including .class files. Larry On Thu, Aug 5, 2010 at 7:42 AM, Mohammed Rashad mohammedrasha...@gmail.comwrote: svn pull from subclise gives a project of size more than 500 MB Which source to use svn checkout or http://sourceforge.net/projects/jump-pilot/files/OpenJUMP/1.3.1/openjump-src-1.3.1.ziphttp://sourceforge.net/projects/jump-pilot/files/OpenJUMP/1.3.1/openjump-src-1.3.1.zip/download http://sourceforge.net/projects/jump-pilot/files/OpenJUMP/1.3.1/openjump-src-1.3.1.zip/downloadfor openjump development On Thu, Aug 5, 2010 at 3:04 PM, Mohammed Rashad mohammedrasha...@gmail.com wrote: https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot Is this the correct svn url to pull opnjump using subclise sorry for asking these silly question because I am newbie On Thu, Aug 5, 2010 at 12:22 PM, Matthias Scholz m...@jammerhund.dewrote: http://sourceforge.net/projects/jump-pilot/develop will you please post the svn checkout link On Thu, Aug 5, 2010 at 11:19 AM, Matthias Scholz m...@jammerhund.de mailto:m...@jammerhund.de wrote: Hi Mohammed! How to checkout latest svn of openjump for developing openjump. Can I use eclipse to develop openjump? Please check the Developer Docs http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Developer_Documentation_and_HowTo Here you can find some information. Most of the developers use Eclipse, but Netbeans is possible too. Does openjump.org http://openjump.org http://openjump.org site is down? No problems with the site from germany. Matthias I would like to develop openjump. Can anyone please provide me with some details. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net mailto:Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net mailto:Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] runtime error
You may need to find a workaround. DecimalDV is probably a sun class that is not open. On Thu, Aug 5, 2010 at 10:27 AM, Mohammed Rashad mohammedrasha...@gmail.com wrote: I am using ubuntu 10.04 my java version is openjdk-6-jre On Thu, Aug 5, 2010 at 8:03 PM, Sunburned Surveyor sunburned.surve...@gmail.com wrote: I believe rt.jar is the main library for the JRE/JDK. What operating system and version of Java are you running? I think this is an environment problem and not an OJ problem. The Sunburned Surveyor On Thu, Aug 5, 2010 at 6:43 AM, Mohammed Rashad mohammedrasha...@gmail.com wrote: I had checked out from openjump from https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/core/trunk. i had added all jar files in lib after adding and running i got this error how to solve this? java.lang.Error: Unresolved compilation problem: Access restriction: The type DecimalDV is not accessible due to restriction on required library /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar at com.vividsolutions.jump.workbench.ui.plugin.clipboard.PasteItemsPlugIn.init(PasteItemsPlugIn.java:48) at com.vividsolutions.jump.workbench.JUMPConfiguration.init(JUMPConfiguration.java:253) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:253) -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] runtime error
Because openjdk cannot include proprietary sun code, you may occasionally find classes that have not been ported. Is there some particular reason that you chose to use openjdk rather than sun java? Larry On Thu, Aug 5, 2010 at 10:32 AM, Mohammed Rashad mohammedrasha...@gmail.com wrote: It didnt get you. what workaround? will you please elobarate. On Thu, Aug 5, 2010 at 9:01 PM, Larry Becker becker.la...@gmail.comwrote: You may need to find a workaround. DecimalDV is probably a sun class that is not open. On Thu, Aug 5, 2010 at 10:27 AM, Mohammed Rashad mohammedrasha...@gmail.com wrote: I am using ubuntu 10.04 my java version is openjdk-6-jre On Thu, Aug 5, 2010 at 8:03 PM, Sunburned Surveyor sunburned.surve...@gmail.com wrote: I believe rt.jar is the main library for the JRE/JDK. What operating system and version of Java are you running? I think this is an environment problem and not an OJ problem. The Sunburned Surveyor On Thu, Aug 5, 2010 at 6:43 AM, Mohammed Rashad mohammedrasha...@gmail.com wrote: I had checked out from openjump from https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/core/trunk. i had added all jar files in lib after adding and running i got this error how to solve this? java.lang.Error: Unresolved compilation problem: Access restriction: The type DecimalDV is not accessible due to restriction on required library /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar at com.vividsolutions.jump.workbench.ui.plugin.clipboard.PasteItemsPlugIn.init(PasteItemsPlugIn.java:48) at com.vividsolutions.jump.workbench.JUMPConfiguration.init(JUMPConfiguration.java:253) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:253) -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] georecify
If what you want to do is use OpenJUMP as a font end to gdalwarp, it isn't really all that difficult. I recommend using the command line utility: http://www.gdal.org/gdalwarp.html . You can find the OJ support classes to launch external programs at: org.openjump.core.ui.plugin.customize.CmdRunner. Larry On Thu, Aug 5, 2010 at 3:55 PM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote: Hi, QGis has a pretty nice georeferencer plugin. If you do not have a very special reason or just a burning desire to implement the same functionality into OpenJUMP I would recommend you to use QGis for georeferencing and use the same amount of programming work for developing something original into OpenJUMP. Improving the new live GPS plugin would be my favourite. In any case have at least a look at QGis georeferencer. GvSIG has a georeferencer as well but I have not tried it myself yet. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: Mohammed Rashad [mailto:mohammedrasha...@gmail.com] Lähetetty: to 5.8.2010 17:31 Vastaanottaja: OpenJump develop and use Aihe: Re: [JPP-Devel] georecify I need to read raster data and to develop a georectify plugin for openjump On Thu, Aug 5, 2010 at 7:59 PM, Sunburned Surveyor sunburned.surve...@gmail.com wrote: Mohammed, OpenJUMP doesn't currently wrap GDAL, if that is what you mean. OJ is written in Java, and GDAL in C or C++. So that makes things a little tricky. As far as I know, OpenJUMP does not have a georectifying plug-in. The Sunburned Surveyor On Thu, Aug 5, 2010 at 3:52 AM, Mohammed Rashad mohammedrasha...@gmail.com wrote: Hi all, Does openjump support or read gdal format datas? Is there any tools for georectify raster maps?. If no I am planning to create a georectify plugin. -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Selectionstyle Patch
Hi Matthias, Sorry I've been unable to get back to you. I have been on travel, both vacation and business, but I should be able to get back to my normal schedule sometime next week. regards, Larry On Fri, Jul 30, 2010 at 11:34 AM, Matthias Scholz m...@jammerhund.de wrote: Hi, please can Larry or any other check my modifications again? Now I've solved the problem that the previous saved settings are restored from blackboard. The modifications in the AbstractSelectionRenderer should now smart enough, so that we have no performance problems and can set the properties with setter methods. It would be nice and important for my users if we can integrate the patch in the upcoming release. Regards Matthias Hi Larry, please see the attached file. There is one problem at the moment. After loading a file or project the AbstractSelectionRenderer use the default settings. So you must go to the options an click OK in the SelectionStyllingOptionsPanel. This is because during construction of the SelectionStyllingOptionsPanel instance there is no LayerViewPanel instance an so on no RenderingManager available. Is there a Listener which is fired if the RenderingManager is available or if a layer was added or a file was loaded??? Regards Matthias Hi Matthias, I'm pretty sure that the right place to add setSelectionLineColor, setSelectionPointSize and setSelectionPointForm is AbstractSelectionRenderer since that is where the associated variables are declared. You will have to remove /final /from HANDLE_WIDTH. The real trick is getting the reference to FeatureSelectionRenderer to use the sets. I think this can be done with RenderManager by passing FeatureSelectionRenderer.CONTENT_ID.toRenderManager.getRenderer(). regards, Larry On Sun, Jul 11, 2010 at 7:58 AM, Matthias Scholz m...@jammerhund.demailto: m...@jammerhund.de wrote: Hi Larry, can we do the following? - add some setSelectionLineColor, setSelectionPointSize and setSelectionPointForm to com.vividsolutions.jump.workbench.ui.renderer.Renderer interface - implement simple setter in com.vividsolutions.jump.workbench.ui.renderer.FeatureCollectionRenderer, wich is the parent of AbstractSelectionRenderer which is the parent of FeatureSelectionRenderer, SelectionBackgroundRenderer, PartSelectionRenderer, LineStringSelectionRenderer - change the AbstractSelectionRenderer for using this variables while paint() - in a PlugIn in the OptionsPanel I can get the Renderer with context.getLayerViewPanel().getRenderingManager().getRenderer() call and the I can change the values whith the setter I'm not sure if the Renderer interface is the right place for the setter methods??? Please tell me your opinion, before I start. Any other suggestions are welcome! Regards Matthias I don't see an obvious solution. For one thing, it is unclear how your plugin would affect the interoperability of SelectionBackgroundRenderer, PartSelectionRenderer, and LineStringSelectionRenderer which uses constructors to select different feedback mechanisms. Larry On Sun, Jun 27, 2010 at 3:00 PM, Matthias Scholz m...@jammerhund.de mailto:m...@jammerhund.de mailto:m...@jammerhund.de mailto:m...@jammerhund.de wrote: Hi Sunburned Surveyor and Larry, sorry for my late reply, but i had no time to code last week :-( I agree with Larry's remarks. My question went toward the concrete implementation, as I currently do not have enough knowledge about the internals of OJ. At the beginning I would to build a plugin, but I do not know how to tell the AbstractSelectionRenderer, how he should render with my settings or with the old default one. So actually I have no idea how to integrate the plugin in the rendering process? At this point I need your help. I hope you understand my terrible english ;-) Matthias I haven't looked at the code Mathias provided. It sounds like Larry's provided some great comments. I hope the changes can be made so Mathias code can be integrated. If Mathias needs help making the mods Larry has suggested, he can let me know. The Sunburned Surveyor On Mon, Jun 21, 2010 at 6:28 AM, Larry Becker becker.la...@gmail.com mailto:becker.la...@gmail.com mailto:becker.la...@gmail.com mailto:becker.la...@gmail.com wrote: Hi Matthias, My concern about code efficiency is that this is a very low level routine in AbstractSelectionRenderer that is potentially called millions of times per session. Everything possible (like blackboard access and object
Re: [JPP-Devel] MeasureTool change
Hi, I have fixed this problem in SkyJUMP. Just need a little time to get back to my normal routine, and I'll take up some of these issues. Larry On Tue, Jul 20, 2010 at 7:09 PM, Stefan Steiniger sst...@geo.uzh.ch wrote: yes.. for bug report. I sometimes had the same feeling - i.e. that it doesn't snap. $ At least someone needs to check. Sunburned Surveyor schrieb: Thanks for the feedback Jukka. I definitely need to look into the problem you report about the measure tool not taking the current snap settings into account. This sounds like a bug to me. What do you guys think? Should we file a bug report? The Sunburned Surveyor On Sat, Jul 17, 2010 at 2:47 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I do not consider our measurement tools especially good at the moment, and the close-polygon change did not make it much better, if any. I know that there are different needs, but for what I am using length/area measurement tool I would like to have these features - Length measurement tool should show the total length and the length of the last leg, both in real time. - Area measurement tool should show the area and the perimeter of the measured area in real time. Length of the last leg would be a good addition. OJ measurement tool cannot show the length of the last leg, nor the perimeter of an area. It does show nice the angle of the last leg but this far I have not had any use for this feature. I also notised that the measurement tool gives faulty results if snapping to features is enabled. The measument tool is obviously using the mouse coordinates for calculations, but it does not update the coordinates if vertex gets snapped to something after mouse click. This is easy to demonstrate by showing the grid and activating the Snap to grid option and then measuring areas of some rectangular areas. I have been thinking that as an alternative for the ad-hoc measurement tool there could perhaps be another measurement tool would create automatically a special measurement layer somehow in a similar way than the note tool creates the Notes layer now. This way it could be possible to measure net areas and total perimeters of polygons with holes, measure several features, edit the measurements, show the results on screen as labels or under the tooltip etc. -Jukka Rahkonen- Matthias Scholz wrote: Hi Stefan, I agree you from your point of view (measure of lines), but my point of view was for measure of areas. So i think the measurement tool should be extended in the future. If I compare the OJ measure tool with other GIS, then I see some mistakes and possibilities to improve OJ. Matthias mhm.. don't know after testing (It's still committed) - but now people who want to measure line distance may be confused? any opinions by others? stefan Stefan Steiniger wrote: Hei, what would be the effect for you (area calculations?)? Will everything else still work? However, I committed it. Matthias Scholz wrote: Hi, is it possible, that anyone of the commiters can make the following little change in com.vividsolutions.jump.workbench.ui.cursortool.MeasureTool? Add setCloseRing(true); to the Constructor, so that the user see the closed polygon. Currently, some users of mine a little confused. Thank You Matthias -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Re: [JPP-Devel] Plug-In Reporting of Bad Features
Hi ss Are we certain that the problem was caused by bad features? If so QC would find them. Larry On Jul 12, 2010 12:54 PM, Sunburned Surveyor sunburned.surve...@gmail.com wrote: Back on November 5, 2009 Nacho let us know about a problem with the UnionByAttribute plug-in. It was throwing an exception with Nacho's data. I couldn't help Nacho track down the problem because the exception didn't tell us what feature was causing the exception. I told him I would see about giving the plug-in the ability to report the bad feature to assist with troubleshooting. That was the first item on my todo list for work in preparation of the next OpenJUMP release. I'm starting to work on those tasks this week. It seems like it would be helpful to have a standard way for plug-ins that operate on features or feature geometry to report the bad features that cause problems, especially those that result in exceptions that kill plug-in execution. I need to add this functionality to the UnionByAttribute plug-in, so I wanted to (1) see if we have an existing way to do this, and (2) propose a standard way for plug-in developers to do this that we could discuss a group if no solution exists. Let me know if you have already implemented a standard way of reporting bad feature data in your own plug-ins that I can imitate. I attached an interface for a BadFeatureDataReporter. It has one important method that allows the plug-in to submit a list of bad features. We could implement this interface with a reporter that wrote out the bad feature to a default shapefile (or at least the feature geometry to a well known text file) and then uses the workbench to warn the user that there was a problem. We could then make the default reporter available through the plug-in context or maybe the Registry. I'm thinking if I find a bad feature when processing data in the UnionByAttribute plug-in that I should skip it and continue processing after reporting. That seems a little more robust than ignoring the rest of the selection after the bad feature is encountered. Thanks for any feedback. The Sunburned Surveyor -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Selectionstyle Patch
Hi Matthias, I'm pretty sure that the right place to add setSelectionLineColor, setSelectionPointSize and setSelectionPointForm is AbstractSelectionRenderer since that is where the associated variables are declared. You will have to remove *final *from HANDLE_WIDTH. The real trick is getting the reference to FeatureSelectionRenderer to use the sets. I think this can be done with RenderManager by passing FeatureSelectionRenderer.CONTENT_ID.to RenderManager.getRenderer(). regards, Larry On Sun, Jul 11, 2010 at 7:58 AM, Matthias Scholz m...@jammerhund.de wrote: Hi Larry, can we do the following? - add some setSelectionLineColor, setSelectionPointSize and setSelectionPointForm to com.vividsolutions.jump.workbench.ui.renderer.Renderer interface - implement simple setter in com.vividsolutions.jump.workbench.ui.renderer.FeatureCollectionRenderer, wich is the parent of AbstractSelectionRenderer which is the parent of FeatureSelectionRenderer, SelectionBackgroundRenderer, PartSelectionRenderer, LineStringSelectionRenderer - change the AbstractSelectionRenderer for using this variables while paint() - in a PlugIn in the OptionsPanel I can get the Renderer with context.getLayerViewPanel().getRenderingManager().getRenderer() call and the I can change the values whith the setter I'm not sure if the Renderer interface is the right place for the setter methods??? Please tell me your opinion, before I start. Any other suggestions are welcome! Regards Matthias I don't see an obvious solution. For one thing, it is unclear how your plugin would affect the interoperability of SelectionBackgroundRenderer, PartSelectionRenderer, and LineStringSelectionRenderer which uses constructors to select different feedback mechanisms. Larry On Sun, Jun 27, 2010 at 3:00 PM, Matthias Scholz m...@jammerhund.de mailto:m...@jammerhund.de wrote: Hi Sunburned Surveyor and Larry, sorry for my late reply, but i had no time to code last week :-( I agree with Larry's remarks. My question went toward the concrete implementation, as I currently do not have enough knowledge about the internals of OJ. At the beginning I would to build a plugin, but I do not know how to tell the AbstractSelectionRenderer, how he should render with my settings or with the old default one. So actually I have no idea how to integrate the plugin in the rendering process? At this point I need your help. I hope you understand my terrible english ;-) Matthias I haven't looked at the code Mathias provided. It sounds like Larry's provided some great comments. I hope the changes can be made so Mathias code can be integrated. If Mathias needs help making the mods Larry has suggested, he can let me know. The Sunburned Surveyor On Mon, Jun 21, 2010 at 6:28 AM, Larry Becker becker.la...@gmail.com mailto:becker.la...@gmail.com wrote: Hi Matthias, My concern about code efficiency is that this is a very low level routine in AbstractSelectionRenderer that is potentially called millions of times per session. Everything possible (like blackboard access and object creation) needs to be moved outside of it. Also, if the user does not select your new selection rendering option, OJ should continue to render using the old method. Currently, it defaults to a new rendering method. One of the limitations of OJ that I would like to overcome is that it runs out of memory just selecting a million points. The reason for that is the large overhead of selection feedback graphics. Now that you have created an options panel for selection feedback it could be possible to turn off selection feedback completely! This would be a solution for unusually large datasets. I hope you understand that since this modification is to the core classes, it needs to meet higher standards than something an optional plugin. regards, Larry On Sat, Jun 19, 2010 at 12:48 AM, Matthias Scholz m...@jammerhund.de mailto:m...@jammerhund.de wrote: Hi Larry! Hi Matthias, I had some problems applying the patch. I was only able to get the AbstractSelectionRenderer and OptionsPlugIn patches. Eclipse wouldn't create the new files for some reason. It seems that my Netbeans use an other diff format as Eclipse... i have attached a zip file. Looking at the changes to AbstractSelectionRenderer, I do have some concerns about efficiency since I have recently made changes there to speed things up. I suggest that you move references
Re: [JPP-Devel] Feature collections modified by default
I'm not sure it helps, and I haven't tried it on WFS layers, but theoretically my select all modified features plugin distinguishes between newly created features and features loaded from a dataset. Larry On Fri, Jul 9, 2010 at 3:11 AM, Andreas Schmitz schm...@lat-lon.de wrote: Michaël Michaud wrote: Hi, I've noticed that (for quite some time now) newly loaded feature collections/layers are now considered modified by default. I've been using that check in the WFS plugin to enable the update button only if the layer is actually modified. I've added a workaround to set the layer unmodified immediately after loading. Sorry for the inconvenience that's no problem. I've shot myself in the foot like that often enough ;-) I've also found the place where layers are set to modified after loading (in the Layer class, with a comment from Michaël, that's why I'm addressing you directly ;-)). I'm not entirely sure why it is done like this. Was your intention to have a 'do you really want to close OJ' message when closing? If so, I'd like to propose to have a check when closing, and show a different message if no layers have been modified, asking just that, and only show the modified warning if something has actually been modified. I find it confusing for the users to have a warning like this, when he did actually not modify anything... You probably are right, as it may be important to make the difference between a newly created layer and a modified layer. I'll try to make my problem clearer as I'm not sure to get the solution yet. Some layers are issued from a persistent datasource, and others have been created by the application (ex. a buffer layer). How to inform the user who closes the application that some newly created layers are unsaved to disk (some of my co-workers complained they lost their work without any warning) Maybe I missed something simple with the Layer.getDataSourceQuery method. I'll try to explore this method (probably after my vacations). Feel free to get back to the previous state of Layer class if needed. I'm quite confident another way can be found to solve my problem ah, now I understand the problem. I think in the case of generated layers it makes perfect sense to have them marked modified at creation time. I suppose the best solution would then be to proceed as I suggested (it's still nice to get a confirmation message when exiting even though nothing is modified I think), and manually set generated layers to be modified when creating them. I see two options here: * by default set new layers to be unmodified, set generated layers to be modified when creating them (this must then be done in all plugins that generate new layers) * by default set new layers to be modified, set layers that are loaded from file/database/WFS etc. to be unmodified (this must then be done in all plugins which do not generate features) If we decide on one direction, I can make the changes to the code if someone can provide me with a list of (core) plugins that need to be modified. I'm not sure about the other solution that seems slumbering in your mind (you certainly know the code better than me). Also no need to rush (you can enjoy your vacation first!). What do people think? Best regards, Andreas -- l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-0 fax ++49 +228 1849629 http://www.lat-lon.dehttp://www.deegree.org Follow deegree on Twitter: http://twitter.com/deegree_org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkw22ZcACgkQ737OVr+Ru7pZdwCg7JXRzrulKfyOgjrCQ4VGf/IA /Y0An0V8zjml7vetBTr1l2HambBLCmJV =3hbj -END PGP SIGNATURE- -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] how to refresh a layer in run time
Hi Elton, Make your loop variable a class variable. Have the loop control and attribute update inside the event handler. While the loop is still going invoke the event handler again, also from within the event handler. Once you have set up the event handler and invoked it once, just fall off the end of the execute routine. I would give an example, but I'm away from my development system. It sounds like Stefan also has a need for animation. Perhaps he will show you his solution. Larry On Fri, Jul 9, 2010 at 10:41 PM, Elton Chan elton.c...@yahoo.com wrote: Dear Larry, Could you tell me how it works? It seems a loop is required for continous update an attribute. How can it be replaced by a event handler? Thanks, Elton --- On *Fri, 7/2/10, Larry Becker becker.la...@gmail.com* wrote: From: Larry Becker becker.la...@gmail.com Subject: Re: [JPP-Devel] how to refresh a layer in run time To: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Date: Friday, July 2, 2010, 5:33 PM Hi Elton, I think you are going to have to restructure you code from a loop to be an event handler that triggers itself until the end of some counter. That is the only sure way to play nice with the GUI. Larry On Fri, Jul 2, 2010 at 12:06 PM, Elton Chan elton.c...@yahoo.comhttp://mc/compose?to=elton.c...@yahoo.com wrote: Hi Larry, I've tried the LayerView Panel().repaint() with InvokeAndWait(). However, the layerpanel still cannot refesh and the for loop continues until all finishing all the Recordset. The following code is added after attribute update: if (SwingUtilities.isEventDispatchThread()) { context.getLayerViewPanel().repaint(); System.out.println(repaint!!); Always hit this line. } else { SwingUtilities.invokeAndWait(new Runnable( ) { public void run( ) { context.getLayerViewPanel().repaint(); System.out.println(repaint!!!); } }); } Any idea? --- On *Thu, 7/1/10, Larry Becker becker.la...@gmail.comhttp://mc/compose?to=becker.la...@gmail.com * wrote: From: Larry Becker becker.la...@gmail.comhttp://mc/compose?to=becker.la...@gmail.com Subject: Re: [JPP-Devel] how to refresh a layer in run time To: OpenJump develop and use jump-pilot-devel@lists.sourceforge.nethttp://mc/compose?to=jump-pilot-de...@lists.sourceforge.net Date: Thursday, July 1, 2010, 2:30 PM Sorry, Elton, not NIls. I answered so many questions that I got confused about who I was answering. :-) On Thu, Jul 1, 2010 at 8:24 AM, Larry Becker becker.la...@gmail.comhttp://mc/compose?to=becker.la...@gmail.com wrote: Hi Nils, I believe you might be running into problems updating because your loop is blocking the GUI thread. You might try a LayerViewPanel.repaint() using invokeAndWait(). Larry On Thu, Jul 1, 2010 at 6:42 AM, Elton Chan elton.c...@yahoo.comhttp://mc/compose?to=elton.c...@yahoo.com wrote: Hi there, I would like to refresh a layer after changing attribute of each feature in the layer based on an event table. The event table records attribute assigned to each feature at specified stage. Following is the schema of the event table: Event( StageID int, // StageID defines sequence of the event Feature01 int, // value to be assigned to feature 01 Feature02 int, // value to be assigned to feature 02 ... Feature10 int) Based on the StageID sequence, values for each feature would be retrieved and updated to corresponding feature. Finally, update value would be visualized by unique colortheming. However, it seems the layer refreshing can only be effective outside the ResultSet loop of the event table. The following is the program codes: Inside execute(PlugInContext context) // get a layer lyr = context.getLayerManager().getLayer(postgis); //create a Resultset RS ResultSet RS stat.executeQuery(select * from Event); while (RS.next()) { updatePostgisLayer(lyr, RS);//This function updates feature in the layer } layer refreshes after the looping all the resultset. My question is how to refresh the layer once attribute values are updated for each each row of the RecordSet, i.e. immediately after the updatePostgisLayer function. If I change the query to retrieve specify row (i.e. single row only), layer can be refreshed. But it requires to activate it manually for each update. I tried to add lyr.fireLayerChanged(LayerEventType.APPEARANCE_CHANGED); or lyr.fireAppearanceChanged() after the updatePostgisLayer function but it didn't work. Anyone can help? thanks, Elton -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
Re: [JPP-Devel] Plug-in showing change over time
Hi Stefan, The JUMP rendering architecture was never designed for something like animation. The only way I have found to make it work is to turn off the RenderManager and do the rendering yourself. You should be able to find some hints on how to do that in LayerPrinter2, if I remember correctly. Perhaps AbstractZoom too. I could also make some changes to RenderManager to support notification that rendering is complete as I did in SkyJUMP, but it doesn't completely make the problem go away. regards, Larry On Thu, Jul 8, 2010 at 9:16 PM, Stefan Steiniger sst...@geo.uzh.ch wrote: Hei all - esp. Larry who has some experience on rendering Just by chance I am in need for a plugin that shows changes over time - i.e. a movie, too. So I sat down for 2 hours today for a very basic plugin. I realized the movie by creating a new temporary layer and then execute a loop that adds and removes features to and from the layer one by one (after sorting them). Ok so far, and well, its also not smooth looking. However, the problem is that it seems to me like a couple of features/sequences are not drawn. Basically I would need to wait until all features in the layer are drawn and would then continue with the loop (to remove the previous and add a new feature). So - is there any way to know when the rendering is done? (I use a ThreadedBasePlugin - as this even shows in the monitor the step nummer). I also tried to create a Dummy LayerManager and create a new DummyLayer from the featureCollection and to render this one inbetween to have an idea when the rendering is done (a bit like for LayerPrinter2) - but it seems not to work either. Another option I tried is using Thread.sleep(100) - i.e. to wait for some time - but the the animation seems to be not fluent enough (= just takes too long). I also do not understand what happens if I use Thread.sleep() or RenderManager.wait() - i.e. if I just stop all processes instead of my hope that the rendering would be continued and finished I think - we may had this discussion a couple of years ago.. but has anyone any pointers/ideas? cheers stefan Sunburned Surveyor schrieb: Elton, I don't think there are. The Sunburned Surveyor On Tue, Jun 29, 2010 at 6:59 PM, Elton Chan elton.c...@yahoo.com wrote: Hi there, Are there any plug-in or snippets avaliable to show change of attribute over time or time-series of a feature for OpenJump? Thanks, Elton -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] how to refresh a layer in run time
Hi Elton, I think you are going to have to restructure you code from a loop to be an event handler that triggers itself until the end of some counter. That is the only sure way to play nice with the GUI. Larry On Fri, Jul 2, 2010 at 12:06 PM, Elton Chan elton.c...@yahoo.com wrote: Hi Larry, I've tried the LayerView Panel().repaint() with InvokeAndWait(). However, the layerpanel still cannot refesh and the for loop continues until all finishing all the Recordset. The following code is added after attribute update: if (SwingUtilities.isEventDispatchThread()) { context.getLayerViewPanel().repaint(); System.out.println(repaint!!); Always hit this line. } else { SwingUtilities.invokeAndWait(new Runnable( ) { public void run( ) { context.getLayerViewPanel().repaint(); System.out.println(repaint!!!); } }); } Any idea? --- On *Thu, 7/1/10, Larry Becker becker.la...@gmail.com* wrote: From: Larry Becker becker.la...@gmail.com Subject: Re: [JPP-Devel] how to refresh a layer in run time To: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Date: Thursday, July 1, 2010, 2:30 PM Sorry, Elton, not NIls. I answered so many questions that I got confused about who I was answering. :-) On Thu, Jul 1, 2010 at 8:24 AM, Larry Becker becker.la...@gmail.comhttp://mc/compose?to=becker.la...@gmail.com wrote: Hi Nils, I believe you might be running into problems updating because your loop is blocking the GUI thread. You might try a LayerViewPanel.repaint() using invokeAndWait(). Larry On Thu, Jul 1, 2010 at 6:42 AM, Elton Chan elton.c...@yahoo.comhttp://mc/compose?to=elton.c...@yahoo.com wrote: Hi there, I would like to refresh a layer after changing attribute of each feature in the layer based on an event table. The event table records attribute assigned to each feature at specified stage. Following is the schema of the event table: Event( StageID int, // StageID defines sequence of the event Feature01 int, // value to be assigned to feature 01 Feature02 int, // value to be assigned to feature 02 ... Feature10 int) Based on the StageID sequence, values for each feature would be retrieved and updated to corresponding feature. Finally, update value would be visualized by unique colortheming. However, it seems the layer refreshing can only be effective outside the ResultSet loop of the event table. The following is the program codes: Inside execute(PlugInContext context) // get a layer lyr = context.getLayerManager().getLayer(postgis); //create a Resultset RS ResultSet RS stat.executeQuery(select * from Event); while (RS.next()) { updatePostgisLayer(lyr, RS);//This function updates feature in the layer } layer refreshes after the looping all the resultset. My question is how to refresh the layer once attribute values are updated for each each row of the RecordSet, i.e. immediately after the updatePostgisLayer function. If I change the query to retrieve specify row (i.e. single row only), layer can be refreshed. But it requires to activate it manually for each update. I tried to add lyr.fireLayerChanged(LayerEventType.APPEARANCE_CHANGED); or lyr.fireAppearanceChanged() after the updatePostgisLayer function but it didn't work. Anyone can help? thanks, Elton -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.nethttp://mc/compose?to=jump-pilot-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -Inline Attachment Follows- -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -Inline Attachment Follows- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.nethttp://mc/compose?to=jump-pilot-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Update and refresh layer in run time
You might try: context.getLayerManager().fireFeaturesChanged( features, FeatureEventType.ATTRIBUTES_MODIFIED, layer); Also look into: context.getLayerManager().setFiringEvents(false); //before loop context.getLayerManager().setFiringEvents(true); //after loop Larry On Wed, Jun 30, 2010 at 10:21 PM, Elton Chan elton.c...@yahoo.com wrote: Hi Larry, Thank for your reply. I've tested that view panel can update automatically when attribute is updated. However, if I continue to update an attribute in a for loop, it seems it cannot refresh. I wonder if the auto update would be activated immediately after the setAttribute function, or after completion of the for loop or I need to add a later between each update. BTW, how can I fire the update event mannually. thanks, Elton -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] exploding GeometryCollections?
Hi Nils, If you mean an explode utility method you are correct - I don't think there is one. There is code in the ExplodeSelectedFeaturesPlugIn. Also, there is support for recursive parsing of GeometryCollections when using an EditTransaction. If you do add a utility function, it should probably go in org.openjump.core.geomutils. Larry On Thu, Jul 1, 2010 at 2:54 AM, Nils Kuhn nils.k...@bws-gmbh.de wrote: Hi, we don't have a standard-function to explode GeometryCollections to single Geometries in OpenJUMP, am I right? To have an option don't allow GeometryCollections in the main-menu-function ToolsAnalysisOne LayerUnion would be nice , too. Maybe I could try to implement something like that (I don't have as much time, so that could last a while...). Regards, Nils -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] how to refresh a layer in run time
Hi Nils, I believe you might be running into problems updating because your loop is blocking the GUI thread. You might try a LayerViewPanel.repaint() using invokeAndWait(). Larry On Thu, Jul 1, 2010 at 6:42 AM, Elton Chan elton.c...@yahoo.com wrote: Hi there, I would like to refresh a layer after changing attribute of each feature in the layer based on an event table. The event table records attribute assigned to each feature at specified stage. Following is the schema of the event table: Event( StageID int, // StageID defines sequence of the event Feature01 int, // value to be assigned to feature 01 Feature02 int, // value to be assigned to feature 02 ... Feature10 int) Based on the StageID sequence, values for each feature would be retrieved and updated to corresponding feature. Finally, update value would be visualized by unique colortheming. However, it seems the layer refreshing can only be effective outside the ResultSet loop of the event table. The following is the program codes: Inside execute(PlugInContext context) // get a layer lyr = context.getLayerManager().getLayer(postgis); //create a Resultset RS ResultSet RS stat.executeQuery(select * from Event); while (RS.next()) { updatePostgisLayer(lyr, RS);//This function updates feature in the layer } layer refreshes after the looping all the resultset. My question is how to refresh the layer once attribute values are updated for each each row of the RecordSet, i.e. immediately after the updatePostgisLayer function. If I change the query to retrieve specify row (i.e. single row only), layer can be refreshed. But it requires to activate it manually for each update. I tried to add lyr.fireLayerChanged(LayerEventType.APPEARANCE_CHANGED); or lyr.fireAppearanceChanged() after the updatePostgisLayer function but it didn't work. Anyone can help? thanks, Elton -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] how to refresh a layer in run time
Sorry, Elton, not NIls. I answered so many questions that I got confused about who I was answering. :-) On Thu, Jul 1, 2010 at 8:24 AM, Larry Becker becker.la...@gmail.com wrote: Hi Nils, I believe you might be running into problems updating because your loop is blocking the GUI thread. You might try a LayerViewPanel.repaint() using invokeAndWait(). Larry On Thu, Jul 1, 2010 at 6:42 AM, Elton Chan elton.c...@yahoo.com wrote: Hi there, I would like to refresh a layer after changing attribute of each feature in the layer based on an event table. The event table records attribute assigned to each feature at specified stage. Following is the schema of the event table: Event( StageID int, // StageID defines sequence of the event Feature01 int, // value to be assigned to feature 01 Feature02 int, // value to be assigned to feature 02 ... Feature10 int) Based on the StageID sequence, values for each feature would be retrieved and updated to corresponding feature. Finally, update value would be visualized by unique colortheming. However, it seems the layer refreshing can only be effective outside the ResultSet loop of the event table. The following is the program codes: Inside execute(PlugInContext context) // get a layer lyr = context.getLayerManager().getLayer(postgis); //create a Resultset RS ResultSet RS stat.executeQuery(select * from Event); while (RS.next()) { updatePostgisLayer(lyr, RS);//This function updates feature in the layer } layer refreshes after the looping all the resultset. My question is how to refresh the layer once attribute values are updated for each each row of the RecordSet, i.e. immediately after the updatePostgisLayer function. If I change the query to retrieve specify row (i.e. single row only), layer can be refreshed. But it requires to activate it manually for each update. I tried to add lyr.fireLayerChanged(LayerEventType.APPEARANCE_CHANGED); or lyr.fireAppearanceChanged() after the updatePostgisLayer function but it didn't work. Anyone can help? thanks, Elton -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Exposing JUMP as an RMI service?
Hi Martin, I'm still thinking about your RMI idea. In SkyJUMP, there is a communications module that allows other programs to control it remotely. It doesn't use RMI, but it could be ported to OJ and changed to do so. It includes two bidirectional channels for command and data. The protocol is XML and the module allows arbitrary execution of plugins. An example is: ?xml version=1.0 encoding=UTF-8? command-data commandSendDatasetPlugIn/command parameters properties mapping key class=java.lang.Stringinput-filename/key value class=java.lang.StringC:\JUMP\tmp\test.jml/value /mapping /properties /parameters /command-data This example causes the current selection to be written to the designated file. Just thought I would keep the ball rolling on this idea. regards, Larry On Thu, Jun 3, 2010 at 2:39 PM, Martin Davis mbda...@refractions.netwrote: It occurred to me recently that it might be useful to have a spatial viewer acting as an RMI service for out-of-process or remote clients. A possible use case would be as a spatial logger - a client process could log spatial data generated during the course of execution which would be immediately viewable in the spatial viewer. The neat thing is that this would work during a debug session, so the developer could get a good view of data being processed during the run. For those not familiar with it, RMI makes it almost trivially easy to expose a service endpoint and communicate with it from other Java processes. It would be fairly simple to expose a service that allowed clients to create layers, add features to layers, etc. Really the service could expose almost anything that can be manipulated in JUMP). It would thus enable a sort of remote plugin facility. I also envision a very simple client API that hid the (fairly trivial) aspects of connecting to an RMI service. This may be a solution in search of a problem - but RMI is so powerful it seems like there must be some applications for it. Has anyone played around with exposing an RMI service from JUMP? -- Martin Davis Senior Technical Architect Refractions Research, Inc. (250) 383-3022 -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Update and refresh layer in run time
Hi Elton, Usually for these situations update events would fire automatically. If for some reason, they do not, you can fire them manually. regards, Larry On Tue, Jun 29, 2010 at 8:42 AM, Elton Chan elton.c...@yahoo.com wrote: Hi there, Suppose if I have a layer added in the LayerTreePanel, and I also got the FeatureCollection of the layer, how can I update the layer using program and refresh it on the view panel. Thanks, Elton -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] SextanteRasterLayer, pixel values and visualization
Hi Alberto, I did take a look at the render architecture to see how it might be done, but unfortunately I don't have a lot of time right now to help with this effort so any advice I have is only a guess, but I think it might have to happen in the image layer's paint method. Larry On Tue, Jun 29, 2010 at 2:01 AM, Alberto De Luca i...@geomaticaeambiente.it wrote: Stefan and Larry, thank you for your help. Unfortunately I'm not an expert either, so I'm really not sure about what to do. I kind of like Larry's approach (but I need to think about it to see if I can work something out of it). I'll have a deeper look at the pirol classes too... Alberto On 28/06/2010 21:49, Stefan Steiniger wrote: actually.. wasn't there a scaling function somewehere in the pirol classes? so the place to correct is in those? Alberto De Luca schrieb: Dear OJ developers, I was working on the Sextante classes, trying to enhance raster support and visualization capabilities. Having a powerful raster management is important so we can port to OJ all the raster plugins we developed for the OJ-derived AdB-ToolBox (we exchanged some emails on the topic a while ago). So, as a first attempt, I tried to add ESRI FLT raster support, adding some lines of code to the RasterImageLayer class. I am here facing a dilemma though. The loadImage method returns a planarimage, which is then displayed on the screen. If I read the FLT file into a TiledImage whose SampleModel is DataBuffer.TYPE_FLOAT (to match the data model of the FLT file) and return it to be displayed, OJ loads it ok, but the raster displayed is completely blank. I know it's there because I can export its envelope and I can read cell values (using the OpenJUMPSextanteRasterLayer class), values that exactly match the values stored in the FLT file. If after creating the TiledImage I rescale it into a 0-255 range PlanarImage, I can display it ok (as a grayscale for example) but then when I read the cell values from the raster layer, they're clearly different from the original FLT values. My question is: is there a way to have a correct visualization while maintaining access to the actual cell values? In www.lac.inpe.br/JIPCookbook/2200-display-surrogate.jsp http://www.lac.inpe.br/JIPCookbook/2200-display-surrogate.jsp they suggest the use of the javax.media.jai.iterator.RandomIter class to access cell values after the image has been rescaled. Would this be appropriate in OJ? In the attached GridFloat.java you can find the code used to read the FLT grid (see the readGrid and the getPlanarImage methods). Also attached you can find my modified RasterImageLayer class (see in particular the loadImage method). Please consider I'm not a good programmer, so I might just be on a completely wrong track... Thanks Alberto -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel