|
POST
|
Hello Faith, Did you apply a geographic transformation, either in your data frame when you set it to NAD83 State Plan or when you projected your shapefile to NAD83 state plane? Because your data sources use different datums, represented by the different geographic coordinate systems (remember, a projected coordinate system like State Plane Oregon North or UTM Zone 10 is comprised of a projection and a geographic coordinate system, among other parameters), you'll need to use a geographic transformation to project the data. For your purposes I would recommend this one: Let us know if that works for you! Warm Regards, Micah P.S. Here is some good information about geographic transformations: About geographic transformations and how to choose the right one | ArcGIS Blog
... View more
08-21-2017
04:29 PM
|
0
|
4
|
2417
|
|
POST
|
Guido is correct - modifying the key-value pairs of a domain counts as a schema change so you would need to republish the feature service for your field workers to see the updated domain. If your feature service is hosted by Esri, a possible alternative solution might be to: Use the ArcGIS REST API to export the data in your hosted feature service to a file geodatabase Update the streetname domain with your new values Point your original MXD to the newly-updated file geodatabase Republish the map, overwriting the hosted feature service It would be possible but requires using arcpy and the ArcGIS REST API. It gets a little more complicated if you are using disconnected editing which requires a sync-enabled service. Good luck! Micah
... View more
08-19-2017
12:01 PM
|
1
|
0
|
1351
|
|
POST
|
Your shapefile looks fine. What's the error you are seeing?
... View more
08-17-2017
02:22 PM
|
2
|
0
|
957
|
|
POST
|
Hi Ryan, Can you post the .json and include the link to the service which you exported it from? That would help troubleshoot. Micah
... View more
08-16-2017
04:09 PM
|
0
|
2
|
3833
|
|
POST
|
Hi Siran, Sorry for deleting it - I wanted to repost under my different GeoNet account but I had difficulty doing that. Glad that solution will work for ya. Micah
... View more
08-16-2017
02:46 PM
|
0
|
1
|
1262
|
|
POST
|
Dang, I am about all out of ideas, Jeremy! Your description of the error popping up almost immediately does make it sound like a validation error. Does the tool have any complex validation logic? That might hold the key to your issue.
... View more
08-15-2017
04:50 PM
|
1
|
1
|
3662
|
|
POST
|
Hi Sarath, Have a look at Consolidate Map—Help | ArcGIS for Desktop. There's a CONVERT option that should convert all your map's data into a file geodatabase. I haven't used this tool personally so am not 100% sure how it will behave if you have "exotic" layers in your map, like rasters, network datasets, topology, etc. It's worth a shot, though. Micah
... View more
08-15-2017
04:47 PM
|
2
|
0
|
2491
|
|
POST
|
Hello Randy, I had to do something similar a while back. How about something like this: # findOrphanedDomains.py
# import required modules
import arcpy, os
# get the SDE connection as a variable
sdeConnection = arcpy.GetParameterAsText(0) # or hard-code it
# create an empty list that we'll populate with the orphaned domains
orphanedDomains = []
# create an empty list that we'll populate with all the domains in your workspace
allDomains = []
# create an empty list that we'll populate with the applied (non-orphaned) domains in your workspace
appliedDomains = []
# define a function to list the domain names applied to a table or FC
def ListAppliedDomains(table): # could also be a feature class
"""
Returns a list of domain names applied in the FC or table
"""
# create empty list of domain names
appliedDomains = []
# add any applied domains to the list
for f in arcpy.ListFields(table):
if f.domain != "":
appliedDomains.append(f.domain)
return appliedDomains
# list the domain objects in your SDE workspace
domainObjects = arcpy.da.ListDomains(sdeConnection)
print("Your SDE workspace has {} domains.".format(str(len(domainObjects))))
# add the names to the list
for domain in domainObjects:
allDomains.append(domain.name)
# clean up the list of domain objects now that we are done with it
del domainObjects
# list all the feature classes and tables in your SDE workspace
allFcsAndTables = []
walk = arcpy.da.Walk(sdeConnection, datatype=["FeatureClass", "Table"])
for dirpath, dirname, filenames in walk:
for filename in filenames:
allFcsAndTables.append(os.path.join(dirpath, filename))
# clean up the walk object
del walk
# go through the tables and feature classes and populate the list of applied domains
for item in allFcsAndTables:
usedDomains = ListAppliedDomains(item)
for d in usedDomains:
appliedDomains.append(d)
# populate the list of orphaned domains based on the 'all domains' that are not in applied domains
for item in allDomains:
if item not in appliedDomains:
orphanedDomains.append(item)
# report the result
print("The following domains are not in use in your workspace!")
for item in orphanedDomains:
print(item) That should get you there. Feel free to modify to support your specific needs. Micah
... View more
08-15-2017
04:38 PM
|
4
|
3
|
3375
|
|
POST
|
Hmmm. Which version of ArcGIS Desktop are you using to publish your GP service (or save your .sd file which you upload later)? They need to match for GP services from what I can tell.
... View more
08-15-2017
01:54 PM
|
1
|
3
|
3662
|
|
POST
|
No problem! Welcome to GeoNet. According to this site: Esri Software for Students at Institutions with a Site License You should check with your instructor or email academicsales@esri.com to check to see if your school has a site license - you could email them and ask if there is a way to get publisher privileges on your account. I personally use the Esri for home use program - it's $100/year but you basically get an advanced license and your own one-member organization to play around with. Micah
... View more
08-15-2017
12:39 PM
|
1
|
1
|
2622
|
|
POST
|
Hi Mariko, I took a look at your screenshots - can you let me know what your role type is? User, contributor, publisher, something custom, etc? To check this, go to the Organization tab and search for your name - this will show you what role you have. Also, can you screenshot the dialog that you see when you upload your zipped shapefile to ArcGIS Online? If you are a publisher you should see a checkbox option to publish the file as a hosted layer - you'll need this ability in order to add it to your map. Here's an example: It definitely sounds like it might be a permissions issue. Micah
... View more
08-15-2017
12:04 PM
|
2
|
3
|
2622
|
|
POST
|
Hello M, Weird. If you browse to the Content section of ArcGIS Online, does the stuff you've uploaded/registered with AGOL show up there? I've recently had some browser-specific (Chrome only) trouble seeing my content due to a 413 error: request entity too large. I think it has something to do with the security settings in my organization. I am working with our admin to figure it out. Try hitting Ctrl + Shift + I and going to the Console tab in Chrome (or F12 in IE) and you can look at the console and see if you are getting any browser errors. I think you can also get there by right-clicking and choosing "Inspect Element." Also, have you confirmed that you are signed in with the correct AGOL account? I only ask because I have a couple different accounts bouncing around between work, personal, etc and sometimes I get confused myself. Good luck. Micah
... View more
08-15-2017
11:17 AM
|
2
|
5
|
2622
|
|
POST
|
Hi Jeremy, Is your geodatabase which contains the network dataset versioned? You may want to check to make sure the .sde connection registered with your ArcGIS Server Site is looking at the correct version. Also, is the 64-bit version of the database client software installed on all the ArcGIS Server machines in your site? Micah
... View more
08-15-2017
11:10 AM
|
2
|
5
|
3662
|
|
POST
|
Hi Shaning, Ok, no problem. I think the same concepts will apply. You'll need to make an http request on the service with JSON as the response format. From there you can retrieve the layer list. Consider this service: https://services.nationalmap.gov/arcgis/rest/services/transportation/MapServer The following HTTP request will get you a JSON representation of that service: https://services.nationalmap.gov/arcgis/rest/services/transportation/MapServer?f=pjson Notice that within the response there is a key called "layers" - the corresponding value is a representation of all the layers: To request more layer-specific info, just modify the request to include the layer ID and you can go deeper into the properties of each layer. I googled "Make HTTP request C#" and here is the top result: c# - HTTP request with post - Stack Overflow Hope this helps. Micah
... View more
08-15-2017
09:54 AM
|
0
|
0
|
1981
|
|
POST
|
I think you've provided the best answer to your own question! I don't know why I didn't think of that - the cursor overhead is much less in a file-based dataset. The only thing that I can think of now to make your process really fly is to use the in memory workspace: The in_memory workspace—ArcGIS Pro | ArcGIS Desktop No need for any disk I/O because the processing happens entirely within your computer's memory. Anyways, well done. Micah
... View more
08-15-2017
09:27 AM
|
1
|
0
|
837
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-13-2017 09:58 AM | |
| 1 | 10-27-2017 12:54 PM | |
| 1 | 10-13-2017 04:28 PM | |
| 5 | 08-14-2017 01:58 PM | |
| 1 | 10-16-2017 08:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-26-2021
03:16 PM
|