|
POST
|
Good afternoon, There is a setting in the data frame properties window that allows you to specifically assign (and preserve) the index numbers for your layers: Once you check that box, you can adjust the index numbers to your liking within the layer properties: Hope this helps. Micah
... View more
04-19-2018
01:09 PM
|
2
|
0
|
1831
|
|
POST
|
Hi John, Did you ever get this sorted? I'm seeing the exact same thing - feature templates set in the MXD are ignored once published to ArcGIS Server and instead get created based on the unique value symbology. Micah
... View more
04-19-2018
10:51 AM
|
0
|
0
|
522
|
|
POST
|
Hi Agata, You'll need to put each line of code on it's own line. You have them all on one right now which won't work. Micah
... View more
02-27-2018
01:58 PM
|
1
|
0
|
1170
|
|
POST
|
Hey Joe, If you don't want to hard code your field mappings, here's a way to store the info in a table that then you can then use as a parameter in a custom tool. It will build the field mappings object for you and then append the data as specified in your table. https://community.esri.com/thread/182353-build-arcpy-field-mapping-object-from-table Micah
... View more
02-27-2018
11:48 AM
|
1
|
1
|
2893
|
|
POST
|
Hey Jonathan, Can you describe what you are trying to do? What are your inputs, outputs, and processes? Who will run this process? That info would help us figure out the best way to structure your script. Micah
... View more
02-27-2018
10:10 AM
|
0
|
1
|
3292
|
|
POST
|
In that case I would recommend creating your output in the in_memory workspace. You should then be able to join that result to your original parcel layer using a unique parcel ID, then update your District field using calculate field: Calculate Field—Data Management toolbox | ArcGIS Desktop Micah
... View more
02-27-2018
09:40 AM
|
0
|
0
|
991
|
|
POST
|
Hey Mike, Have a look at Spatial Join: Spatial Join—Help | ArcGIS Desktop It should allow you to define the parameters for doing exactly what you are looking for. The caveat is that this will create a new feature class so you'd need to overwrite your parcel dataset with the result or create an in_memory feature class, join it your original parcels dataset, and update your original district attribute using a field calculator function. Hope this helps. Micah
... View more
02-27-2018
09:23 AM
|
0
|
2
|
991
|
|
POST
|
Hi Mitch. Happy to help. I really need to get into that Python API it looks awesome. Mind marking me correct if that indeed did the trick?
... View more
02-16-2018
06:45 AM
|
0
|
0
|
3928
|
|
POST
|
Hi Mitch, I haven't actually used the ArcGIS Python API yet (I really need to get on that!). However, from the API docs it appears that the create_service is a method that is called on an instance of the ContentManager class. See the description for the ContentManager class: Helper class for managing content in ArcGIS Online or ArcGIS Enterprise. This class is not created by users directly. An instance of this class, called ‘content’, is available as a property of the GIS object. Users call methods on this ‘content’ object to manipulate (create, get, search, etc) items. So it sounds like the last line of code maybe should actually be: mygis.create_service(name = "GM_COPY_Reg1",is_view = True) Also, just a note on your syntax: the is_view parameter should probably be title case, not all caps. I think Python will only recognize a boolean as "True" and not "true" or "TRUE". Hope this helps, Micah
... View more
02-15-2018
11:45 AM
|
2
|
4
|
3928
|
|
POST
|
Hi Ian, For an indication of which transformation will be used, you might try to make use of the Find Transformations operation of a Geometry service resource. This will give an indication of what ArcGIS thinks is the most appropriate transformation from your input spatial reference (WKID 2273) to output (WKID 3857). You can find the WKIDs here: Projected coordinate systems—ArcGIS REST API: Services Directory | ArcGIS for Developers. If you don't have ArcGIS Server running a Geometry service you can use a publicly-accessible one, like the one from the USGS National Map: FindTransformations (GeometryServer) Put in your input SR, output SR, desired number of results (the parameter defaults to 1 if it is left blank), and click FindTransformations (GET). The output will rank the transformations from most appropriate to least appropriate. Your first result is likely the transformation that the software is using. Then I would add your state plane data to ArcMap, then add your hosted feature service to the same MXD and pick the transformation returned by FindTransformations. If things line up as they should you will have some indication that the software is doing the job right. Note/Disclaimer: I do not work for Esri and cannot guarantee that this is how the transformation is selected! However, I do think this would show a level of dilligence that you tried to determine which transformation was used and validate that it was an appropriate choice. Good luck! Micah
... View more
02-15-2018
10:41 AM
|
2
|
0
|
1127
|
|
POST
|
Very cool. The code samples provided look similar to what I've worked with in the past. You are on the right track scaling up what you can deliver with the rest API.
... View more
12-22-2017
02:33 PM
|
0
|
0
|
8191
|
|
POST
|
Hi Andrew, I think your relational data store contains the actual feature data, while the service definition file (.sd) contains the configurations (including pointer to the correct data source) of your service. See: What is ArcGIS Data Store?—Portal for ArcGIS (10.5.x) | ArcGIS Enterprise About service definition files—Documentation | ArcGIS Enterprise Although actually as I read that second link I see there is a configuration you can set where the SD file contains the actual data you are publishing. In this situation, the data contained in the SD file gets copied to your federated/hosting server when you publish. Micah
... View more
12-22-2017
11:59 AM
|
1
|
0
|
4298
|
|
POST
|
Hello Greg, Do you know what manner of authentication the server you're trying to access uses? Frequently, access through the REST API is achieved using tokens. See Acquiring ArcGIS tokens for more info on that. For the API syntax, see Generate Token. Then I believe you would use this token response in JSON format in whatever request you are making to the secured service. Micah
... View more
12-22-2017
09:25 AM
|
1
|
0
|
8191
|
|
POST
|
Hmmm, it's possible that would due to a typo. Is the spelling "Hyrdo_FINAL_ALL_..." or "Hydro_FINAL_ALL_..."? Also, is the old feature class deleted and replaced by the date-stamped new copy, or is a date-stamped new copy added to the workspace? If there is a stack of them going back multiple weeks you might need to parse the date field like Randy said to find the newest one. Micah
... View more
12-21-2017
02:26 PM
|
0
|
0
|
4083
|
|
POST
|
Hi CC, ListFeatureClasses has an optional wildcard parameter I think you could use. arcpy.env.workspace = r"[path to your workspace]"
lyr = arcpy.ListFeatureClasses("Hyrdo_FINAL_ALL_*")[0]
# do something with lyr By the way, I don't think an excel file is a valid output to TableSelect. If you just want to write the table to an excel spreadsheet you could do: arcpy.TableToExcel_conversion(lyr, r"[path].xls") Hope this helps! Micah
... View more
12-21-2017
10:50 AM
|
0
|
3
|
4083
|
| 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
|