[Gvsig_english] gvsig 1.9 Build 1445-Errors opening dwg and kml-

Jorge Piera jorge.piera at iver.es
Thu Sep 3 09:42:02 CEST 2009


Hello Tiller.

The KMZ file that you have attached is a KML version 2.2 but gvSIG only 
support version 2.1. I hope that we will include support for version 2.2 
in a future.

By the other hand, I've included support for KMZ files in the KML 
driver. The functionality was implemented but it was not enabled by 
default. I will be included in next release.

Regards,
Jorge.

Tiller.Karl at nwsc.co.ug wrote:
>
> Dear all,
>
> I tested to load DWG and KML-files into gvSIG1.9 Build 1445.
>
> For some files the DWG-reader did not work and I got an error list 
> (see below).
>
> The KML-reader displays a message that all single objects are 
> displayed in one layer. Thats"s ok. The TOC is visible but does not 
> display the objects. I tested the zomm to layer extent, but also this 
> did not bring up the objects.
> The georeference is set to EPSG 4326.
> Pls find attached the file.
>
>
> It would also be very good to support KMZ-files.
>
> Best regards
> Karl
>
>
> ERROR List reading in DWG
> Error no capturado por el usuario
> java.lang.ClassCastException: java.awt.geom.Point2D$Double
>   
>  com.iver.cit.jdwglib.util.GisModelCurveCalculator.calculateGisModelBulge(GisModelCurveCalculator.java:247)
>   
>  com.iver.cit.jdwglib.dwg.objects.DwgPolyline2D.calculateGisModel(DwgPolyline2D.java:371)
>   
>  com.iver.cit.jdwglib.dwg.DwgFile.calculateGisModelDwgPolylines(DwgFile.java:503)
>   
>  com.iver.cit.gvsig.drivers.dwg.DwgMemoryDriver.initialize(DwgMemoryDriver.java:237)
>   
>  com.iver.cit.gvsig.fmap.layers.VectorialFileAdapter.start(VectorialFileAdapter.java:109)
>   
>  com.iver.cit.gvsig.fmap.layers.LayerFactory.createLayer(LayerFactory.java:225)
>   
>  com.iver.cit.gvsig.addlayer.fileopen.vectorial.VectorialFileOpen.createLayer(VectorialFileOpen.java:113)
>    com.iver.cit.gvsig.addlayer.fileopen.MyFile.createLayer(MyFile.java:41)
>   
>  com.iver.cit.gvsig.addlayer.fileopen.FileOpenWizard.execute(FileOpenWizard.java:404)
>   
>  com.iver.cit.gvsig.AddLayer.loadGenericWizardPanelLayers(AddLayer.java:233)
>    com.iver.cit.gvsig.AddLayer.addLayers(AddLayer.java:282)
>    com.iver.cit.gvsig.AddLayer.execute(AddLayer.java:178)
>   
>  com.iver.andami.plugins.ExtensionDecorator.execute(ExtensionDecorator.java:89)
>    com.iver.andami.ui.mdiFrame.MDIFrame.actionPerformed(MDIFrame.java:673)
>    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.AWTEventMulticaster.mouseReleased(Unknown Source)
>    java.awt.AWTEventMulticaster.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.pumpOneEventForHierarchy(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)
> Error no capturado por el usuario
> java.lang.ClassCastException: java.awt.geom.Point2D$Double
>   
>  com.iver.cit.jdwglib.util.GisModelCurveCalculator.calculateGisModelBulge(GisModelCurveCalculator.java:247)
>   
>  com.iver.cit.jdwglib.dwg.objects.DwgPolyline2D.calculateGisModel(DwgPolyline2D.java:371)
>   
>  com.iver.cit.jdwglib.dwg.DwgFile.calculateGisModelDwgPolylines(DwgFile.java:503)
>   
>  com.iver.cit.gvsig.drivers.dwg.DwgMemoryDriver.initialize(DwgMemoryDriver.java:237)
>   
>  com.iver.cit.gvsig.fmap.layers.VectorialFileAdapter.start(VectorialFileAdapter.java:109)
>   
>  com.iver.cit.gvsig.fmap.layers.LayerFactory.createLayer(LayerFactory.java:225)
>   
>  com.iver.cit.gvsig.addlayer.fileopen.vectorial.VectorialFileOpen.createLayer(VectorialFileOpen.java:113)
>    com.iver.cit.gvsig.addlayer.fileopen.MyFile.createLayer(MyFile.java:41)
>   
>  com.iver.cit.gvsig.addlayer.fileopen.FileOpenWizard.execute(FileOpenWizard.java:404)
>   
>  com.iver.cit.gvsig.AddLayer.loadGenericWizardPanelLayers(AddLayer.java:233)
>    com.iver.cit.gvsig.AddLayer.addLayers(AddLayer.java:282)
>    com.iver.cit.gvsig.AddLayer.execute(AddLayer.java:178)
>   
>  com.iver.andami.plugins.ExtensionDecorator.execute(ExtensionDecorator.java:89)
>    com.iver.andami.ui.mdiFrame.MDIFrame.actionPerformed(MDIFrame.java:673)
>    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.AWTEventMulticaster.mouseReleased(Unknown Source)
>    java.awt.AWTEventMulticaster.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.pumpOneEventForHierarchy(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)
> Error no capturado por el usuario
> java.lang.ClassCastException: java.awt.geom.Point2D$Double
>   
>  com.iver.cit.jdwglib.util.GisModelCurveCalculator.calculateGisModelBulge(GisModelCurveCalculator.java:247)
>   
>  com.iver.cit.jdwglib.dwg.objects.DwgPolyline2D.calculateGisModel(DwgPolyline2D.java:371)
>   
>  com.iver.cit.jdwglib.dwg.DwgFile.calculateGisModelDwgPolylines(DwgFile.java:503)
>   
>  com.iver.cit.gvsig.drivers.dwg.DwgMemoryDriver.initialize(DwgMemoryDriver.java:237)
>   
>  com.iver.cit.gvsig.fmap.layers.VectorialFileAdapter.start(VectorialFileAdapter.java:109)
>   
>  com.iver.cit.gvsig.fmap.layers.LayerFactory.createLayer(LayerFactory.java:225)
>   
>  com.iver.cit.gvsig.addlayer.fileopen.vectorial.VectorialFileOpen.createLayer(VectorialFileOpen.java:113)
>    com.iver.cit.gvsig.addlayer.fileopen.MyFile.createLayer(MyFile.java:41)
>   
>  com.iver.cit.gvsig.addlayer.fileopen.FileOpenWizard.execute(FileOpenWizard.java:404)
>   
>  com.iver.cit.gvsig.AddLayer.loadGenericWizardPanelLayers(AddLayer.java:233)
>    com.iver.cit.gvsig.AddLayer.addLayers(AddLayer.java:282)
>    com.iver.cit.gvsig.AddLayer.execute(AddLayer.java:178)
>   
>  com.iver.andami.plugins.ExtensionDecorator.execute(ExtensionDecorator.java:89)
>    com.iver.andami.ui.mdiFrame.MDIFrame.actionPerformed(MDIFrame.java:673)
>    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.AWTEventMulticaster.mouseReleased(Unknown Source)
>    java.awt.AWTEventMulticaster.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.pumpOneEventForHierarchy(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_internacional mailing list
> Gvsig_internacional at listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>   


-- 
Jorge Piera Llodrá
Especialista en Servicios OGC
Equipo de desarrollo gvSIG
IVER TI S.A.
C/ Lérida, 20
46009-Valencia (Spain)
Tlf.+34902252540
www.iver.es
www.gvsig.com  



More information about the Gvsig_internacional mailing list