is there any way to create MPK file from CODE

2041
3
09-22-2011 12:57 AM
Labels (1)
ShaharBukra
New Contributor III
Hi,
for example we want to create mpk from shape file that we received dynamically.

is there any way to preview the shapefile on the WPF Runtime without creating the MPK?

thanks,
Shahar Bukra.
0 Kudos
3 Replies
MichaelBranscomb
Esri Frequent Contributor
Hi,

There is currently no way to create an MPK with the ArcGIS Runtime. We recommend you use ArcGIS for Desktop (10.1) for creating maps.

However, we are currently working on support for the adhoc adding of data (e.g. Shapefiles) and for defining the symbology of these datasets on the fly which will provide you with the caability you require. We hope to have this functionality available in the next beta release later in the year (although, as ever, we cannot guarantee future functionality during a beta release).


Cheers

Mike
0 Kudos
ShaharBukra
New Contributor III
Hi Mike,

Thank you for the quick reply!
its good to know that you are working on that.

Regards,
Shahar.
0 Kudos
MiriRevivo
Occasional Contributor
Hi Mike,

We've thought about the following way to achieve this:
1.  Create a model that contains the Create Map Package tool, and set the input map document and the output map package as model parameters.
2. Share the model as a geoprocessing package.
3. Initialize and use the gpk through code (via LocalGeoprocessingService object).

We've tried this, but got stuck in step #3, when trying to supply the map document as a parameter to the local geoprocessing service. We couldn't find the right GPParameter type to use. Is there a suitable GPParameter for a map document?  Or this is the reason that this process is not yet available in code?

Thanks a lot,
Miri & Shahar.
0 Kudos