Demo of a geocode workflow
I'm new to workflows...
There is one steep learning curve to workflows in geocortex.
Does anyone have a demo of a geocode and zoom workflow? Or should I stick trying to work out the mail.
I want to a smart one moves from various geocoders depending on results. That's the dream anyway.
-
Hopefully this will get you started. It basically replicates our geocoding tool in a workflow, but it would provide a basis to expand on this if you want.
Some points to note:
- You'll need to replace the geocoder with one for the area where you are located. Right now it is all ready to geocode in British Columbia. Your geocoder might also come with a different set of arguments -- press the refresh button by the Geocode Service Url to see what they are.
- If you want to give people an opportunity to start over from within the workflow if no results are returned, you will need to implement it in a Flowchart rather than a big long Sequence so that you can have branching paths based on the results of dialog boxes.
- Two main paths are implemented, one for a single result and one for many potential results. This is because the method of creating the extent to zoom to is different for a point than a collection of points.
- You'll see that the points are being reprojected. ESRI provides a tool that will reproject geographic coordinates (what the geocoder gives out) to Web Mercator or vice versa, but other coordinate systems will be tougher. It is recommended that if you have a custom geocoder that it be set up to give you points in the projection of your map so you don't have to do this.
(https://support.geocortex.com/Data/Sites/1/media/forumfiles/geocode.zip) /Data/Sites/1/media/forumfiles/geocode.zip
0 -
That worked mostly well. I had a little trouble with the projection as you said.
It is zooming to my collection of results.
But what isn't working is the "RunExternalCommand" - "AddMarkup". Is that something built-in? Because I'm getting no markup points.
0
Please sign in to leave a comment.
Comments
2 comments