I work with our local police department to update the Sex Offender web map on a (fairly) monthly basis.
What happens is as follows:
What I would LIKE to do and just don't know where to start with this is... take my model and convert it to a Python script. Then SOMEHOW (and this is where my question comes in) offer a web-front / web-form where the officer INSTEAD of opening a Service Ticket, just opens a web page... pastes the URL to the updated Shapefile (or uploads the Shapefile?)... and hits DONE and it runs my script using that URL to the Shapefile (or the uploaded Shapefile) and updates the database.
Once the database is updated the updates propagate smoothly to the web map.
Has anyone done anything like this already? Convert a Model to a Web Form?
Hi Brian,
If you have ArcGIS Server, you could publish your model as a Geoprocessing Service, and then use Web AppBuilder to create an application that uses this service. The police department could then access the application and use the GP service to upload the shapefile.
So I have a single model parameter. It is the UNC path to a folder where the officer saves out his shapefiles.
\\servername\folder\folder\sexoffenders\shapefilename.shp
The other parameter is the server with the current data which get's truncated in order to be ready to be populated by the newly updated data. I keep getting...
Failed to execute. Parameters are not valid.
ERROR 000735: Server : Value is required.
Failed to execute (UploadServiceDefinition).
I am confused. Any ideas?
Try setting one parameter for your model. This will be for the input shapefile. Ex:
Save and close the model. Then, run the model and specify an input shapefile. After the model completes, go to the Results window > right-click on the tool > Share as Geoprocessing Service. After the tool publishes, try running the tool as a GP Service in ArcMap to make sure it is working correctly.