POST
|
Try the attached tool. First, update the gdb variable by right-clicking on the toolbox > Properties > Execution: Next, double-click the Script tool. Click the dropdown next the pencil and select Points. Create two points and execute the tool.
... View more
Thursday
|
0
|
1
|
34
|
POST
|
Hi @chill_gis_dude, Take a look at the following scripts here. The scripts won't accomplish exactly what you're looking to do, but should provide some guidance. For example, here is the portion of code that creates the Enterprise account by reading information from a CSV file:
... View more
Wednesday
|
1
|
1
|
97
|
POST
|
@TonyAlmeida , Make sure your map is in coordinate system (26770), then try the following: import os
import arcpy
# Variables
input = arcpy.GetParameterAsText(0)
gdb = r"C:\temp\PointsTest.gdb"
wkid = 26770
# Environment Variables
arcpy.env.overwriteOutput = True
arcpy.env.outputCoordinateSystem = arcpy.SpatialReference(wkid)
arcpy.env.workspace = gdb
array = arcpy.Array()
with arcpy.da.SearchCursor(input, ["SHAPE@X", "SHAPE@Y"]) as cursor:
for row in cursor:
pt = arcpy.Point(row[0], row[1])
array.add(pt)
del cursor
polyline = arcpy.Polyline(array)
arcpy.AddMessage("Copying line features")
arcpy.CopyFeatures_management(polyline, "line_test")
# Retrieve the last point's coordinates and calculate length
with arcpy.da.SearchCursor("line_test", "SHAPE@") as cursor:
for row in cursor:
last_point = row[0].lastPoint
X = last_point.X
Y = last_point.Y
length = row[0].length / 5.28
arcpy.AddMessage(f"Length: {length}")
# Prepare values to insert into the point layer
row_value = (length, (X, Y))
# Use arcpy.da.InsertCursor with a context manager to insert rows into the point layer
arcpy.AddMessage("Inserting values into point layer")
with arcpy.da.InsertCursor("CCAP", ["SiteNum", "SHAPE@XY"]) as cursor:
cursor.insertRow(row_value)
del cursor
... View more
Wednesday
|
0
|
1
|
122
|
POST
|
Click pencil next to the folder to select the geometry type, and then you should be able to create features
... View more
Tuesday
|
0
|
5
|
162
|
POST
|
Hi @TonyAlmeida, You could use something like below to create the line feature class: import os
import arcpy
# Variables
input = arcpy.GetParameterAsText(0)
gdb = r"C:\temp\python\test.gdb"
wkid = 2272
# Environment Variables
arcpy.env.overwriteOutput = True
arcpy.env.outputCoordinateSystem = arcpy.SpatialReference(2272)
arcpy.env.workspace = gdb
array = arcpy.Array()
with arcpy.da.SearchCursor(input, ["SHAPE@X", "SHAPE@Y"]) as cursor:
for row in cursor:
pt = arcpy.Point(row[0], row[1])
array.add(pt)
del cursor
polyline = arcpy.Polyline(array)
arcpy.CopyFeatures_management(polyline, "line_test")
... View more
Tuesday
|
2
|
7
|
175
|
POST
|
Hi @EricKriener, The service will stay in the state it was in when the server is rebooted, or when the ArcGIS Server service is restarted. For example, if the service is stopped, it will remain stopped. If the service is started, it will remain started.
... View more
2 weeks ago
|
1
|
0
|
212
|
POST
|
Hi @abhishek_choudhary, You can configure the WebSocketContextURL in ArcGIS Server Administrator: https://community.esri.com/t5/arcgis-enterprise-questions/missing-lt-webadaptor-gt-ws-endpoint-for-10-7/td-p/1168841
... View more
3 weeks ago
|
0
|
0
|
20
|
POST
|
Hi @Scosh , I'm not sure if this is by design or not, but you can use the Export Features tool to workaround this. There is an environment setting to preserve existing GlobalIDs: You can also right-click on the tool to execute it in Batch to process multiple feature classes.
... View more
3 weeks ago
|
0
|
0
|
43
|
POST
|
Hi @christg , Manually define the values for you filters using Defined values: This way the application is not querying the 300,000 rows to retrieve the 20 values.
... View more
3 weeks ago
|
0
|
0
|
101
|
POST
|
Hi @Jelle_Stu_PR, The File Geodatabase will need to be added as an item to Enterprise before you can append it. See the following document for an example. An easier approach would be to use ArcGIS Pro's append tool to append the File Geodatabase feature class to the hosted feature service.
... View more
3 weeks ago
|
0
|
1
|
175
|
POST
|
@JoseSanchez , Unfortunately, ArcGIS Online does not support UNC paths as hyperlinks. See the alternative solutions in the below link: https://support.esri.com/en-us/knowledge-base/faq-does-arcgis-online-support-unc-paths-as-hyperlinks-000012221
... View more
3 weeks ago
|
2
|
0
|
144
|
POST
|
Hi @Jochman, You will need ArcGIS Server, which will give you the ability to publish a Geoprocessing Service. For example, you would publish the model to ArcGIS Server as a Geoprocessing service. You can then configure this service within an application, such as Experience Builder. End users that have access to the application can then execute the published model with their parameters.
... View more
3 weeks ago
|
0
|
0
|
122
|
DOC
|
@SFortnam this tool will only report dependencies within it's own Org.
... View more
4 weeks ago
|
0
|
0
|
415
|
Title | Kudos | Posted |
---|---|---|
1 | 07-17-2023 08:54 AM | |
1 | Wednesday | |
2 | Tuesday | |
1 | 2 weeks ago | |
2 | 3 weeks ago |
Online Status |
Offline
|
Date Last Visited |
15 hours ago
|