Re: [JPP-Devel] wishlist

2010-09-07 Thread Kevin Neufeld
No, the ability to specify readonly is currently only available programatically. My use case was that I wanted to prevent a user to making certain changes to a feature collection. I hadn't considered that a user may want to add this restriction themselves through a user interface. Do you thi

[JPP-Devel] OpenJUMP Weekly Build Now Available

2010-09-07 Thread Sunburned Surveyor
I put together a weekly build of OpenJUMP that you can download (for now) from the SurveyOS SourceForge Project web site: https://sourceforge.net/project/admin/explorer.php?group_id=122820 The file is named "openjump_weekly_build". I just dropped the two (2) main jar files from the SVN into the

Re: [JPP-Devel] wishlist

2010-09-07 Thread Sunburned Surveyor
Kevin, This is probably a dumb question, but is there a way to tell OpenJUMP that a feature attribute is not editable for a layer through the user interface? I was trying to see how I could do this in the dialog that lets you edit a layer schema in a build from SVN, but couldn't see it. Is this f

Re: [JPP-Devel] System.out in code

2010-09-07 Thread Michaël Michaud
Hi, Of course, I agree with Martin's solution to report bad features in a dedicated layer. Ede also reminded us about the HTMLFrame, which may not be well suited to report geometry problems, but which is the way to go for other information messages directed to the user (ex. statistics, expla

Re: [JPP-Devel] Charset choise

2010-09-07 Thread Sunburned Surveyor
Good job Matthias! Thank you Larry and Michael for all the feedback and testing. We'd be in trouble without your participation and input. The Sunburned Surveyor On Tue, Sep 7, 2010 at 12:42 PM, Larry Becker wrote: > I have done some testing on the latest charset changes committed by > Matthias.

Re: [JPP-Devel] System.out in code

2010-09-07 Thread Sunburned Surveyor
OK. Thanks Martin. The only question I had about this method was the possiblity of a "corrupt feature". It the plug-in is processing a layer with a corrupt feature, trying to add it to another layer could throw an exception, which is what I am trying to avoid. I suppose all the features the plug-i

Re: [JPP-Devel] System.out in code

2010-09-07 Thread Martin Davis
Landon, My 2c worth on this is that you should write the problem features to a new layer. I used that approach quite a bit in JCS development, and it worked well. With features in a layer it makes them easy to visualize, and the user can use all the tools already in OJ to examine and/or fix

Re: [JPP-Devel] System.out in code

2010-09-07 Thread Michaël Michaud
Hi, > Stefan, >> ... I have used Log4j before, >> and it seemed a little complicated. > I find the log4j.properties variant complicated as well. But the > log4j.xml [1] configuration variant I find fairly straight forward [2]. > I can include/exclude log messages from particular java packages an

Re: [JPP-Devel] configurable cross-platform OJ launching

2010-09-07 Thread edgar . soldin
On 07.09.2010 21:18, Sunburned Surveyor wrote: > It sounds like their using Ant somewhere along the way? Or at > least they are using an Ant task for the config. Seems to be only an example of how to start something out of ant. But I could be wrong. Am no using any ant myself ;) ..ede --

Re: [JPP-Devel] System.out in code

2010-09-07 Thread edgar . soldin
Hey Landon, as far as I remember (from the hello world plugin) there is a console built in OJ on which you can output text. Maybe this would be another convenient way to tell the user. .. ede On 07.09.2010 21:29, Sunburned Surveyor wrote: > Kevin, > > Thanks for the clarification. I agree that

Re: [JPP-Devel] [openjump-users] Error message in Adjust selected side

2010-09-07 Thread edgar . soldin
On 07.09.2010 21:13, Sunburned Surveyor wrote: > If someone sends me the required files for launching OJ on the Mac, > I'll get them in the nightly build release I am preparing. In the course of making the gps extension working on different plattforms I checked and extended the linux script. Crea

Re: [JPP-Devel] System.out in code

2010-09-07 Thread Sunburned Surveyor
Kevin, Thanks for the clarification. I agree that since the project is already has Log4J as a dependency, we should use it to replace the System.out statements in the core. I was thinking about plug-in developers as well. I'm working on the Union By Attribute plug-in. I'm tweaking it to report an

Re: [JPP-Devel] question about getUltimateWrappee()

2010-09-07 Thread Michaël Michaud
Hi Kevin, > The FeatureCollectionWrapper.getUltimateWrappee() looks like this: > > public FeatureCollection getUltimateWrappee() { > FeatureCollection currentWrappee = fc; > while (currentWrappee instanceof FeatureCollectionWrapper) { > currentWrappee = ((FeatureCollectionWrappe

Re: [JPP-Devel] configurable cross-platform OJ launching

2010-09-07 Thread Sunburned Surveyor
I had some trouble walking through the wiki example. I downloaded the source and binary distributions from the web site, and I will look at both. It sounds like their using Ant somewhere along the way? Or at least they are using an Ant task for the config. The Sunburned Surveyor On Tue, Sep 7, 20

Re: [JPP-Devel] Charset choise

2010-09-07 Thread Sunburned Surveyor
Michael wrote: "I think our shapefile driver is a bit old and may not have a perfect design, but it has been tuned year after year by several of us, charset option being the last improvement, so that before changing to another, it would be useful to test/compare extensively capabilities, speed, mem

Re: [JPP-Devel] Charset choise

2010-09-07 Thread Michaël Michaud
Le 07/09/2010 16:25, Sunburned Surveyor a écrit : > Matthias, > > I wonder if it might be worth checking out the current GeoTools code > for loading shapefiles, which already works with Charsets? I have done > some work on code that allows you to obtain JUMP feature objects from > th GeoTools sha

Re: [JPP-Devel] configurable cross-platform OJ launching

2010-09-07 Thread edgar . soldin
Just a hint: If i understood the docs the correctly, we might even stick to the binary release and have to create a config file only. .. ede On 07.09.2010 17:28, Sunburned Surveyor wrote: > Thanks, > > I'm downloading the code now. > > SS > > On Tue, Sep 7, 2010 at 8:01 AM, wrote: >> On 07.09.2

Re: [JPP-Devel] System.out in code

2010-09-07 Thread Kevin Neufeld
Hi Landon, I'm not sure I understand your question, sorry. I'm not suggesting to expose any method to access logging functionality. I hope this makes this more clear: What I'm suggesting is that the 330 calls to System.out currently in src get cleaned up, replaced with appropriate log4j call

Re: [JPP-Devel] zooming to the last extent opening a project

2010-09-07 Thread Larry Becker
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 wrote: > Hi all, > I am writing the extent of the viewport of the LayerViewPanel to a > pro

[JPP-Devel] zooming to the last extent opening a project

2010-09-07 Thread Nils Kuhn
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. T

Re: [JPP-Devel] Selectionstyle Patch

2010-09-07 Thread Sunburned Surveyor
Thanks Matthias. I was going to translate the English file, but sounds like you've already done that. Landon On Mon, Sep 6, 2010 at 12:29 PM, Matthias Scholz wrote: > Hi Landon, > > sorry for my delay, but my internet connection was down at the weekend :-( > > I've done the german and english tr

Re: [JPP-Devel] System.out in code

2010-09-07 Thread Sunburned Surveyor
I'll have to take a look at log4J again. Did you imagine exposing a method to access the logging functionality through the plug-in context, or through some other mechanism? The Sunburned Surveyor On Tue, Sep 7, 2010 at 8:29 AM, Kevin Neufeld wrote: >  On 9/7/2010 7:38 AM, Sunburned Surveyor wrot

Re: [JPP-Devel] System.out in code

2010-09-07 Thread Kevin Neufeld
On 9/7/2010 7:38 AM, Sunburned Surveyor wrote: > Stefan, > > ... I have used Log4j before, > and it seemed a little complicated. I find the log4j.properties variant complicated as well. But the log4j.xml [1] configuration variant I find fairly straight forward [2]. I can include/exclude log

Re: [JPP-Devel] configurable cross-platform OJ launching

2010-09-07 Thread Sunburned Surveyor
Thanks, I'm downloading the code now. SS On Tue, Sep 7, 2010 at 8:01 AM, wrote: > On 07.09.2010 16:30, Sunburned Surveyor wrote: >> I'm going to tinker with a bare bones Java launcher this week I hope. >> I will let you know how it goes. I don't have a problem committing the >> Mac launch scri

Re: [JPP-Devel] configurable cross-platform OJ launching

2010-09-07 Thread edgar . soldin
On 07.09.2010 16:30, Sunburned Surveyor wrote: > I'm going to tinker with a bare bones Java launcher this week I hope. > I will let you know how it goes. I don't have a problem committing the > Mac launch script to the SVN. I suggest you to have a look at http://commons.apache.org/launcher/example

Re: [JPP-Devel] Charset choise

2010-09-07 Thread edgar . soldin
On 07.09.2010 16:25, Sunburned Surveyor wrote: > I wonder if it might be worth checking out the current GeoTools code > for loading shapefiles, which already works with Charsets? I have done > some work on code that allows you to obtain JUMP feature objects from > th GeoTools shapefile driver. I o

Re: [JPP-Devel] System.out in code

2010-09-07 Thread Sunburned Surveyor
Stefan, Do you have a problem with letting Kevin apply his patches to the ImageFactory classes? Would it be possible to set-up a simple log-to-file mechanism that could be accessed from the plug-in context? I have used Log4j before, and it seemed a little complicated. I wonder if just having the

Re: [JPP-Devel] [openjump-users] Error message in Adjust selected side

2010-09-07 Thread Sunburned Surveyor
FYI: I still think the nightly build is broken. The last time I saw a build available for download was 2010-08-26. I'm going to try to get a build of the current SVN up on the web today so people can try out some our our latest changes/improvements. The Sunburned Surveyor On Mon, Aug 30, 2010 at

Re: [JPP-Devel] configurable cross-platform OJ launching

2010-09-07 Thread Sunburned Surveyor
I'm going to tinker with a bare bones Java launcher this week I hope. I will let you know how it goes. I don't have a problem committing the Mac launch script to the SVN. The Sunburned Surveyor On Sat, Sep 4, 2010 at 1:48 PM, wrote: >>> >>> - rework windows batch to be one file only again (less

Re: [JPP-Devel] Charset choise

2010-09-07 Thread Sunburned Surveyor
Matthias, I wonder if it might be worth checking out the current GeoTools code for loading shapefiles, which already works with Charsets? I have done some work on code that allows you to obtain JUMP feature objects from th GeoTools shapefile driver. It seems logical to store the last used charset