Note: this web page can be served locally or from any web server, but must be opened in a browser on your GIS server. First, it specifies the GP service on your server that will be called, then creates the PrintTask, and points the PrintParameters to the web page's map. The highlighted text shows setting up the PrintTask. PrintTask.execute(params, printComplete) use the extent of the webmap in the output PDF when Print button is clicked, setup template and call print task # Use the uuid module to generate a GUID as part of the output name TemplateMxd = os.path.join(templatePath, (templateName '.mxd')) TemplatePath = r'C:\arcgisserver\TerraGo_Samples' #templatePath = r'C:\Program Files\ArcGIS\Server\Templates\ExportWebMapTemplates' # The template location in the server data store Web_Map_as_JSON = arcpy.GetParameterAsText(0) Import pubpy.geopdf_export.api as pubpy_ex Since this is going to require a few more lines of code, instead of typing everything in at the Python command line, let's create a Python script that brings all these considerations together: Making this work on server adds some complexity because ArcGIS Server requires the input MXD to be stored in a registered folder and the output GeoPDF file to be written to a folder that it has write privileges. Afterward, you can examine the output using Adobe Reader and the TerraGo Toolbar. You will have to provide your own MXD for C:\tmp\USA_Sample.mxd. Note: the output path cannot be relative, it must be absolute. Here we simply imported ArcPy and the export functions for PubPy, then called the ExportMXDToGeoPDF function with an existing MXD as input and a path to where we want to GeoPDF as output. > pubpy_ex.ExportMXDToGeoPDF(r'C:\tmp\USA_Sample.mxd', r'C:\tmp\MyFirstGeo.pdf') > import pubpy.geopdf_export.api as pubpy_ex Type 'help', 'copyright', 'credits' or 'license' for more information. However, when I want to import an ArcMap document, I usually use the 'Import Map' button on the 'Insert' tab of an open ArcGIS Pro project.Python 2.7.8 (default, Jun 30 2014, 16:03:49) on win32 (Note that all of the above is entirely unrelated to importing. Use the 'Layout' link at the top to de-activate the map view and return to a normal layout view. This option will not actually open a separate map view, but will make the layout view temporarily behave like a map view, greying out all the other layout items. In a layout view's table of contents, right-click on the Map Frame item and select 'Activate'.In a layout view's table of contents, right-click on the Map Frame item and select 'Open'.Expand the 'Maps' item in the Catalog then double-click one of the maps there (there will usually just be one, but there could be more).There are at least three ways to switch to a map view (instead of a layout view): You need to switch to a map view to do that (or to use the attributes table). In ArcGIS Pro, you don't interact with map/layer features at all while in a layout view (eg, to select features). But I will attempt to answer what I think is your primary issue. You have included multiple questions, when you should be including only one question in each post. mxd files into ArcGIS Pro, so they end up in a Map frame/template and not in Layout, (or even move them to a Map frame after the fact)?īasically it seems that some of the functions usually available when in a regular map window, don't translate to when working in a Layout window, which interestingly do translate while in ArcMap 10.8.2. I am able to go into each layers properties and repair/update the broken links, but the select-by-location/attribute tool didn't work when trying to isolate and then export as new layer certain road function types(Interstate, Major Collector, etc), for example. I click that and the document with all the layers in the contents panel show up, and it opens into a Layout. When I right-click a menu appears with an option to "Import and open". This is what has happened in ArcGIS Pro: I connect the folder, choose the desired map, but when attempt to drag it in or double-click it to open the document, nothing happens. I want to transfer a map document previously saved in ArcMap to ArcGIS Pro 2.8.1, in order to create an updated version of that map document in ArcGIS Pro program. Recently I've worked on updating maps of MPO(Metropolitan Planning Organization) regions that display roads, municipal boundaries, and water ways/bodies, which has involved repairing links by (re)setting the data source with either existing or more recent layer files.įor all of this work so far I've used ArcMap 10.8.2, which create maps as.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |