Details

Description

When trying to export a feature layer to kml, I run into these issues:

if I try to enter a filename in the wizard screen (cfr attachment), I cannot enter any text

if I create an empty .kml file, I can select it (using the ... button), but when exporting a WFS or WMS layer, I get this error:

java.io.IOException: The selected resource is not a feature layer: fietsknooppunten
at eu.udig.tools.jgrass.kml.wizard.KmlExportWizard$1.run(KmlExportWizard.java:109)
at net.refractions.udig.ui.PlatformGIS$3$2$1.run(PlatformGIS.java:389)
at net.refractions.udig.ui.PlatformGIS$1.call(PlatformGIS.java:111)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

if I first export the layer to a shapefile and then try to export to kml, I get no errors, but the .kml file remains empty.

Andrea Antonello
added a comment - 29/Feb/12 12:32 AM The resource is currently checked to be resolving SimpleFeatureSource, maybe the WFS is not resolving to that I assume.
An example would make this fix quite easy.

I've experienced this issue as well on OS X 10.6.8, and I've attached a shapefile that has the reported behavior. I can't speak to how the file is actually written, but the "save" dialog behaves much more like an "open" dialog, in that it requires an existing KML file.

dmonego
added a comment - 20/Mar/12 4:52 PM - edited I've experienced this issue as well on OS X 10.6.8, and I've attached a shapefile that has the reported behavior. I can't speak to how the file is actually written, but the "save" dialog behaves much more like an "open" dialog, in that it requires an existing KML file.