|
POST
|
Matthew, If you have a copy of all the MXDs, or have access to them on a shared network drive, you can do something like: import arcpy, os
from arcpy import env
wrkspc = r'D:\Path_to_mxds'
env.workspace = wrkspc
workspaces = arcpy.ListWorkspaces("*", "Folder")
# print "** " + str(wrkspc) + " **"
mxdList = arcpy.ListFiles("*.mxd")
for mxd in mxdList:
# print mxd
mxdPath = wrkspc + os.sep + mxd
print mxdPath
mxdObject = arcpy.mapping.MapDocument(mxdPath)
for lyr in arcpy.mapping.ListLayers(mxdObject):
if lyr.supports("DATASOURCE"):
print "Layer: " + lyr.name + " Source: " + lyr.dataSource
else:
print lyr
del mxdObject Of course you can add additional libraries to write everything out to csv or another database table. ~Alex
... View more
04-18-2017
06:57 AM
|
2
|
1
|
2477
|
|
POST
|
One more item. You can utilize my suggestion above to find all 'Active' domains, and then utilize ListDomains—Help | ArcGIS for Desktop to get the full list. Cross reference the two and you have all your inactive domains. ~Alex
... View more
04-13-2017
12:09 PM
|
1
|
2
|
1733
|
|
POST
|
Justin, Here is a good start: arcpy - Listing feature classes with active domains? - Geographic Information Systems Stack Exchange You can utilize that example and calls through ArcPy to achieve what you need. ~Alex
... View more
04-13-2017
11:41 AM
|
2
|
0
|
1733
|
|
POST
|
I am glad to hear you have a Base deployment of Enterprise 10.5. Even better to hear that you followed best practices in your implementation, separating the components for workload separation! I just published to my 10.5 Enterprise instance (with fully federated/hosted ArcGIS Server). If you are publishing as a "web map": If you "Copy all Data" using ArcGIS Pro, and have a hosting server, it looks like the data is stored in a folder called: D:\arcgisserver\directories\arcgissystem\arcgisinput\<map service name>.MapServer\extracted\p12 - has data for web map (since not feature services) If you publish a multi layer map as a "web layer" (which will create feature services): There should be a folder in your ArcGIS Server directory: D:\arcgisserver\directories\arcgissystem\arcgisinput\Hosted The feature service should appear in that Hosted folder and if you drill down to the v101 folder, there should be no FGDBs. D:\arcgisserver\directories\arcgissystem\arcgisinput\Hosted\<feature service name>.FeatureServer\extracted\v101 - should not contain data. If this is not the case, I would be curious to see if you published a single layer as "web layer" and investigate where this data was uploaded to. I believe it is worth mentioning, you can have registered databases/folders in ArcGIS Server still...which would keep the data in the file system or enterprise SDE. As far as connection directly to the datastore, I have heard there are ways you can go about it, but I do not think Esri supports that workflow directly. Just be careful if you do connect and manipulate data, as I do not believe tech support can help you with recovering or fixing that datastore. ~Alex
... View more
04-07-2017
08:28 AM
|
0
|
1
|
3506
|
|
POST
|
The map service is utilizing the data in your FGDB here: D:\arcgisserver\directories\arcgissystem\arcgisinput\<servicde>.MapServer\extracted\p12\<servicde>_alias.gdb Do you have a datastore attached to Portal/ArcGIS Server? If your data was copied to the arcgisserver directory, I would think you do not have a "managed database" with the ArcGIS Datastore. As for connecting, it was not intended for your to connect with ArcCatalog to the ArcGIS Datastore. This is a good thread on the topic: https://community.esri.com/thread/160435 ~Alex
... View more
04-07-2017
07:09 AM
|
0
|
5
|
3506
|
|
POST
|
GIS Mountains, If the ArcGIS Datastore is not setup, then the location Jonathan refers to is where you would look. However, if the ArcGIS Datastore is setup as a "Managed Database" in a federated/hosted arcgis server (that is attached to your Portal), than the data is automatically copied to the Datastore. If this is the case, you can directly access the content in your Portal and pull it down into ArcMap/ArcGIS Pro by accessing my content and finding your feature services. If you want to edit the data, you need to enable that when you publish your content. Also, if you are publishing entire map services, you can always edit the data locally and overwrite your services when you have a change. ~Alex
... View more
04-06-2017
10:48 AM
|
0
|
0
|
3506
|
|
POST
|
Mark, What kind of interaction do you mean by: "So – what is the option for an API that provides a non-ArcObjects based means by which advanced developers can work with ArcSDE Geodatabases?" Here is a good resource: arcgis 10.0 - What is ArcSDE API used for? - Geographic Information Systems Stack Exchange ~Alex
... View more
04-06-2017
10:30 AM
|
0
|
0
|
571
|
|
POST
|
Adrien, I would recommend developing an ETL script (Python, or other) that would regularly update tables in your database from your excel files. I would include some value checks for fields to make sure the excel files do not include unsupported characters. Run the script every day or weekly, or whatever interval you desire. That way you can then interact with your data in the database, and utilize any combination of views, etc. ~Alex
... View more
03-28-2017
06:02 AM
|
1
|
0
|
942
|
|
POST
|
Duarte, After you have imported your CA-signed certificate into IIS, export it using a password. Import this new file into ArcGIS Server admin and Portal admin. In NO way do you need two different certifications. Did you also update your windows hosts file in system32 to point to web.vectorgeomatics.com ? ~Alex
... View more
03-28-2017
05:57 AM
|
0
|
6
|
2932
|
|
POST
|
Tor, Is this a single machine or multi tier machine deployment? If single, how did you register your arcgis server address in GeoEvent's datastores? Local host, IP, or full DNS entry? ~Alex
... View more
03-17-2017
06:41 AM
|
0
|
0
|
1683
|
|
POST
|
Frieda, As of right now, Portal to Portal collaboration is only supported in 10.5 ArcGIS Enterprise -- utilizing Portal for ArcGIS only. It doesn't explicitly state that here: About portal to portal collaboration—Portal for ArcGIS (10.5) | ArcGIS Enterprise I know it is in development for Portal for ArcGIS to ArcGIS Online collaboration. Regards, Alex
... View more
03-17-2017
06:29 AM
|
1
|
0
|
1017
|
|
IDEA
|
Mark, If you have enough licenses (through ELA or additional licensing), you can setup multiple license managers. In the desktop ArcGIS Administrator on client machines, you can set multiple license servers: Backup license servers—License Manager Guide | ArcGIS Desktop Server1: 27000@highwayserver Server2: 27000@generalserver In the admin window for concurrent licenses, you set this: 27000@highwayserver;27000@generalserver If there are no licenses available on highway server, it will automatically look at the general server. ~Alex
... View more
03-16-2017
08:57 AM
|
0
|
0
|
730
|
|
POST
|
Bengi, Is this your actual code: import arcpyimport kivy kivy.require('1.0.6') from kivy.app import Appfrom kivy.uix.label import Label Separate your imports to additional lines: import arcpy
import kivy kivy.require('1.0.6')
from kivy.app import App
from kivy.uix.label import Label ~Alex
... View more
03-16-2017
08:49 AM
|
0
|
1
|
902
|
|
POST
|
Britt, Have you looked into blocking connections to your database then disconnecting all users? You would need SDE or DBO level rights on your geodatabase. Your script would connect using SDE or DBO and that connection would remain active. However, you would ensure no additional locks by blocking connections and disconnecting all users: import arcpy
import time
from arcpy import env
# Connection to database (SDE User), set workspace
database_conn = r'Database Connections\Enterprise.sde'
env.workspace = database_conn
# Block new connections to the database.
try:
print 'Blocking connections in %s' % database_conn
arcpy.AcceptConnections(env.workspace, False)
except (arcpy.ExecuteError, arcpy.ExecuteWarning) as e:
print e
print 'Blocked all connections'
# wait 60 seconds
time.sleep(60)
# Disconnect all users from the database.
try:
print 'Disconnecting all users from %s...' % database_conn
arcpy.DisconnectUser(env.workspace, "ALL")
except (arcpy.ExecuteError, arcpy.ExecuteWarning) as e:
print e
print 'Disconnected all users'
# RUN ADDITIONAL PROCESSING HERE
# Allow the database to begin accepting connections again
try:
print 'Accepting Connections from %s...' % database_conn
arcpy.AcceptConnections(env.workspace, True)
except (arcpy.ExecuteError, arcpy.ExecuteWarning) as e:
print e
Regards, Alex
... View more
03-16-2017
08:35 AM
|
1
|
0
|
1836
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-05-2017 12:16 PM | |
| 1 | 07-28-2017 09:26 AM | |
| 1 | 03-15-2017 01:44 PM | |
| 1 | 11-11-2016 12:00 PM | |
| 1 | 11-11-2016 11:49 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:25 AM
|