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

Tiller.Karl at nwsc.co.ug Tiller.Karl at nwsc.co.ug
Thu Sep 3 14:06:04 CEST 2009


Dear Carlos,

thanks for your advise to change the KML-version number to 2.1!

<kml xmlns="http://www.opengis.net/kml/2.1" xmlns:gx="
http://www.google.com/kml/ext/2.1" xmlns:kml="
http://www.opengis.net/kml/2.1" xmlns:atom="http://www.w3.org/2005/Atom">

However it does not work!  Do you have an advice?

I test to digitize within Google Earth (5.0.11733.9347) and the version of 
the kml-file is produced by Google Earth.  From the point of a work 
process it is not practicable to ask a user to manipulate the version 
number. 

Are there any remarks about the DWG-Problem?

Greetings from Kampala

Karl





Carlos Sánchez Periñán <csanchez at prodevelop.es> 
Sent by: gvsig_internacional-bounces at listserv.gva.es
03/09/2009 10:40
Please respond to
Users and Developers mailing list <gvsig_internacional at listserv.gva.es>


To
Users and Developers mailing list <gvsig_internacional at listserv.gva.es>
cc
gvsig_internacional at runas.cap.gva.es
Subject
Re: [Gvsig_english] gvsig 1.9 Build 1445-Errors opening dwg and kml-






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>


_______________________________________________
Gvsig_internacional mailing list
Gvsig_internacional at listserv.gva.es
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20090903/4058f653/attachment-0001.htm 


More information about the Gvsig_internacional mailing list