Skip to main content

Add Layer From File Tools

Comments

6 comments

  • Ryan Kelley

    I have the same issue. Did you ever get this resolved?

    0
  • Ryan Kelley

    We have this failing in SaaS and on prem environments. And all out of the box in both Designer mode and Launched mode.image

    -1
  • Ryan Kelley

    last comment here... why does the Import from Shapefile option only ask for the .shp? What about the .prj and .dbf? How would it know where to place the geometries and list tabular info.

    0
  • Brian Cunningham

    Howdy Ryan,

     

    I haven't tested in a while if the uploading of csv and xlsx is working, but we do have the uploading of .shp working. I recall that this happened after an upgrade - I do not recall what version we were on when I posted this last year, but if you're on their SaaS, then you should be good to go.

     

    The way to make the .shp upload work is to zip all of the associated .shp files up together and then upload that zip file. Not terribly intuitive, but that does the trick.

     

    Let me know if you have any trouble.

     

    Brian

    0
  • Ryan Kelley

    Thanks Brian. Appreciate the response. Uploading a .zip of proper shapefile files did work in both SaaS and on prem. Unfortunately, I don't see any way to customize that dialog box to give the end user some more direction... there is probably a few custom commands to add to the Edit Custom Command section to indicate the need.

    0
  • Ryan Kelley

    In case anyone wants the syntax to explain to users they need to .zip the shp, prj, and dbf in a pop up prior to the shapefile dialog... see below. Thanks to colleague @James Siebert? for providing.

     

    [

    {

    "name": "ui.alert",

    "arguments": {

    "buttonText": "OK",

    "message": "Please zip your .shp, .prj, and .dbf files into a zip file. Then, upload that zip file when prompted to select your file on the next dialog box",

    "title": "Tool Tips"

    }

    },

    "system.read-file",

    "results.from-shapefile",

    "results.convert-to-layer",

    "map.add-layers"

    ]

    Place in:

    image

    1

Please sign in to leave a comment.