IDEA
|
This should be a base tool option for ANY map produced regardless of where the map is being used.
... View more
03-21-2022
05:02 AM
|
0
|
0
|
4992
|
POST
|
Dan, Thank you for the quick reply. I will play around with that and see how that works. In the interim, I did some creative graphics work to show what I needed. Drew freehand over the line in the center point and then used a rectangle to hide the old color and then redrew the graph lines as well. I just need the horizontal distance to be a 2d distance. The vertical scale is the elevation of the lines. Thanks again, Kevin
... View more
07-23-2021
11:39 AM
|
0
|
0
|
1278
|
POST
|
Good morning. I am using arcGIS PRO 2.7. I have a line that represents elevations created using Interpolate shape that run approx 2,000 feet. Between roughly 450 feet and 1100 feet, I need to represent that portion of the graph in a different color. So far I have only been able to figure out that if I split the line at 450 feet, it creates a new line in the profile graph at 0 feet (the beginning of the chart) and ends at 650 feet rather than filling in on the chart where it actually is. Below is an image what the profile graph looks like at the moment. The gold line is what I am wanting to split and the blue line is flood level. Below is the attribute table for this section. The flood line is just data from a DEM and made into a 3D line along the same length as the WallLevee. The WallLevee was first created as a 2-D line with 2 heights in each line segment, a from and to. Using those two heights for each line segment, I used Feature to 3D By Attribute. After that I ran Pairwise Dissolve in order to get one continuous line with the elevations. Not running the Pairwise Dissolve gave me a line for each line segment rather than one line representing the entire ~2,000 feet. Again, I need to cut that WallLevee line in the middle, but still show it as one continuous line as a different color or different symbology (dashed for example) in order to break it apart from the rest as that is natural ground and not part of any wall or levee system. Thank you. Kevin
... View more
07-23-2021
07:32 AM
|
0
|
2
|
1290
|
POST
|
MicZatorsky_AEC, Good morning. Thank you for the reply. I will be using that link in the next step. What I had was a line that had the base of a wall as its Z value. I needed the top of the wall along that line. If I just created a lone from the points, they would not follow the wall. What I ended up doing was digitizing a line along the wall, using the measured points along the wall that had their Z values as the top of the wall. Each point represented a certain distance, roughly 100 feet. Once I digitized the line, basically making line segments for each 100 feet at the measured top of wall points, I created a new field and used the Calculate Field to label each point line segment. These married up with the known points so then I used a join to marry up the line with the known heights. But yes, the next step will be created the 3D line from this line. Thank you, Kevin White
... View more
04-12-2021
04:19 AM
|
1
|
0
|
2599
|
POST
|
Good afternoon. I am using PRO 2.6. I have been trying to find a way to add point data to a line with z values to then include as a break line in a TIN that is being created from a LiDAR raster. The points that I have were taken using an RTK source along a levee. The heights are between 45 and 53 feet. The line is the center of the levee and/or floodwall. The line has it's own z value of between ~20 feet to ~47 feet, which coincides with the height of the raster. I am not having luck with taking the heights from the point data and adding it to the line and then also being able to interpolate the height between the points along the line. So if one point is 50' and the next point is 48', being able to show the height gradually lowering to 48' rather than just dropping off at that point. I then need to create that line as a break line in the TIN in order to determine if the height of the floodwall is sufficient to not allow a flood to come over the top. Thank you.
... View more
04-07-2021
10:33 AM
|
0
|
2
|
2668
|
IDEA
|
Would it be possible to have the centroid of the Area of Interest posted as a latitude / longitude (or relevant coordinate system) in the resulting table that is generated so that when handing that report to someone they can look up the area based off of that lat / long coordinate. Would make it easier when this is being used to generate reports so that others can find the spot quickly to review the area for their portion of the report or to make decisions on it.
... View more
11-03-2020
12:21 PM
|
0
|
0
|
368
|
POST
|
I am attempting to edit a script in order to automate updating a hosted feature layer on our Enterprise page. I acquired the script from here: Automate overwrite web layer, feature class Updating your hosted feature services with ArcGIS Pro and the ArcGIS API for Python How To: Overwrite hosted feature services from ArcGIS Pro to ArcGIS Online using Python When I run the script, it prints "Creating SD file" and then PRO crashes about a minute later. I have tried running it with PRO closed from IDLE and the get the same result. I have tried tweaking some of the information with the same result, 6 or 7 times now. This is the script I am running: import arcpy import os, sys from arcgis.gis import GIS ### Start setting variables # Set the path to the project prjPath = r"C:\Users\Documents\ArcGIS\Projects\VMRC_TEST\VMRC_TEST.aprx" # Update the following variables to match: # Feature service/SD name in arcgis.com, user/password of the owner account sd_fs_name = "VMRC Data" portal = "https://MyOrganizationsEnterpriseAddress/e4portal/sharing/rest/content/items/e74a684af7ee45a1b346cf9c6ba1d8c1" # Can also reference a local portal user = "" password = "" # Set sharing options shrOrg = True shrEveryone = False shrGroups = "" ### End setting variables # Local paths to create temporary content relPath = r"C:\Users\Documents\ArcGIS\Projects" sddraft = os.path.join(relPath, "WebUpdate.sddraft") sd = os.path.join(relPath, "WebUpdate.sd") # Create a new SDDraft and stage to SD print("Creating SD file") arcpy.env.overwriteOutput = True prj = arcpy.mp.ArcGISProject(prjPath) mp = prj.listMaps()[0] arcpy.mp.CreateWebLayerSDDraft(map_or_layers=mp, out_sddraft=sddraft, service_name=sd_fs_name, server_type="HOSTING_SERVER", service_type="FEATURE_ACCESS", folder_name=None, overwrite_existing_service=True, copy_data_to_server=True, enable_editing=False, allow_exporting=False, enable_sync=True) arcpy.StageService_server(sddraft, sd) print("Connecting to {}".format(portal)) gis = GIS(portal, user, password) # Find the SD, update it, publish /w overwrite and set sharing and metadata print("Search for original SD on portal…") sdItem = gis.content.search("{} AND owner:{}".format(sd_fs_name, user), item_type="Service Definition")[0] print("Found SD: {}, ID: {} n Uploading and overwriting…".format(sdItem.title, sdItem.id)) sdItem.update(data=sd) print("Overwriting existing feature service…") fs = sdItem.publish(overwrite=True) if shrOrg or shrEveryone or shrGroups: print("Setting sharing options…") fs.share(org=shrOrg, everyone=shrEveryone, groups=shrGroups) print("Finished updating: {} – ID: {}".format(fs.title, fs.id)) One thing I am also not clear about it if I am using PRO while I run the script, and logged onto our enterprise portal, do I need the username and password filled in? We use an API key for ours, so there is no username and password in order to log on our Enterprise site. For the portal= name, I have it pointing directly to my content page. Could that be messing it up? Thank you.
... View more
10-23-2020
12:13 PM
|
0
|
2
|
1729
|
POST
|
Ok, cool. Thank you so much for your help. I will start using raw strings instead.
... View more
10-21-2020
09:55 AM
|
0
|
0
|
982
|
POST
|
Oh, you are absolutely correct! I am used to that being an error popping up right there. Sorry about that. Then I guess this is fixed! Just out of curiosity though, why does putting an "r" before the path name make a difference? I thought they were both the same thing either with r'C:/.....' or just going straight to 'C:/.....'
... View more
10-21-2020
08:59 AM
|
0
|
1
|
7218
|
POST
|
Ok, I did get it to work using the r'C:\...' method, but it does give me this error: arcpy._mp.Layer object at 0x000001A9BFDFEC88 I tried searching for that error but didn't return anything specific as to what might be causing it. Again, the layers are being added to the current project though. Thanks, James
... View more
10-21-2020
07:45 AM
|
1
|
1
|
7218
|
POST
|
Thank you for all of the responses and I will try then when I get back into my office next week. Life happens, right?
... View more
10-13-2020
05:34 AM
|
0
|
0
|
7218
|
POST
|
Jared, Good morning. I tried adding the above in and I get the same error as before. Since I am creating a geodatabase, I redid the script to just name the feature class within the geodatabase to the name I want and then tried adding that layer into PRO and received the same error trying it that way as well. I am not using an IDE. I am working from the project notebook, so not sure if that might be the issue or not. Thank you.
... View more
10-09-2020
08:24 AM
|
0
|
2
|
7218
|
POST
|
Good afternoon. I have a python script that I am using to obtain kml data and then turn that into a geodatabase, extract the information and create 3 shapefiles which I then need to publish as a web layer. I have the script so that it does not automatically add the created geodatabase or shapefile automatically as some cannot be published as feature layers. I am trying to get just the shapefiles to the map. The snippet I am using is this: aprx = arcpy.mp.ArcGISProject("Current") map = aprx.listMaps()[0] map.addDataFromPath('C:/directory/filename.shp') I found a post from bixb0012 which I also tried, from 2017, which is this: shp_path = # path to shape file
aprx = arcpy.mp.ArcGISProject("CURRENT")
map = aprx.listMaps()[0] # assumes data to be added to first map listed
map.addDataFromPath(shp_path) And it did not work either. The error I receive on both is this: Traceback (most recent call last) In [3]: Line 44: map.addDataFromPath('C:/GIS_Projects/VMRC_KMZ/VMRC_Oyster_Clam_Data/shp/VMRC_Public_Clamming_Grounds.shp') File c:\program files\arcgis\pro\Resources\arcpy\arcpy\_mp.py, in addDataFromPath: Line 1779: return convertArcObjectToPythonObject(self._arc_object.addDataFromPath(*gp_fixargs((data_path,), True))) RuntimeError: --------------------------------------------------------------------------- I am using PRO version 2.6.1. Thank you for any help / suggestions.
... View more
10-08-2020
12:52 PM
|
0
|
11
|
8338
|
POST
|
Good afternoon. I have a question about mapping with REST services and data. I am making an online map that uses REST services. One of the layers is a polygon feature, a shipping channel. I made a buffer layer from that polygon and also had to add an extra field in the data table, joined the 2 layers as well so that if the buffer is queried the data from the original REST table will also be populated. The reason for this is to know if a queried area lies within X number of feet of the shipping channel. My question is this: If the REST layer updates with new data, will the buffer layer I created off of it also update, or will I have to run the buffer again?
... View more
09-29-2020
10:26 AM
|
0
|
0
|
424
|
POST
|
Ahhh, yes, that works like it should! Thank you so much for that.
... View more
08-05-2020
11:55 AM
|
0
|
0
|
3308
|
Title | Kudos | Posted |
---|---|---|
1 | 10-21-2020 07:45 AM | |
1 | 04-12-2021 04:19 AM | |
1 | 08-04-2020 10:54 AM |
Online Status |
Offline
|
Date Last Visited |
10-15-2024
08:57 AM
|