Upload KML file in the workflow
Is there a way to upload a kml file in the workflow and to visualize that geometry in the viewer?
0
-
Amrit,
You could actually use the out of the box 'Upload Data' tool that comes with the HTML viewer - defined as:
{
"id": "UploadDataButton",
"type": "button",
"iconUri": "Resources/Images/Icons/Toolbar/upload-24.png",
"command": "UploadData",
"commandParameter": null,
"hideOnDisable": false,
"name": "@language-toolbar-tasks-upload-data",
"tooltip": "@language-toolbar-tasks-upload-data-tooltip"
}
in the desktop.json.js file for example
This will allow you to upload to a new temporary layer in the Viewer, and control its symbology on import..GF
0 -
Amrit,
Gareth's solution should work for you.
DDS also has a free Workflow 4 Activity on Github, if you need to parse the KML. You can find it at https://github.com/DigitalDataServices/KMLtoFeatureSet which includes the DLL, documentation and an example workflow. It's four years old but still seems to work for our purposes.
Best,
-Tom0 -
Hi,
both these solutions mentioned above dont seem to be compatible with VertiGIS studio web 5.36.0 and workflow 5.45.1 (these are the current versions that we are using in our company. I know that the latest update from VertiGIS includes kml import as well however I dont know when the organization plans to update VertiGIS since they had done it recently. My questions is that is there any other way in which I can import KML files in VertiGIS studio?
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare