I want to create runtime geodatabase and mpk from Server Object Extension . My problem statement is that user can only view the existing data and cannot modify it, he can add feature in its runtime geodatabase and sync it back but not the data he got it from server(even his own data) , so i was thinking if i can create a mpk (read-only data) and an empty geodatabase (which he can edit and sync back). I cant find an example to create runtime content from SOE (all examples are creating it from mxd).
Solved! Go to Solution.
Hi Haider,
You don't need to develop any SOE. I created the same functionality using Geoprocessing Service (python toolbox) for downloading GPKs. Just use Package Map—Help | ArcGIS for Desktop and expose result as GPDataFile from your service. Invoke the GP service from your client app, specifying for example the current map extent as an input parameter, and download resulting file using any HTTP library of your preference.
Best Regards,
Adam
if you need create Runtime Content with arcobjects you can use gp tool http://resources.arcgis.com/en/help/main/10.2/0017/00170000019n000000.htm using run gp tool http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000003rr000000
in_map | The input map document (.mxd) that will be consolidated into a single folder. | ArcMap Document |
In my SOE how can i provide in_map parameter
Hi Haider,
You don't need to develop any SOE. I created the same functionality using Geoprocessing Service (python toolbox) for downloading GPKs. Just use Package Map—Help | ArcGIS for Desktop and expose result as GPDataFile from your service. Invoke the GP service from your client app, specifying for example the current map extent as an input parameter, and download resulting file using any HTTP library of your preference.
Best Regards,
Adam