Re: [JPP-Devel] New Finnish language file
I can't seem to find the folder in the SVN where we keep the language files. Does anyone remember its location? I'll get the Finnish file committed as soon as I can remember where it goes. Thanks for the translation Jukka. Why can some of the words not be translated? Is there not a Finnish equivalent? Could icons be used instead? The Sunburned Surveyor On Thu, Oct 7, 2010 at 5:40 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Here is the new Finnish language file with raster tool translations. It should be good enough for 1.4 release. Two remarks: Layer - Run Datastore Query has two new buttons 'View' and 'Fence' which can't be translated. Raster profil output window has tools and settings which can't be translated. -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 ___ 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/beautyoftheweb ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Loading Shapefiles Into A Pair of LayerViewPanels
I'd start looking at the LayerViewPanel class. You can also search this mailing list archive for load shapefile. That should turn up some recent messages on how to load features from Shapefiles using OpenJUMP classes. The Sunburned Surveyor On Fri, Oct 8, 2010 at 12:40 AM, Sankar Mondal sankar_mon...@hcl.com wrote: -Original Message- From: jump-pilot-devel-requ...@lists.sourceforge.net [mailto:jump-pilot-devel-requ...@lists.sourceforge.net] Sent: Wednesday, September 29, 2010 8:22 PM To: jump-pilot-devel@lists.sourceforge.net Subject: Jump-pilot-devel Digest, Vol 52, Issue 53 Send Jump-pilot-devel mailing list submissions to jump-pilot-de...@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel or, via email, send a message with subject or body 'help' to jump-pilot-devel-requ...@lists.sourceforge.net You can reach the person managing the list at jump-pilot-devel-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than Re: Contents of Jump-pilot-devel digest... Yes, same as open jump. Can you please tell me required APIs or classes -- Message: 4 Date: Wed, 29 Sep 2010 07:51:56 -0700 From: Sunburned Surveyor sunburned.surve...@gmail.com Subject: Re: [JPP-Devel] how to manage layer control To: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Message-ID: aanlktinx0vpqewcbqyvrs5+=kyhrdwnz32_u9ewwa...@mail.gmail.com Content-Type: text/plain; charset=windows-1252 You want to add your shapefile to a pair of LayerViewPanels? SS On Mon, Sep 27, 2010 at 9:39 PM, Sankar Mondal sankar_mon...@hcl.comwrote: Thanks for your reply. Yeah I am required to write a custom application. below I am sharing small piece of code regarding shape file loading as mentioned below: *public static final String[] SHAPEFILES = new String[] { ,, };* *main(){* *//getting LayerViewPanel for custom view* * final LayerViewPanel view = new LayerViewPanel(new LayerManager(),* * new LayerViewPanelContext() {* * ...* * ...* * }* * **});* *// Read shape files* * ShapefileReader reader = new ShapefileReader();* *//get the feature* *ListFeatureCollection featureList = new LinkedListFeatureCollection();* * for (int i = 0; i SHAPEFILES.length; i++) {* * FeatureCollection features = reader.read(new DriverProperties(* * SHAPEFILES[i]));* * //add features into features list* * featureList.add(features);* * * *}* * //add layers* * for (FeatureCollection features : featureList) {* * layer = view.getLayerManager().addLayer(Category Name,* * ?Layer Name?, features);* * * * }* * * *// Initialize window** * * JFrame frame = new JFrame(Jump Test);* * frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);* * frame.setSize(new Dimension(600, 600));* * * * frame.add(view, BorderLayout.CENTER); * * * * frame.pack();* * frame.setVisible(true);* * * * view.getViewport().zoomToFullExtent();* *}* so here I can load shp file into my custom view. Now I required to add those layers into another panel like as tree after changing in layer tree (e.g. check/uncheck) same should reflect into my custom view. Please give me some hints. Thanks Sankar DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ---
Re: [JPP-Devel] New Finnish language file
src/languages? but Michael can maybe commit too. I am currently in on travel (Montreal until next week) I need to check what goes on with the raster profile tool, for translation I can't seem to find the folder in the SVN where we keep the language files. Does anyone remember its location? I'll get the Finnish file committed as soon as I can remember where it goes. Thanks for the translation Jukka. Why can some of the words not be translated? Is there not a Finnish equivalent? Could icons be used instead? The Sunburned Surveyor On Thu, Oct 7, 2010 at 5:40 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Here is the new Finnish language file with raster tool translations. It should be good enough for 1.4 release. Two remarks: Layer - Run Datastore Query has two new buttons 'View' and 'Fence' which can't be translated. Raster profil output window has tools and settings which can't be translated. -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 ___ 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/beautyoftheweb ___ 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/beautyoftheweb ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] New Finnish language file
OK Stefan. I'll get the Finnish file committed today. Landon On Fri, Oct 8, 2010 at 10:18 AM, stefan.steini...@geo.uzh.ch wrote: src/languages? but Michael can maybe commit too. I am currently in on travel (Montreal until next week) I need to check what goes on with the raster profile tool, for translation I can't seem to find the folder in the SVN where we keep the language files. Does anyone remember its location? I'll get the Finnish file committed as soon as I can remember where it goes. Thanks for the translation Jukka. Why can some of the words not be translated? Is there not a Finnish equivalent? Could icons be used instead? The Sunburned Surveyor On Thu, Oct 7, 2010 at 5:40 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Here is the new Finnish language file with raster tool translations. It should be good enough for 1.4 release. Two remarks: Layer - Run Datastore Query has two new buttons 'View' and 'Fence' which can't be translated. Raster profil output window has tools and settings which can't be translated. -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 ___ 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/beautyoftheweb ___ 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/beautyoftheweb ___ 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/beautyoftheweb ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] a request for OJ 1.4
On 07.10.2010 14:39, Matthias Scholz wrote: I just ask if we can increase, as default value, java memory settings in Linux/Mac starter (oj_linux.sh) to 512M I just raised the default in trunk to 512MB for all plattforms .. ede -- 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 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] New Finnish language file
Hi, OK Stefan. I'll get the Finnish file committed today. No problem, it's done. Thanks Jukka. About the two buttons in Layer - Run Datastore Query, my fault, I did not internationalise the buttons. I'll see if I can manage to do it this week-end. No promise. I did not check for Raster profil and I think Stefan will not have much time to that. Michaël Landon On Fri, Oct 8, 2010 at 10:18 AM,stefan.steini...@geo.uzh.ch wrote: src/languages? but Michael can maybe commit too. I am currently in on travel (Montreal until next week) I need to check what goes on with the raster profile tool, for translation I can't seem to find the folder in the SVN where we keep the language files. Does anyone remember its location? I'll get the Finnish file committed as soon as I can remember where it goes. Thanks for the translation Jukka. Why can some of the words not be translated? Is there not a Finnish equivalent? Could icons be used instead? The Sunburned Surveyor On Thu, Oct 7, 2010 at 5:40 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Here is the new Finnish language file with raster tool translations. It should be good enough for 1.4 release. Two remarks: Layer - Run Datastore Query has two new buttons 'View' and 'Fence' which can't be translated. Raster profil output window has tools and settings which can't be translated. -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 ___ 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/beautyoftheweb ___ 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/beautyoftheweb ___ 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/beautyoftheweb ___ 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/beautyoftheweb ___ 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, 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 ___ 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] Saving a layer with empty geometries into shapefiles
Hey Larry, If I create a new layer and add points and a polygon, and right-click the layer name and select Save Selected Datasets, I get the error Use *** Save Dataset As *** to save layer:New. Then of course when I try Save Dataset As to save as a shapefile, I get the mixed geometries error. This is with OJ 1.3.1. -lreeder On Fri, Oct 8, 2010 at 3:56 PM, Larry Becker becker.la...@gmail.com wrote: 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-
Re: [JPP-Devel] New Finnish language file
Hi, Layer - Run Datastore Query has two new buttons 'View' and 'Fence' which can't be translated. Yes, I forgot to internationalized those buttons. Here are the translation I just included (please check for your language) : Fence cz : Ohrani\u010Duj\u00EDc\u00ED plocha de : Rahmen en : Fence es : Marco fi : Aitaus fr : Cadre hu : Keret it : Cornice ja : \u30D5\u30A7\u30F3\u30B9 pt : Quadro pt_BR : Quadro zh_CN : \u7bf1\u7b06 zh_HK : \u7bf1\u7b06 View cz : Pohled de : Ansicht en : View es : Vista fi : N\u00E4yt\u00E4 fr : Vue hu : N\u00E9zet it : Vista ja : \u8868\u793A pt : vista pt_BR : vista zh_CN : \u67e5\u770b zh_HK : \u67e5\u770b Michaël Raster profil output window has tools and settings which can't be translated. -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 ___ 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/beautyoftheweb___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel