[Gvsig_english] Geoprocessing tools::strange error appears when trying to clip, intersect, ...

Wolfgang Qual wolfgang.qual at gmx.net
Wed Mar 7 17:25:05 CET 2007


Hi Alvaro,
I first have to talk with my colleagues about giving away these datasets. But 
I had a closer look at the data using ogrinfo:

wqual at wolfgang:~$ ogrinfo /data/muc_daten_shapes/block.shp
ERROR 4: Unable to open /data/muc_daten_shapes/block.shp 
or /data/muc_daten_shapes/block.SHP.
Had to open data source read-only.
INFO: Open of `/data/muc_daten_shapes/block.shp'
using driver `ESRI Shapefile' successful.
1: block (3D Polygon)

So, it is a 3d-polygon theme. I remember umn mapserver and grass/QGIS having 
problems with this type of shapefile (or to be more exact, the gdal-library).

Therefore, I converted this shapefile into a "normal" 2d-Shapefile, using 
ogr2ogr:
wqual at wolfgang:~$ ogr2ogr -f "ESRI Shapefile" blockneu.shp -nlt 
POLYGON /data/muc_daten_shapes/block.shp

In the third step, I repeated the intersection. Again, no result shapefile was 
created, but the former error message did not appear again, but another one 
(or more within the information console of gvSIG):

ava.lang.NullPointerException java.lang.NullPointerException: 
null     com.iver.cit.gvsig.fmap.edition.VectorialEditableAdapter.setOriginalVectorialAdapter(VectorialEditableAdapter.java:312)     com.iver.cit.gvsig.fmap.layers.FLyrVect.setEditing(FLyrVect.java:1160)     com.iver.cit.gvsig.gui.cad.MyFinishAction.performAction(MyFinishAction.java:258)     jwizardcomponent.DefaultJWizardComponents.finishButton_actionPerformed(DefaultJWizardComponents.java:206)     jwizardcomponent.DefaultJWizardComponents$4.actionPerformed(DefaultJWizardComponents.java:194)     javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)     javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)     javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)     javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)     javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)     java.awt.Component.processMouseEvent(Component.java:5100)     java.awt.Component.processEvent(Component.java:4897)     java.awt.Container.processEvent(Container.java:1569)     java.awt.Component.dispatchEventImpl(Component.java:3615)     java.awt.Container.dispatchEventImpl(Container.java:1627)     java.awt.Component.dispatchEvent(Component.java:3477)     java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)     java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)     java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)     java.awt.Container.dispatchEventImpl(Container.java:1613)     java.awt.Window.dispatchEventImpl(Window.java:1606)     java.awt.Component.dispatchEvent(Component.java:3477)     java.awt.EventQueue.dispatchEvent(EventQueue.java:480)     com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)     java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)     java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)     java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
patchThread.java:141)     java.awt.Dialog$1.run(Dialog.java:540)     java.awt.Dialog.show(Dialog.java:561)     java.awt.Component.show(Component.java:1133)     java.awt.Component.setVisible(Component.java:1088)     com.iver.core.mdiManager.NewSkin.addJDialog(NewSkin.java:510)     com.iver.core.mdiManager.NewSkin.addWindow(NewSkin.java:232)     com.iver.cit.gvsig.CreateNewLayer.execute(CreateNewLayer.java:120)     com.iver.andami.plugins.ExtensionDecorator.execute(ExtensionDecorator.java:87)     com.iver.andami.ui.mdiFrame.MDIFrame.actionPerformed(MDIFrame.java:620)     javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)     javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)     javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)     javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)     javax.swing.AbstractButton.doClick(AbstractButton.java:289)     javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)     javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)     java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)     java.awt.Component.processMouseEvent(Component.java:5100)     java.awt.Component.processEvent(Component.java:4897)     java.awt.Container.processEvent(Container.java:1569)     java.awt.Component.dispatchEventImpl(Component.java:3615)     java.awt.Container.dispatchEventImpl(Container.java:1627)     java.awt.Component.dispatchEvent(Component.java:3477)     java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)     java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)     java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)     java.awt.Container.dispatchEventImpl(Container.java:1613)     java.awt.Component.dispatchEvent(Component.java:3477)     java.awt.EventQueue.dispatchEvent(EventQueue.java:480)     com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.
java:58)     java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)     java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)     java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)     java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)     java.awt.EventDispatchThread.run(EventDispatchThread.java:100) 
null com.iver.cit.gvsig.geoprocess.core.fmap.GeoprocessException: Error al 
procesar el feature de una capa durante el geoproceso 
interseccion     com.iver.cit.gvsig.geoprocess.impl.intersection.fmap.IntersectionGeoprocess$IntersectionMonitorableTask.run(IntersectionGeoprocess.java:369)     com.iver.utiles.swing.threads.MonitorableDecoratorMainFirst.run(MonitorableDecoratorMainFirst.java:152)     com.iver.andami.PluginServices$2.construct(PluginServices.java:382)     com.iver.utiles.swing.threads.SwingWorker$2.run(SwingWorker.java:108)     java.lang.Thread.run(Thread.java:534) 
null com.iver.cit.gvsig.geoprocess.core.fmap.GeoprocessException: Error al 
procesar el feature de una capa durante el geoproceso 
interseccion     com.iver.cit.gvsig.geoprocess.impl.intersection.fmap.IntersectionGeoprocess$IntersectionMonitorableTask.run(IntersectionGeoprocess.java:369)     com.iver.utiles.swing.threads.MonitorableDecoratorMainFirst.run(MonitorableDecoratorMainFirst.java:152)     com.iver.andami.PluginServices$2.construct(PluginServices.java:382)     com.iver.utiles.swing.threads.SwingWorker$2.run(SwingWorker.java:108)     java.lang.Thread.run(Thread.java:534)

Afterwards, I only selected some features of the input theme (the input theme 
is rather big) and calculated the intersection only for the selected 
features. Result: I got a nice result shapefile.

I have to say that I use a quite old pc for my testings at the moment. Would 
it help to run this on a newer machine? Or is it a problem with the 
java-application, which is independent from the power of my machine (what 
would be bad somehow...)?

Greetings,
Wolfgang

On Wednesday 07 March 2007 16:30, Alvaro Zabala wrote:
> Hi Wolfgang!
>
> The problem could be in the input layers.
>
> What is the format of these layers? ¿SHP, DXF, GML or Postgis?
>
> Sometimes, we see a DXF entity as a polygon, but internally it is a closed
> polyline (and overlay geoprocessses like intersection, union, and so dont
> work with polylines).
>
> Another cause of error could be wrong geometries....etc
>
> Could you send me to my private mail the files youre working with to make a
> test?
>
> Best regards.
>
> Alvaro.
>
> 2007/3/7, Wolfgang Qual <wolfgang.qual at gmx.net>:
> > Hi list,
> > I would like to test the geoprocessing-functions of gvSIG. However, Clip
> > and
> > Intersect did not work correctly by now. I always get the same error
> > message:
> > Result layer is empty. Check for possible error.
> > I do not really understand this, as - within the view - it is clear to
> > see that there are overlapping areas, therefore, I would expect a result
> > for clip
> > or intersect in this case.
> >
> > Is there a known bug in version 1.0.1 (running on Linux, Debian).
> >
> > Comments are appreciated!
> >
> > Best regards,
> > Wolfgang
> >
> >
> > _______________________________________________
> > Gvsig_internacional mailing list
> > Gvsig_internacional at runas.cap.gva.es
> > http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional



More information about the Gvsig_internacional mailing list