[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] [jira] Created: (UDIG-1182) Problem exporting MultiPolygon(GeometryCollections) to Shapefile
|
Problem exporting MultiPolygon(GeometryCollections) to Shapefile
----------------------------------------------------------------
Key: UDIG-1182
URL: http://jira.codehaus.org/browse/UDIG-1182
Project: uDIG
Issue Type: Bug
Components: layer
Affects Versions: UDIG 1.1.RC8
Reporter: Jesse Eichar
Priority: Critical
Fix For: UDIG 1.1.0
we have an exporting problem...
Scenario:
1) There is a MemoryLayer with a MultiPolygon GeometryType
2) We need to export this layer to a shapefile
3) Using the Export Wizard, nothing happen
Shoulders to the wheel!:
Debugging the uDig code, we find the class CatalogExport, which contains an internal CatalogExportWizard class.
This internal class has the method performFinish to realize the effective export of a layer and, I think, it has the problem...
We could see [lines 198-231] that only the GeometryTypes (Point, Line and Polygon) will be exported...and all the GeometryCollection types will be omitted.
I thought that MultiPolygon extends Polygon class, but inspecting the JTS Geometry hierarchy we find:
Geometry
+---------> GeometryCollection
| +----------> MultiLineString
| +----------> MultiPoint
| +----------> Multipolygon
+---------> LineString
+---------> Point
+---------> Polygon
And, obviously, the cast (Polygon) discard the MultiPolygon GeometryType...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira