[Gvsig_usuarios] Error en el geoproceso Diferencia

Nacho Uve nachouve en gmail.com
Mar Ago 30 12:13:44 CEST 2011


Hola,

Prueba a hacerlo con el algoritmo de SEXTANTE en lugar con el que viene en
gvSIG. A ver si es algo que ya se corrigió en SEXTANTE, pero tiene pinta a
que las capas tienen algún error interno en las geometrías.  :/

Ya nos cuentas,
Nacho V



El 30 de agosto de 2011 09:32, Jiménez, Maria Jesús <
MariaJesus.Jimenez en icc.cat> escribió:

> Gracias, ****
>
> ** **
>
> Efectivamente tenía capas agrupadas en el TOC, pero no las utilizo para
> realizar el geoproceso. Las he desagrupado y se realiza el corte, pero la
> capa resultante está vacía y sale el siguiente mensaje de error:****
>
> ** **
>
> ¿Alguna otra idea?****
>
> ** **
>
> Muchas gracias!!!!****
>
> ** **
>
> java.lang.ClassCastException: com.iver.cit.gvsig.fmap.layers.FLayers cannot
> be cast to com.iver.cit.gvsig.fmap.layers.FLyrVect
> java.lang.ClassCastException: com.iver.cit.gvsig.fmap.layers.FLayers cannot
> be cast to com.iver.cit.gvsig.fmap.layers.FLyrVect
>
>     com.iver.cit.gvsig.geoprocess.core.gui.AbstractGeoprocessGridbagPanel.initSelectedItemsJCheckBox(AbstractGeoprocessGridbagPanel.java:207)
>
>     com.iver.cit.gvsig.geoprocess.core.gui.GeoProcessingOverlayPanel2.addSpecificDesign(GeoProcessingOverlayPanel2.java:125)
>
>     com.iver.cit.gvsig.geoprocess.core.gui.AbstractGeoprocessGridbagPanel.initialize(AbstractGeoprocessGridbagPanel.java:190)
>
>     com.iver.cit.gvsig.geoprocess.core.gui.AbstractGeoprocessGridbagPanel.(AbstractGeoprocessGridbagPanel.java:173)
>
>     com.iver.cit.gvsig.geoprocess.core.gui.GeoProcessingOverlayPanel2.(GeoProcessingOverlayPanel2.java:91)
>
>     com.iver.cit.gvsig.geoprocess.impl.difference.DifferenceGeoprocessPlugin.getGeoprocessPanel(DifferenceGeoprocessPlugin.java:113)
>
>     com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager.openGeoprocessPanel(GeoprocessManager.java:335)
>
>     com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager$2.actionPerformed(GeoprocessManager.java:354)
>     javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>     javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>     javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>     javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>     javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
> Source)
>     java.awt.Component.processMouseEvent(Unknown Source)
>     javax.swing.JComponent.processMouseEvent(Unknown Source)
>     java.awt.Component.processEvent(Unknown Source)
>     java.awt.Container.processEvent(Unknown Source)
>     java.awt.Component.dispatchEventImpl(Unknown Source)
>     java.awt.Container.dispatchEventImpl(Unknown Source)
>     java.awt.Component.dispatchEvent(Unknown Source)
>     java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>     java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>     java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>     java.awt.Container.dispatchEventImpl(Unknown Source)
>     java.awt.Window.dispatchEventImpl(Unknown Source)
>     java.awt.Component.dispatchEvent(Unknown Source)
>     java.awt.EventQueue.dispatchEvent(Unknown Source)
>
>     com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)
>     java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>     java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.run(Unknown Source)
> null
> com.vividsolutions.jts.geom.TopologyException: found non-noded intersection
> between LINESTRING ( 444.33380216080695 -22.281019581481814,
> 430.5369421430514 -95.01879892498255 ) and LINESTRING ( 430.8855991665623
> -102.73550731502473, 430.31244823074667 -41.40835718251765 ) [
> (430.8004947573927, -93.6293355338422, NaN) ]
>
>     com.vividsolutions.jts.noding.FastNodingValidator.checkValid(FastNodingValidator.java:109)
>
>     com.vividsolutions.jts.geomgraph.EdgeNodingValidator.checkValid(EdgeNodingValidator.java:94)
>
>     com.vividsolutions.jts.geomgraph.EdgeNodingValidator.checkValid(EdgeNodingValidator.java:59)
>
>     com.vividsolutions.jts.operation.overlay.OverlayOp.computeOverlay(OverlayOp.java:170)
>
>     com.vividsolutions.jts.operation.overlay.OverlayOp.getResultGeometry(OverlayOp.java:127)
>
>     com.vividsolutions.jts.operation.overlay.OverlayOp.overlayOp(OverlayOp.java:66)
>
>     com.vividsolutions.jts.operation.overlay.snap.SnapOverlayOp.getResultGeometry(SnapOverlayOp.java:68)
>
>     com.vividsolutions.jts.operation.overlay.snap.SnapOverlayOp.overlayOp(SnapOverlayOp.java:25)
>
>     com.vividsolutions.jts.operation.overlay.snap.SnapIfNeededOverlayOp.getResultGeometry(SnapIfNeededOverlayOp.java:76)
>
>     com.vividsolutions.jts.operation.overlay.snap.SnapIfNeededOverlayOp.overlayOp(SnapIfNeededOverlayOp.java:25)
>     com.vividsolutions.jts.geom.Geometry.union(Geometry.java:1140)
>
>     com.vividsolutions.jts.precision.EnhancedPrecisionOp.union(EnhancedPrecisionOp.java:92)
>
>     com.iver.cit.gvsig.geoprocess.core.util.JTSFacade.union(JTSFacade.java:91)
>
>     com.iver.cit.gvsig.geoprocess.impl.difference.fmap.DifferenceVisitor$UnionOverlaysVisitor.visit(DifferenceVisitor.java:237)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.FilterRectVisitor.visit(FilterRectVisitor.java:89)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.DefaultStrategy.process(DefaultStrategy.java:398)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.DefaultStrategy.process(DefaultStrategy.java:415)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.ShpStrategy.process(ShpStrategy.java:691)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.ShpStrategy.process(ShpStrategy.java:670)
>
>     com.iver.cit.gvsig.geoprocess.impl.difference.fmap.DifferenceVisitor.visit(DifferenceVisitor.java:271)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.DefaultStrategy.process(DefaultStrategy.java:398)
>
>     com.iver.cit.gvsig.geoprocess.impl.difference.fmap.DifferenceGeoprocess$DifferenceMonitorableTask.run(DifferenceGeoprocess.java:362)
>
>     com.iver.utiles.swing.threads.MonitorableDecoratorMainFirst.run(MonitorableDecoratorMainFirst.java:155)
>     com.iver.andami.PluginServices$1.construct(PluginServices.java:405)
>     com.iver.utiles.swing.threads.SwingWorker$2.run(SwingWorker.java:108)
>     java.lang.Thread.run(Unknown Source)
> null
> com.vividsolutions.jts.geom.TopologyException: found non-noded intersection
> between LINESTRING ( 444.33380216080695 -22.281019581481814,
> 430.5369421430514 -95.01879892498255 ) and LINESTRING ( 430.8855991665623
> -102.73550731502473, 430.31244823074667 -41.40835718251765 ) [
> (430.8004947573927, -93.6293355338422, NaN) ]
>
>     com.vividsolutions.jts.noding.FastNodingValidator.checkValid(FastNodingValidator.java:109)
>
>     com.vividsolutions.jts.geomgraph.EdgeNodingValidator.checkValid(EdgeNodingValidator.java:94)
>
>     com.vividsolutions.jts.geomgraph.EdgeNodingValidator.checkValid(EdgeNodingValidator.java:59)
>
>     com.vividsolutions.jts.operation.overlay.OverlayOp.computeOverlay(OverlayOp.java:170)
>
>     com.vividsolutions.jts.operation.overlay.OverlayOp.getResultGeometry(OverlayOp.java:127)
>
>     com.vividsolutions.jts.operation.overlay.OverlayOp.overlayOp(OverlayOp.java:66)
>
>     com.vividsolutions.jts.operation.overlay.snap.SnapOverlayOp.getResultGeometry(SnapOverlayOp.java:68)
>
>     com.vividsolutions.jts.operation.overlay.snap.SnapOverlayOp.overlayOp(SnapOverlayOp.java:25)
>
>     com.vividsolutions.jts.operation.overlay.snap.SnapIfNeededOverlayOp.getResultGeometry(SnapIfNeededOverlayOp.java:76)
>
>     com.vividsolutions.jts.operation.overlay.snap.SnapIfNeededOverlayOp.overlayOp(SnapIfNeededOverlayOp.java:25)
>     com.vividsolutions.jts.geom.Geometry.union(Geometry.java:1140)
>
>     com.vividsolutions.jts.precision.EnhancedPrecisionOp.union(EnhancedPrecisionOp.java:92)
>
>     com.iver.cit.gvsig.geoprocess.core.util.JTSFacade.union(JTSFacade.java:91)
>
>     com.iver.cit.gvsig.geoprocess.impl.difference.fmap.DifferenceVisitor$UnionOverlaysVisitor.visit(DifferenceVisitor.java:237)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.FilterRectVisitor.visit(FilterRectVisitor.java:89)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.DefaultStrategy.process(DefaultStrategy.java:398)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.DefaultStrategy.process(DefaultStrategy.java:415)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.ShpStrategy.process(ShpStrategy.java:691)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.ShpStrategy.process(ShpStrategy.java:670)
>
>     com.iver.cit.gvsig.geoprocess.impl.difference.fmap.DifferenceVisitor.visit(DifferenceVisitor.java:271)
>
>     com.iver.cit.gvsig.fmap.operations.strategies.DefaultStrategy.process(DefaultStrategy.java:398)
>
>     com.iver.cit.gvsig.geoprocess.impl.difference.fmap.DifferenceGeoprocess$DifferenceMonitorableTask.run(DifferenceGeoprocess.java:362)
>
>     com.iver.utiles.swing.threads.MonitorableDecoratorMainFirst.run(MonitorableDecoratorMainFirst.java:155)
>     com.iver.andami.PluginServices$1.construct(PluginServices.java:405)
>     com.iver.utiles.swing.threads.SwingWorker$2.run(SwingWorker.java:108)
> ****
>
> ** **
>
> ** **
>
> ** **
>
> *María Jesús Jiménez Acinas*****
>
> ** **
>
> ** **
>
> *De:* gvsig_usuarios-bounces en listserv.gva.es [mailto:
> gvsig_usuarios-bounces en listserv.gva.es] *En nom de *Nacho Uve
> *Enviat:* dimarts, 30 / agost / 2011 09:19
> *Per a:* Lista de Usuarios de gvSIG
> *Tema:* Re: [Gvsig_usuarios] Error en el geoproceso Diferencia****
>
> ** **
>
> Hola,
>
> ¿Tienes bajo una agrupación en el ToC las capas que estás intentando cortar
> ? Sólo por probar prueba a sacarlas y a intentarlo. Me suena de que había
> algún error con eso.
>
> Un saludo,
> Nacho V
>
>
> ****
>
> El 30 de agosto de 2011 08:52, Jiménez, Maria Jesús <
> MariaJesus.Jimenez en icc.cat> escribió:****
>
> Buenos días,****
>
>  ****
>
> Utilizo gvSIG 1.11 y quiero realizar el geoproceso “Diferencia” con dos
> capas shp. Cuando doy al botón “ejecutar geogroceso” sale el siguiente
> mensaje de error.****
>
>  ****
>
> ¿Alguna idea de cómo resolverlo? ****
>
>  ****
>
> Gracias,****
>
>  ****
>
> María Jesús****
>
>  ****
>
> java.lang.ClassCastException: com.iver.cit.gvsig.fmap.layers.FLayers cannot
> be cast to com.iver.cit.gvsig.fmap.layers.FLyrVect
> java.lang.ClassCastException: com.iver.cit.gvsig.fmap.layers.FLayers cannot
> be cast to com.iver.cit.gvsig.fmap.layers.FLyrVect
>
>     com.iver.cit.gvsig.geoprocess.core.gui.AbstractGeoprocessGridbagPanel.initSelectedItemsJCheckBox(AbstractGeoprocessGridbagPanel.java:207)
>
>     com.iver.cit.gvsig.geoprocess.core.gui.GeoProcessingOverlayPanel2.addSpecificDesign(GeoProcessingOverlayPanel2.java:125)
>
>     com.iver.cit.gvsig.geoprocess.core.gui.AbstractGeoprocessGridbagPanel.initialize(AbstractGeoprocessGridbagPanel.java:190)
>
>     com.iver.cit.gvsig.geoprocess.core.gui.AbstractGeoprocessGridbagPanel.(AbstractGeoprocessGridbagPanel.java:173)
>
>     com.iver.cit.gvsig.geoprocess.core.gui.GeoProcessingOverlayPanel2.(GeoProcessingOverlayPanel2.java:91)
>
>     com.iver.cit.gvsig.geoprocess.impl.difference.DifferenceGeoprocessPlugin.getGeoprocessPanel(DifferenceGeoprocessPlugin.java:113)
>
>     com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager.openGeoprocessPanel(GeoprocessManager.java:335)
>
>     com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager$2.actionPerformed(GeoprocessManager.java:354)
>     javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>     javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>     javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>     javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>     javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
> Source)
>     java.awt.Component.processMouseEvent(Unknown Source)
>     javax.swing.JComponent.processMouseEvent(Unknown Source)
>     java.awt.Component.processEvent(Unknown Source)
>     java.awt.Container.processEvent(Unknown Source)
>     java.awt.Component.dispatchEventImpl(Unknown Source)
>     java.awt.Container.dispatchEventImpl(Unknown Source)
>     java.awt.Component.dispatchEvent(Unknown Source)
>     java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>     java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>     java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>     java.awt.Container.dispatchEventImpl(Unknown Source)
>     java.awt.Window.dispatchEventImpl(Unknown Source)
>     java.awt.Component.dispatchEvent(Unknown Source)
>     java.awt.EventQueue.dispatchEvent(Unknown Source)
>
>     com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)
>     java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>     java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.run(Unknown Source) ****
>
>  ****
>
>
> _______________________________________________
> gvSIG_usuarios mailing list
> gvSIG_usuarios en listserv.gva.es
>
> Para ver histórico de mensajes, editar sus preferencias de usuario o darse
> de baja en esta lista, acuda a la siguiente dirección:
>
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_usuarios****
>
>
>
>
> -- ****
>
> Juan Ignacio Varela García ****
>
> ** **
>
> ** **
>
> _______________________________________________
> gvSIG_usuarios mailing list
> gvSIG_usuarios en listserv.gva.es
>
> Para ver histórico de mensajes, editar sus preferencias de usuario o darse
> de baja en esta lista, acuda a la siguiente dirección:
>
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_usuarios
>
>


-- 
Juan Ignacio Varela García
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://listserv.gva.es/pipermail/gvsig_usuarios/attachments/20110830/a4d1d7b2/attachment.htm 


Más información sobre la lista de distribución gvSIG_usuarios