Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-16 Thread edgar . soldin
right.. fixed GeometryConverter for empty -> point conversions in trunk. ..ede On 14.03.2014 21:48, Michael Michaud wrote: > Hi, > > There are hard constraints for geometries to be valid in JTS (I think > point < 2, linestring > 1, polygon > 3), > but empty geometries are considered as valid fo

Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-15 Thread Michael Michaud
Hi, Just commit a small modification in ShapefileWriter code. Empty geometries are now skipped to check if the layer has mixed geometries. ShapefileWriter should be able to write any kind of empty geometry into any kind of shapefile. Warning : en empty point written into a linestring shapefile wil

Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-14 Thread Michael Michaud
Hi, There are hard constraints for geometries to be valid in JTS (I think point < 2, linestring > 1, polygon > 3), but empty geometries are considered as valid for every type. There WKT version are POINT EMPTY LINESTRING EMPTY POLYGON EMPTY ... A weird consequence is that POLYGON EMPTY != LINEST

Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-14 Thread edgar . soldin
sorry, right.. i seem to remember geometrical objects to be tightly regulated in JTS, e.g. points are not allowed to be les or more than 1 point. funny enough i can create a POINT EMPTY manually. weird. ..ede On 14.03.2014 17:03, Rahkonen Jukka (Tike) wrote: > Have you tried? Create a feature w

Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-14 Thread Rahkonen Jukka (Tike)
Have you tried? Create a feature with WKT GEOMETRYCOLLECTION EMPTY For me the geometryconverter says that only points can be converted into "Point". The desired result, I believe, would be POINT EMPTY. -Jukka- edgar.soldin wrote: > > or convert selected to whatever you need with Geometry C

Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-14 Thread edgar . soldin
or convert selected to whatever you need with Geometry Converter (context menu or tools/edit geoms). ..ede On 14.03.2014 04:53, Larry Reeder wrote: > Can you use Edit-->Selection--Select by Geometry type, select all empty > geometries, and delete them, then save the layer? > > > -lreeder >

Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-14 Thread Rahkonen Jukka (Tike)
Hi, JML is not an option because no other software reads it and I cannot send data back to Oracle. A locally installed PostGIS could work but I will need to test how it behaves with empty geometries. -Jukka- Michael Michaud wrote: Hi, Yes I can but I do not want to. The features are real and

Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-14 Thread Michael Michaud
Hi, Yes I can but I do not want to. The features are real and have valuable attributes, they are just missing the geometries because they have not been digitized yet. I read them from Oracle with DB Query Plugin but I must save them to a temporary format because I can't save them back to Or

Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-14 Thread Rahkonen Jukka (Tike)
Hi, Yes I can but I do not want to. The features are real and have valuable attributes, they are just missing the geometries because they have not been digitized yet. I read them from Oracle with DB Query Plugin but I must save them to a temporary format because I can't save them back to Oracl

Re: [JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-13 Thread Larry Reeder
Can you use Edit-->Selection--Select by Geometry type, select all empty geometries, and delete them, then save the layer? -lreeder On Thu, Mar 13, 2014 at 3:04 PM, Rahkonen Jukka (Tike) < jukka.rahko...@mmmtike.fi> wrote: > Hi, > > OpenJUMP creates in some circumstances GEOMETRYCOLLECTION EM

[JPP-Devel] Saving layer with empty geometries as shapefiles

2014-03-13 Thread Rahkonen Jukka (Tike)
Hi, OpenJUMP creates in some circumstances GEOMETRYCOLLECTION EMPTY default geometry if real geometry is missing. If other features are for example points this layer cannot be saved into shapefile because of mixed geometrytypes. However, if empty geometry is edited with WKT editor into POINT E