[JPP-Devel] function add image layer

2010-05-27 Thread Nils Kuhn
Hi all, the function "Add Image Layer" from the main-menu "Layer" is missing since OJ 1.3 (new menu-structure). This function has some advantages to the sextante-raster-images. The biggest for me is the availability of the "Change Styles"-dialog via layer-context-menu with the opportunity to

Re: [JPP-Devel] How to load ESRI shapefiles by code

2010-05-27 Thread Benjamin Gudehus
Hi! If you just want to load shapefiles, you can use ShapefileReader directly to load a shapefile into a FeatureCollection. ShapefileReader reader = new ShapefileReader(); FeatureCollection features = reader.read(new DriverProperties(shapefilePath)); Layer layer =

Re: [JPP-Devel] How to load ESRI shapefiles by code

2010-05-27 Thread Michaël Michaud
Hi, Don't know if you still want to work inside OpenJUMP wokbench or not, but here is a very simple example I just picked up from the JTS discussion list : String layer = data/tigerline/2009_us_state/tl_2009_us_state.shp; ShapefileReader reader = new ShapefileReader(); FeatureCollection fc =

Re: [JPP-Devel] Selection styling

2010-05-27 Thread Stefan Steiniger
Hei, I think that we have two possibilities for persisting the settings. In the project file or in the blackboard. Both have pros and cons. What do you think about it? I would say blackboard stefan --

Re: [JPP-Devel] function add image layer

2010-05-27 Thread Stefan Steiniger
If I remember correctly, the old function is used when a) you use drag an drop b) use the normal open file option (i.e. not the sextante version) - as you see from the drop down file types list, it contains image file formats as well knowing this.. do you still think that it should be back

Re: [JPP-Devel] How to load ESRI shapefiles by code

2010-05-27 Thread Stefan Steiniger
Hei Benjamin, how about not splitting the class (i.e. avoiding to break anything), but just add the second class for programmatical access? Maybe this could even go into the core.apitools package. If you feel like creating such a class, I can add it. cheers, stefan Benjamin Gudehus wrote:

Re: [JPP-Devel] How to load ESRI shapefiles by code

2010-05-27 Thread Stefan Steiniger
thanks michael, I add that to the wiki. Michaël Michaud wrote: Hi, Don't know if you still want to work inside OpenJUMP wokbench or not, but here is a very simple example I just picked up from the JTS discussion list : String layer = data/tigerline/2009_us_state/tl_2009_us_state.shp;

Re: [JPP-Devel] How to load ESRI shapefiles by code

2010-05-27 Thread Hernan Arellano
Thanks for the help guys! I`ve solved it by the following code: (maybe there are some things no needed, like options, but it works!!) DataSource dataSource = (DataSource)LangUtil.newInstance(StandardReaderWriterFileDataSource.Shapefile.class); MapString, Object options = new

[JPP-Devel] moving labels?

2010-05-27 Thread Nils Kuhn
Hi all, I have a questian on the standard-functionality of OJ: Am I right, that it isn't possible to move the labels of a (polygon-)layer in OJ? If I want to do that I will have to create a Point-Layer with all the centroids of the polygons, transfer the labeling-attribute, label the

Re: [JPP-Devel] moving labels?

2010-05-27 Thread Larry Becker
Hi Nils, I don't know a simpler way, and I've intended to write this as a plugin for years, but I haven't gotten around to doing it. We (SkyJUMP) actually implemented an experimental edit tool to offset text once. It stored the offsets as 2 int attributes. Wonder where that code has gone?

Re: [JPP-Devel] moving labels?

2010-05-27 Thread Geoffrey Roy
Dear Nils My ChartPlugin can now do this, but it is essentially the same as you indicate. We can prepare a new Labels layer, select the attribute to display, and define an (X,Y) offset for the label (from the centroid). The new layer can then be turned on/off as required. Perhaps the

Re: [JPP-Devel] Thinking about a release at the end of July.

2010-05-27 Thread Dan Jones
Sunburned Surveyor, Sounds great! I'm dual booting Win7 and Ubuntu (haven't upgraded to 10.04 yet). I haven't been using thr linux side for my GIS work because some of the other applications I'm using don't play nicely with it. I can migrate my OpenJUMP setup pretty easily though, because all the