Select to view content in your preferred language

Adding MXD to JMap

1025
4
11-06-2012 03:38 PM
dw2
by
Deactivated User
It looks like MXD needs to be converted into MPK first before it can be added as a local layer.  Not sure what GP function that could be called to do that conversion and at the same time the function is supported in ArcGIS Runtime.
0 Kudos
4 Replies
EricBader
Honored Contributor
It looks like MXD needs to be converted into MPK first before it can be added as a local layer.  Not sure what GP function that could be called to do that conversion and at the same time the function is supported in ArcGIS Runtime.


Hi David:

You can either create the MPK from the MXD in ArcMap, or you can run some ArcPy scripting to create the MPK from an MXD.
http://resources.arcgis.com/en/help/main/10.1/#/Package_Map/0017000000q5000000/.

Haven't tried creating a peoprocessing package from a script that calls this function from a Runtime App, but it might work.

I hope this helps!
0 Kudos
dw2
by
Deactivated User
Hi David:

You can either create the MPK from the MXD in ArcMap, or you can run some ArcPy scripting to create the MPK from an MXD.
http://resources.arcgis.com/en/help/main/10.1/#/Package_Map/0017000000q5000000/.

Haven't tried creating a peoprocessing package from a script that calls this function from a Runtime App, but it might work.

I hope this helps!


Hi Eric,

Thanks for your comment.

Unfortunately, Geoprocessing->Tool reference->Data Management toolbox->Package toolset is not supported, according to:

http://resources.arcgis.com/en/help/runtime-java/concepts/index.html#/Supported_geoprocessing_tools/...

let alone the method "Package Map" within the package.

As is, loading a MXD on-the-fly without first publishing it to a server is not possible to do.

Not sure if there is a ArcPy standalone product that run on multiple platforms?

Thanks,

-david
0 Kudos
EricBader
Honored Contributor
Well, you wouldn't necessarily have to, or want to, call Package Map script from a Runtime app.
You can run Python on Linux, so turning your MXDs into MPKs is supported there, as long as you have ArcGIS Engine or Server on the Linux machine you are running on. These products come with Python and ArcPy.
0 Kudos
dw2
by
Deactivated User
That will work.

Thanks Eric.

-david
0 Kudos