Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Re: Problem exporting MultiPolygon(GeometryCollections) to Shapefile

Hi this is a known bug.  It is scheduled to be fixed for this release.

You can watch:
http://jira.codehaus.org/browse/UDIG-1182

for updates on its progress.

Jesse

On 9-Jan-07, at 5:34 AM, Javier Cámara wrote:

Could be a solution the use of the class net.refractions.udig.sld.SLD to check the GeometryTypes?

By example...

if (SLD.isPolygon(schema)) {
       writeToShapefile(polyFeatures, polyFile);
       addToCatalog(polyFile);
}
[.........]

in front of ....

CompareFilter polyFilter = createGeometryTypeFilter(geomName, Polygon.class.getSimpleName());
FeatureCollection polyFeatures = fs.getFeatures(polyFilter);
if (!polyFeatures.isEmpty()) { //alternatively .iterator.hasNext
       writeToShapefile(polyFeatures, polyFile);
       addToCatalog(polyFile);
}
[.........]

Otro saludo
--
Javier Cámara

Subdirección de Integración de Sistemas
E.P. Desarrollo Agrario y Pesquero
c/Bergantín, 39 - 41012 Sevilla.  España
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top