|
POST
|
https://esri.jiveon.com/ideas/17205-export-to-eps-with-vectors-please
... View more
08-28-2019
07:54 AM
|
2
|
1
|
3675
|
|
BLOG
|
In order to support a very large number of map consumers, that don't ever edit anything or create data, I rely on AGOL to host Map (Hosted Feature Services), hook those back to Portal as "Items", and keep my ArcGIS Server Farm service instances low, only spawning what is needed to support editors. Through security controls, the map service that automatically comes with a feature services is un-discoverable. I don't want people hitting the map services and spawning more service instances. This is in effect a "Collaboration"for people that can't enable Collaboration on their Portal. https://www.esri.com/arcgis-blog/products/api-python/analytics/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python/ has been pretty handy for the past few years, via a scheduled task, it updates (nightly) several hundred feature services by pulling data from SDE into a Pro Project and overwriting what's on AGOL. Unfortunately, it doesn't allow you to preserve "Allow Export to other formats" setting on AGOL. Enter https://pro.arcgis.com/en/pro-app/arcpy/sharing/introduction-to-arcpy-sharing.htm, which I've finally rolled my sleeves up on and have converted all my python doo-hickeys to use https://pro.arcgis.com/en/pro-app/arcpy/sharing/featuresharingdraft-class.htm, https://pro.arcgis.com/en/pro-app/tool-reference/server/stage-service.htm, and https://pro.arcgis.com/en/pro-app/tool-reference/server/upload-service-definition.htm. Coincidentally there's a lot more options to control service parameters. Disclaimer: I know nothing about python, so I'm sure there's all sorts of inefficiencies in here, but it works. import arcpy
import sys, string, os, calendar, datetime, traceback,smtplib
from arcpy import env
from subprocess import call
# Mail Server Settings
service = "GRSM_SASQUATCH"
sd_filename = service + ".sd"
try:
d = datetime.datetime.now()
log = open("C:\\PYTHON_LOGS\LOG."+service+".txt","a")
log.write("----------------------------" + "\n")
log.write("----------------------------" + "\n")
log.write("Log: " + str(d) + "\n")
log.write("\n")
# Start process...
starttime = datetime.datetime.now()
log.write("Begin process:\n")
log.write(" Process started at " + str(starttime) + "\n")
log.write("\n")
# Mail Server Settings
SERVER = "1.2.34"
PORT = "25"
FROM = "[email protected]"
MAILDOMAIN = '@big.foot.com'
# Data Steward getting the email. Needs to be their email address...without @big.foot.comat the end
userList=["yeti"]
# get a list of usernames from the list of named tuples returned from ListUsers
userNames = [u for u in userList]
# take the userNames list and make email addresses by appending the appropriate suffix.
emailList = [name + MAILDOMAIN for name in userNames]
TO = emailList
# Grab date for the email
DATE = d
# Sign in to portal
arcpy.SignInToPortal('https://www.arcgis.com', 'userid', 'password')
# Set output file names
outdir = r"C:\PRODUCTION\GRSM_SASQUATCH"
sddraft_filename = service + ".sddraft"
sddraft_output_filename = os.path.join(outdir, sddraft_filename)
#Delete any left over SD files from failed previous run
try:
os.remove(sd_filename)
print("Successfully deleted ", sd_filename)
except:
print("Error while deleting file ", sd_filename, ", perhaps it doesn't exist")
try:
os.remove(sddraft_output_filename)
print("Successfully deleted ", sddraft_output_filename)
except:
print("Error while deleting file ", sddraft_output_filename, ", perhaps it doesn't exist")
# Reference map to publish
aprx = arcpy.mp.ArcGISProject(r"C:\PRODUCTION\GRSM_SASQUATCH\GRSM_SASQUATCH.aprx")
m = aprx.listMaps("GRSM_SASQUATCH_LOCATIONS")[0]
# Create FeatureSharingDraft and set service properties
# https://pro.arcgis.com/en/pro-app/arcpy/sharing/featuresharingdraft-class.htm
sharing_draft = m.getWebLayerSharingDraft("HOSTING_SERVER", "FEATURE", service)
sharing_draft.summary = "Sasquatch Locations"
sharing_draft.tags = "Sasquatch, Fur, Hairy, Big Foot"
sharing_draft.description = "Hide and Seek Champion"
sharing_draft.credits = "Yeti"
sharing_draft.useLimitations = "This is not real"
#sharing_draft.portalFolder = "Front Country"
sharing_draft.overwriteExistingService = "true"
sharing_draft.allowExporting = "true"
# Create Service Definition Draft file
sharing_draft.exportToSDDraft(sddraft_output_filename)
# Stage Service
# https://pro.arcgis.com/en/pro-app/tool-reference/server/stage-service.htm
sd_output_filename = os.path.join(outdir, sd_filename)
arcpy.StageService_server(sddraft_output_filename, sd_output_filename)
# Share to portal
# https://pro.arcgis.com/en/pro-app/tool-reference/server/upload-service-definition.htm
print("Uploading Service Definition...")
arcpy.UploadServiceDefinition_server(sd_output_filename,
"My Hosted Services",
"",
"",
"EXISTING",
"existingFolder",
"",
"OVERRIDE_DEFINITION",
"SHARE_ONLINE",
"PUBLIC",
"SHARE_ORGANIZATION",
["GRSM","Great Smoky Mountains National Park Open Data"] )
# Clean up SD files
try:
os.remove(sd_filename)
print("Successfully deleted ", sd_filename)
except:
print("Error while deleting file ", sd_filename, ", perhaps it doesn't exist")
try:
os.remove(sddraft_output_filename)
print("Successfully deleted ", sddraft_output_filename)
except:
print("Error while deleting file ", sddraft_output_filename, ", perhaps it doesn't exist")
# Write nothing to log if success.
endtime = datetime.datetime.now()
log.write(" Completed successfully in "
+ str(endtime - starttime) + "\n")
log.write("\n")
log.close()
print('done')
except:
# Get the traceback object
tb = sys.exc_info()[2]
tbinfo = traceback.format_tb(tb)[0]
# Concatenate information together concerning
# the error into a message string
pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])
msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"
# Return python error messages for use in
# script tool or Python Window
arcpy.AddError(pymsg)
arcpy.AddError(msgs)
# Print Python error messages for use in
# Python / Python Window
log.write("" + pymsg + "\n")
log.write("" + msgs + "")
log.close()
# Define email message if something went wrong
SUBJECT = "Notification of Un-Successful AGOL Update of "+service
MSG = "Did Not Update: {} - ID: {} at "+ str(DATE)+ "; " +pymsg + "; " + msgs
print (MSG)
print (emailList)
# Send an email notifying steward of successful archive
#MESSAGE = "\ From: %s To: %s Subject: %s %s" % (FROM, ", ".join(TO), SUBJECT, MSG)
MESSAGE = "Subject: %s\n\n%s" % (SUBJECT, MSG)
try:
try:
print("Connecting to Server...")
server = smtplib.SMTP(SERVER,PORT)
try:
print("Login...")
try:
print("Sending mail...")
server.sendmail(FROM, TO, MESSAGE)
except Exception as e:
print("Send Error Mail\n" + e.message)
except Exception as e:
print("Error Authentication Server: check the credentials \n" + e.message)
except Exception as e:
print("Error Connecting to Server : check the URL of the server and communications port ( 25 and ' the default ) \n" + e.message)
print("Quit.")
server.quit()
except Exception as e:
print (e.message)
... View more
08-28-2019
06:45 AM
|
4
|
1
|
1501
|
|
POST
|
Haha No. But I've experienced your type of problem many times, and know when it's time to call TS.
... View more
08-27-2019
08:57 AM
|
1
|
0
|
1531
|
|
POST
|
Using your MMPK I'm not able to Repro. It appears this stuff may be coming from a SQL/SDE originally? There are way too many variables (computer, video card, flavor of SDE) in this case for Geonet to Solve it, so your best bet to go tech support and hope you get Lauren D.
... View more
08-27-2019
07:55 AM
|
1
|
2
|
1531
|
|
POST
|
Agree with OP, this is a must-have in Pro when slicing and dicing polygons multiple times. The make one line cut, repeat, is incredibly inefficient and results in relying on ArcMap to perform this critical task. Looking forward to being able to migrate to Pro someday.....
... View more
08-27-2019
06:50 AM
|
1
|
1
|
5695
|
|
POST
|
In ArcMap, I constantly use the Label Manger to tweak 40+ Maplex label classes to meet a particular demand, which is fast and easy as I can just pick any label class from the manger, make a change, hit apply, make another change, hit apply, see what cartographic effect my changes had.... In Pro, as far as I can tell (unless this critical label management tool is just buried somewhere, unfound by me), the same process is to, in a Layout, highlight each labeled layer in the map frame, click on the labeling tab on the ribbon (which has few label tools), right click on the layer to get the full label properties. Since I can't comprehend that this didn't make it into Pro from Map, looking forward to someone sharing where to turn this on in Pro.
... View more
08-23-2019
12:41 PM
|
2
|
3
|
3518
|
|
POST
|
Would the lack of the scroll bar when there's no data be a bug?
... View more
08-23-2019
07:31 AM
|
1
|
3
|
2398
|
|
IDEA
|
Similar problem: https://community.esri.com/thread/238627-what-happened-to-export-to-kml-in-pro .
... View more
08-22-2019
06:00 AM
|
0
|
0
|
3932
|
|
DOC
|
I've been tracking these in several different places, but I figure some folks might be helped if they're looking for Pro to something that they do in Arc, and stumble across this. Comments turned off, the best feedback you can provide in response to this is a good use case in any of the ideas below that you vote on. If you think an Arc Map Equivalency Idea should be on this list, PM me. Bookmark, as I'll update this pretty often. Some of these are in Product Plan, but you may have additional user requirements that are relevant to be added to the idea before they build it. Fit to margins in ArcGIS Pro Pro: Add the Profile Graph Tool as it works in ArcMap (Profile Graph for Non-Elevation Data: May be dispute that this is fully implemented....) ArcGIS Pro: Support Metadata Pro: GP Inputs should display full path to sources (as does Arc) Pro: Add the Magnetic Calculator tool Pro: Arc Hydro Tools should be listed in logical order: Bring back the toolbar! Pro: Allow importing schema from non GDB items....Like Arc..... Pro: Add Calculate Cache Size to sharing dialogue Pro: Attachments should display in Pop Up as in Arc Fix this Pro Bug: Import XML is missing schema preview Pro: Arrange Tables Functionality (Like Arc) Pro: Create 3D points along a 3D line Pro: Change Data Source for XY Event Layer should present geometry options (Like Arc) Pro: Set Portal Search Results to show correct number of items, allow same sort options as Arc, and mimic AGOL search results Show tiled service layer legend in Pro Please add the ability to adjust the pooling (number of instances) of a service shared from the share pane in ArcGIS Pro. Add Mirror Tool in Pro Getting “clear” option of the coordinate system available in ArcGIS Pro, ArcGIS Pro: Allow connection to .sde files in folders Show printer margins in ArcGIS Pro map layout Scale Legend Contents Automatically with change in size ArcPro: export model as image Print Preview in Pro "Copy Map to Clipboard" in ArcGIS Pro? Print Preview in Pro Stop the ArcGIS Pro table view jumping around when I calculate attributes See Fields while Scrolling Through Attribute Table in ArcPro Microsoft Access (.accdb) Support in ArcGIS Pro Enable ArcGIS Pro to access ESRI Personal Geodatabases APRX Doctor Only Display These Scales - in ArcGIS Pro X-Ray for ArcGIS Pro Add 'Freeze attribute column' to ArcPro ArcGIS Pro - Export to Illustrator Auto hide attribute table in ArcGIS Pro ArcGIS Pro - Eye Dropper Tool Graphics and free text in ArcGIS-Pro maps! Enable ArcGIS Pro to Save Without Creating a File Geodatabase ArcGIS Pro - Creating Project Templates without Default File Geodatabase Add basic find functionality to ArcGIS Pro table view! Hyperlink Field / Support in ArcGIS Pro Stop having ArcGIS Pro automatically sort attribute domains when editing Ability to query text field in Pro as with ArcMap Be able to see an entire cell in Pro attribute tables. Equivalent to ArcMap. Cul-de-sac tool for ArcGIS Pro Need Ability to Replace Data Source for Multiple Layers ArcGIS Pro GPS Toolbar Bring to Front / Send to Back for Layouts in Pro Implement right-click menu single-key accelerators in ArcGIS Pro Add "Custom Overlay Grid" to the Layout options for Grids/Graticules in ArcGIS Pro Reclassify Rasters in ArcGIS Pro Cut Polygon Tool for Pro. Equivalent to ArcMap. Improve Profile Graph in ArcPro - flash point on line ArcGIS Pro: Add universal copy & paste like in ArcGIS Desktop Catalog & Map Catalog View in ArcGIS Pro Identify Tool Allow Layout Gallery of ArcGIS Pro to have custom page sizes added to it Resize scale bar in ArcGIS Pro Port "Identify Route Locations" and "Set From/To" Linear Referencing Tools from ArcGIS 10.x to ArcGIS Pro Add the 'Move to end of table' button in Pro Validate Join in ArcGIS Pro In ArcGIS PRO allow formal edit sessions for unversioned data in an enterprise GDB ArcGIS Pro: Option to Enable Dockable Toolbars and Menus ArcGIS Pro: Save Project Copy Add Select by Attributes Tool to Attribute Table in ArcGIS Pro Find - Linear Referencing Tool for ArcGIS Pro Let us create an alias for connected folders in ArcGIS Pro Add full COGO functionality to ArcGIS Pro Sort / Order Datasets in ArcGIS Pro Catalog Pane Add Map to KML/KMZ in ArcGIS Pro ArcGIS Pro - Add support for geometric overrides ArcGIS Pro: symbology for selected polygons For ArcGIS Pro geodatabase topology: Please allow ability to "Validate" topology directly from Catalog pane in the right click menu options for topology within a feature dataset. Sort Parameters in Geodatabase Administration Screen in Pro Geodatabase Administration Window in Pro Should be an Independent/Dockable Window Having built-in polygon outline styles in ArcGIS Pro Enhanced Magnifier window for ArcGIS Pro ArcGIS Pro: Add Multi - field Batch Geoprocessing ability such as in ArcGIS Desktop Change datasource in Pro Allow ArcGIS Pro Catalog Panel to delete CSV/TXT/XML files Allow ArcGIS Pro Catalog Panel to delete MXD's Add a "Change Layout" Button for ArcGIS Pro Add 'Freeze attribute column' to ArcPro Added Aug 22, 2019: Have ArcPro's Layer to KML behave like the ArcMap Layer to KML State Tree Diagram for ArcPro Aug 23, 2019 Pro: Holes in Polygons (like Arc) PDF to Tiff Tool In Pro Bring back ArcMap style Move and Rotate tools for annotation in Pro. Bring back full arcpy.GetMessages() messages in ArcGIS Pro! Toggle Draft Mode in ArcGIS Pro ArcGIS Pro Topology - Inspector fix multiple Edit vs. selection cursors in Pro Place Export to CAD outputs in ArcGIS Pro into a single group in the TOC Create Steepest Path tool missing in ArcGIS Pro Custom Dimension Feature Class Properties in ArcGIS Pro Bring Edit Button from Desktop to Pro Allow Attribute Table to be Docked with Other Windows in Pro The disappearance of the raster catalog in ArcGIS Pro Insert of Office Objects (word-documents, pdf, ...) in ArcGIS Pro Add decimal places to Degrees Minutes Seconds Display Units in ArcGIS Pro August 27, 2019 Keep Pro table view the same when selecting rows ArcGIS Pro support for importing and exporting traverse files Designating Items In Legend Columns Support for Geometric Networks in Pro Don't Add .z Automatically When Exporting an XML Workspace Folders in XY Coordinate System Favorites! Caching “Suggestion” option is not available in ArcPro 2.4.1 September 8, 2019 Degrade ArcGIS Pro Annotation for ArcMap Add the ability to move multiple annotations in Pro without losing the anchor point for annotation leaders. Lock labels in ArcPro October 1, 2019 ArcGIS Pro: Show existing joins and relates in Joins and Relates Context Menu October 8, 2019 Need absolute path names in Pro Add "pan to the current feature and flash it" to ArcGIS Pro. ArcGIS PRO Cursor Identify tolerance Add Viewfield Angle parameter and View Settings window to ArcGIS Pro (ArcMap Equivalency) Graphic Element Edit Vertices Enhancement ArcGIS Pro Help should start showing version numbers (e.g. 1.0-2.1.2) Could be an Equivalency Idea? I throw a lot of ideas, would like to see other folks get some ideas going. I'll up vote them! Make Feature Layer ArcGIS Pro - change field names Added Aug 22, 2019 Manage Sql Server Express November 27, 2019 Highly Noticeable Flash ArcGIS Pro: 2.4.2: “add user” tool is not available when right clicking the database connection, ArcPro 2.4.2: The “enable geodatabase” tool is not available on the right click of the geodatabase, ArcPro 2.4.1: “Delete” tool when right clicking a service is not available, Support for Neatlines in Pro December 10, 2019 Pro: Ctrl+Click/drag to duplicate text/object December 16, 2019 ArcGIS Pro : Apply Color scheme on selected symbols Make Measure Tool Dialog Box Movable ArcGIS Pro Text Edit & Alt Codes January 7, 2020 For ArcGIS Pro Raster Symbology enable "lock" statistics from custom view extend to apply for the whole image OSM-Extension for ArcGIS Pro January 9, 2020 Access All Editing Tabs When Editing Multiple Symbols January 10, 2020 Increase scroll bar width in ArcGIS Pro Improving Attribute Table Manipulation in PRO PRO Save Function Equivalency with ArcMap (not sure this is a clear equivalency issue....) Add Zoom to XY & Allow Re-positioning to be Saved ArcGIS Pro needs Match Symbols to Style Add back to ArcPro the ability to step through vertices when editing Enable full ArcMap-style multi-part annotation editing capability in ArcGIS Pro January 24, 2020 Pro Catalog: Sort by Feature Geometry (e.g. Point, Line, Poly, Table) Add Additional Details in Catalog View in ArcGIS PRO Looks like this one's not going to be implemented) January 28, 2020 ArcGIS Pro Overwrite Vector and Map Image Services Multi-attribute symbology in Pro February 6, 2020 ArcGIS Pro copy symbology from layer February 20, 2020 Allow ArcGIS Pro Catalog pane/view to cut/copy/paste whole folders ArcGIS Pro: 2.4.2: Why the aprx file doesn’t appear in the catalog, February 24, 2020 How to remove GP History Middle mouse button should always have same functionality (panning) Overwrite ArcGIS Server Print Geoprocessing Service from Pro ArcGIS Pro - Enable time on WMS Layer Drawing Tablet toolbar and compatibility in Arcgis Pro ArcGIS Pro Pop Up column width not adjustable May 11, 2020 Bring back "Intermediate Data" Option on Modelbuilder July 10, 2020 Improve what ArcGIS Pro Catalog View shows March 10 2021 Catalog File Type Options in Pro Add Overview Map to ArcGIS Pro like ArcMap has. ArcMap Equivalence Add Page Up/Page Down/Page Left/Page Right navigation commands Find and replace with nothing in Pro attribute table ArcGIS Pro Topology Editing tool names and workflow are confusing in ArcGIS Pro compared to ArcMap. Recreate Click-to-Label Function in Pro Which Exists in ArcMap Provide a way to disconnect database connections from ArcGIS Pro Buffer Wizard Equivalency in ArcGIS Pro Show count of "all other values" in Symbology Pane but do not show in legend Compare Replica Schema Geoprocessing Tool In ArcGIS Pro Map Series view tab in Map View Icons for custom geoprocessing tools - ArcGIS Pro ArcGIS Pro License Error Handling Classic Traverse Grid Option in Pro Pause Auto-Commit During Traverse in Pro Or, Enhancements you can attach your organization to: ENH-000111322 [Enhancement] Pro should all users to sort items in browse dialogs and content panes by file size. ENH-000109735 [Enhancement] Column "Date" of ArcGIS Pro, does not show information for the enterprise geodatabase. ENH-000105378 [Enhancement] Add Adobe Illustrator (AI) format for layout exports in ArcGIS Pro
... View more
08-21-2019
09:42 AM
|
42
|
3
|
9556
|
|
IDEA
|
I voted up, but regardless of what the ALIAS is in Pro, we see the machine name in lic man logs.
... View more
08-21-2019
07:46 AM
|
0
|
0
|
2740
|
|
IDEA
|
ArcMap: Can change field name Pro: Can't.... Arcmap help explicitly states "Field names can be given a new name by using the Field Info control. The second column on the control lists the existing field names from the input. To rename a field, click the field name and type in a new one." While Pro help, this text is not present.
... View more
08-21-2019
06:43 AM
|
3
|
1
|
4480
|
|
POST
|
Yes, same exact excessive traffic and delay at the fire wall. Opened a case on it...."Customers Network" was the so-called problem.
... View more
08-19-2019
09:20 AM
|
0
|
0
|
747
|
|
BLOG
|
Need concept, this would be particularly useful in back-country search operations. However, having to know how to code and compile, and use a MAC to deploy it, is a pretty high barrier to most, if not all, people being able to use it. Where can I find the actual application?
... View more
08-18-2019
08:13 AM
|
0
|
0
|
2177
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-17-2022 12:19 PM | |
| 1 | 03-14-2019 06:24 AM | |
| 1 | 07-12-2018 09:29 AM | |
| 1 | 06-27-2019 12:08 PM | |
| 2 | 09-23-2019 11:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-26-2026
07:12 AM
|