uDIG
  1. uDIG
  2. UDIG-1888

KML Export Wizard does not work

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: UDIG 1.3.1
    • Fix Version/s: UDIG 1.3.2
    • Component/s: tools and editing
    • Labels:
      None
    • Environment:
      OS X 10.7.3

      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.

        Activity

        Hide
        Andrea Antonello added a comment -
        WMS can't be exported to kml.

        Do you have an example WFS to try on? Or at least a shapefile that does not export properly?
        Show
        Andrea Antonello added a comment - WMS can't be exported to kml. Do you have an example WFS to try on? Or at least a shapefile that does not export properly?
        Hide
        Andrea Antonello added a comment -
        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.
        Show
        Andrea Antonello added a comment - 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.
        Hide
        dmonego added a comment - - 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.
        Show
        dmonego added a comment - - 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.
        dmonego made changes -
        Field Original Value New Value
        Attachment house2012.zip [ 59291 ]
        Frank Gasdorf made changes -
        Summary KML Export Wizard does not wokr KML Export Wizard does not work
        Hide
        Frank Gasdorf added a comment -
        Confirmed the Bug, changed the FileDialog SWT style from SWT.OPEN to SWT.SAVE -> export of a shapefile was successful (see commit https://github.com/uDig/udig-platform/commit/2571e7d3f04f50711362d2959d88416fbf0d6262)
        Show
        Frank Gasdorf added a comment - Confirmed the Bug, changed the FileDialog SWT style from SWT.OPEN to SWT.SAVE -> export of a shapefile was successful (see commit https://github.com/uDig/udig-platform/commit/2571e7d3f04f50711362d2959d88416fbf0d6262)
        Frank Gasdorf made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s UDIG 1.3.2 [ 18235 ]
        Resolution Fixed [ 1 ]
        Frank Gasdorf made changes -
        Assignee Frank Gasdorf [ fgdrf1976 ]

          People

          • Assignee:
            Frank Gasdorf
            Reporter:
            Luc Peeters
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: