Web AppBuilder (developer edition) 2.17 - how to import KML? shapefile? gdb?

226
2
Jump to solution
07-30-2020 10:47 PM
MichaelLev
Occasional Contributor III

I need to develop a custom widget to import 2D or 3D KML or shapefile(s) or gdb into the 3D Scene.

I'm still a newbie, and in great need of instructions where to look and/or code examples.

Help will be appreciated.

Michael

0 Kudos
1 Solution

Accepted Solutions
MichaelLev
Occasional Contributor III

What worked for me - I developed 2 custom widgets -

  1. The first - uses my FME workspace in my FME cloud to convert Autocad  DWG file to zip file that contains all the shapefiles, and the widget downloads this zip.
  2. The second -  imports a zip file (from my PC) containing one or more shapefiles, into the 3D scene.

Michael

View solution in original post

0 Kudos
2 Replies
MichaelLev
Occasional Contributor III

I chose to use fme cloud for the transformation between formats and coordinate systems.

I based on the code example in FME Server Playground - Upload File In Session.

I adapted that code to function as an independent web app with my fme cloud, and it works perfect.

Now, I'm in midst of adapting the code to function in my custom widget,

and I'm in midst of developing/debugging. I've posted my problems in

Do javascript promises work well with lang.hitch? 

I'd appreciate help/hints from someone that has already done this,

and I'll report here when I succeed.

Michael

0 Kudos
MichaelLev
Occasional Contributor III

What worked for me - I developed 2 custom widgets -

  1. The first - uses my FME workspace in my FME cloud to convert Autocad  DWG file to zip file that contains all the shapefiles, and the widget downloads this zip.
  2. The second -  imports a zip file (from my PC) containing one or more shapefiles, into the 3D scene.

Michael

View solution in original post

0 Kudos