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

Carlos Sánchez Periñán csanchez at prodevelop.es
Thu Sep 3 09:39:35 CEST 2009


Tiller.Karl at nwsc.co.ug escribió:
>
> 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
>   

Hi Karl,

About KML and gvSIG 1.9 RC1
gvSIG can't read KML 2.2 but there's a cheat to read some KML 2.2, 
simply editing the KML file and switching the tag "version=2.2" to 
"version=2.1".
So if you want yo can send me the KML file you have to read and I try to 
test it and see where is the problem.

Regards.

 
-- 

	Carlos Sánchez Periñán
	Equipo desarrollo GIS
	Prodevelop S.L.
	Tel :  963510612
	E-mail : *csanchez at prodevelop.es* <mailto:csanchez at prodevelop.es>




More information about the Gvsig_internacional mailing list