IDEA
|
Agreed @DanPatterson, it offers the possibility to link back, and join fields needed. Of course it does not work with the multi ring buffer tool, and it requires the join as an extra step in the users procedure, while adding fields and values while creating the buffers, seems much more straight forward, since the data are at that point at hand.
... View more
11-28-2022
12:25 AM
|
0
|
0
|
347
|
IDEA
|
When creating buffers, you have several options to dissolve the buffers, but what I am missing in Buffer, as well as in Multiple Ring Buffer, is the possibility to specify at least one attribute of the input features to be transferred onto the resulting buffers. Of course you can argue that I can do a spatial join, or intersect or something else to make the connection, but on one hand that means an extra geoprocessing tool run, and on the other hand, that only works as long as the object used to create the buffer is intersecting, or touching the buffer, or you search within a specific distance. Especially when creating multi ring buffers the intersecting and/or touching falls possibly short in case of all the ring buffers. The buffersize I use to create the multiple ring buffers depend on a feature value in the attribute table, which goes into a formula and the resulting distance for the buffers is calculated on the fly. Thereby, fishing for buffers in the vicinity is not much fun. Hence, I propose that the buffer tools functionality is extended by the possibility to transfer one, or multiple feature attributes from the initiating feature over to the resulting buffer(s).
... View more
11-27-2022
01:38 PM
|
0
|
2
|
388
|
POST
|
I need to project geometries in an spatial dataframe and try to do it with this code import pandas as pd
from arcgis import geometry
from arcgis.features import GeoAccessor, GeoSeriesAccessor
in_csv = r'C:\Path\to\points.csv'
point_df = pd.read_csv(in_csv, sep=';')
point_df = pd.DataFrame.spatial.from_xy(point_df, x_column='Longitude', y_column='Latitude', sr=4326)
point_df['SHAPE'] = geometry.project(geometries=point_df['SHAPE'], in_sr=4326, out_sr=3006) A check on the geometry column in the SeDF returns I am logged into our Enterprise portal when running the code, and I am getting: Exception: Invalid Token (Error Code: 498) I am running ArcGIS Pro 3.0.2, our portal is in version 10.9 and arcgis is in version 2.0.1 PS: I am getting the same error when trying to find the transformation needed to do the projection arcgis.geometry.find_transformation(in_sr=4326, our_sr=3006)
... View more
11-27-2022
02:15 AM
|
0
|
0
|
770
|
POST
|
I am just getting started with SeDF and I was wondering on how I can actually visualize objects with multiple geometries. Following the introduction, a buffer geometry is added to the dataframe. The map widget of my notebook is however, only showing the points. How can I visualize the buffer geometries? Is there a way to specify what geometry column should be used for the visualization? # generates map widget visulizing the points, though info widgets places two objects there, when I click on a point
point_df.spatial.plot()
# AttributeError: 'Series' object has no attribute 'spatial'
point_df.Buffer_2.spatial.plot()
# Since plot generates a MapView, the object is not subscriptable
point_df.spatial.plot()['Buffer_2']
# or has no attribute 'Buffer_2'
point_df.spatial.plot().Buffer_2
... View more
11-26-2022
06:27 AM
|
0
|
4
|
928
|
POST
|
Certainly bookmarked your blog, and I am pretty sure I will steal some of your examples. 😉
... View more
11-20-2022
02:37 AM
|
0
|
0
|
853
|
POST
|
Hi @DanPatterson, thanks for the advice about the coordinate system when creating the geometry. It didn’t change anything on the outcome though. 🙂 Neither did density, and the only thing that solved the issue with the point of origin was to create all lines from the point of origin, leaving me with 12 instead of 6 lines. I assume the culprit is actually the precision of the points, calculated by pointFromAngleAndDistance. Meaning calculating points on a circle with a distance of 2000 meters, and angles of 345 and 165 degrees will give you points, not marking a precise opposite of each other on a circle. Once you connect these two points by a line, the line has good chances not to cross your point of origin. For my purposes it is not important that the point where all polylines meet is spot on on top of the point used for the calculations (even though that’s what I would expect). But it is important that all polylines have a common cross point. Later in the process these polylines are used to segment a buffer around my calculation point into 12 equal circle segments. As long as the polylines do not have a common crossing point, I will create more than 12 segments, where an unknown number of them will simply be slivers, and in the end the 12 expected circle segment differ in their area size.
... View more
11-19-2022
11:27 PM
|
0
|
0
|
863
|
POST
|
Hard to say what you are doing wrong. Since you are doing it in FME, this also might be the wrong community for the question. However, off the top of my head there would be three things. I would use the transformer to reproject the data. Setting the coordinate system does not change the features projection. When creating the writer, I would set the schema to ‘Automatic’. Default is to inherit from the reader In the Navigator sidebar you can set the reference system of the writer to EPSG:4326. The writer should reject thereafter features projected in other coordinate systems
... View more
11-19-2022
10:53 PM
|
0
|
0
|
357
|
POST
|
I was wondering about how to store several hundred LAS files in an ESRI environment. We have ArcGIS Enterprise running and I would like to make the point cloud data of our entire country available to everybody within my organization. What is the best way possible to do that, so that the data are easily and fast accessible for ArcGIS Pro users, and that the data at the same time can be used for analysis on a GeoAnalytics Server?
... View more
11-19-2022
11:11 AM
|
0
|
0
|
543
|
POST
|
I am working on a little task, where I create some points, based on coordinates. Every point is then used to create a couple of polylines, where each point is supposed to be the start point for a set of polylines. The endpoints for the polylines are determined by angle and distance. So, the outcome should be a point, in the center of some polylines, looking like sunrays. I create the points and use the created points thereafter as point of origin for my polylines. Only problem, the created point is not where the polylines 'meet' and the polylines do not meet at the same point either. I wonder how that can be, if the point of origin does not change! import arcpy
import arcgis
from arcgis.gis import GIS
from arcgis.geometry import Point, Polyline, Geometry
bearing_list = [(345,165),(315,135),(285,105),(255,75),(225,45),(195,15)]
distance_2 = 2000
in_sr = 4326
out_sr = 3006
# create featureclass and populate with points from coordinates
points_fc = arcpy.CreateFeatureclass_management(out_name='Sites', geometry_type='POINT', spatial_reference=out_sr)
arcpy.AddField_management(points_fc, 'SiteName', 'TEXT')
point_insert_cursor = arcpy.da.InsertCursor(points_fc, ('SiteName', 'SHAPE@XY'))
pnt_list = []
for item in point_dict:
y, x = point_dict[item]
pnt = Point({
'x': x,
'y': y,
'spatialReference':{
'wkid': in_sr,
'latestWkid': in_sr
}
})
out_pnt = pnt.project_as(out_sr)
pnt_list.append([item, out_pnt])
row_point = (item, out_pnt.centroid)
point_insert_cursor.insertRow(row_point)
del point_insert_cursor
# iterate over points, create temporary line featureclass,
temp_lines = arcpy.CreateFeatureclass_management(out_name='temp_lines', geometry_type='POLYLINE', spatial_reference=out_sr)
arcpy.AddField_management(temp_lines, 'SiteName', 'TEXT')
line_insert_cursor = arcpy.InsertCursor(temp_lines)
line_length = distance_2 + 5
for pnt in pnt_list:
for bearing_set in bearing_list:
pnt_array = arcpy.Array()
x = pnt[1].first_point.x
y = pnt[1].first_point.y
pg = arcpy.PointGeometry(arcpy.Point(x, y), arcpy.SpatialReference(out_sr))
start = pg.pointFromAngleAndDistance(bearing_set[0], line_length)
start_pnt = arcpy.Point(start.firstPoint.X, start.firstPoint.Y)
end = pg.pointFromAngleAndDistance(bearing_set[1], line_length)
end_pnt = arcpy.Point(end.firstPoint.X, end.firstPoint.Y)
pnt_array.append(start_pnt)
pnt_array.append(end_pnt)
line_feature = line_insert_cursor.newRow()
line_feature.shape = arcpy.Polyline(pnt_array)
line_feature.setValue("SiteName", pnt[0])
line_insert_cursor.insertRow(line_feature)
del line_insert_cursor The result for one of the points: the point is 10 centimeters away from where the lines 'meet'. And it looks like this at the 'center' of the polylines
... View more
11-10-2022
06:28 AM
|
0
|
5
|
931
|
POST
|
I have a point, and based on this point, a certain distance and a bearing I want to calculate the resulting coordinates. And I was wondering how to do this in arcpy, while the spatial reference system is honored. Lets say I am in EPSG 3006, have an arbitrary point (57.6222951N,18.8333582E), a distance of 2000 meter, and a bearing of 345 degree... How can I achieve that with arcpy?
... View more
11-08-2022
05:25 AM
|
0
|
1
|
1018
|
POST
|
I would like to raise this issue again, since fall/winter 2021 is a while ago now, but i currently face the same issue with WMTS and the Map Viewer in a 10.9 portal.
... View more
10-24-2022
01:23 AM
|
0
|
0
|
570
|
POST
|
As far as I can see you do not select any features from the newly created feature class, thereby I would aim for the feature layers extend to create the bounding box from it. Setting the extend of your WMTS layer will mostly require to look into the CIM, although I was lately looking into something similar and couldn’t find a possibility in the api to set an extent for service layers.
... View more
10-21-2022
01:28 AM
|
0
|
0
|
702
|
POST
|
I was creating a web map app, adding a web map that I styled just to realize that the app is interpreting the colors and apparently also the blending settings in a different way than the map is set to. To illustrate... this is my map with some bathymetry data styled and in blending mode 'Multiply', showing OpenStreetMap information in the waters. This is the app, showing its interpretation of the map above... You can clearly tell, the blending option is disregarded, and I assume thereby the colors for the bathymetry are changed as well! I created the app with the Web AppBuilder on a 10.9.1 portal, where the map was created in the Map Viewer (not the classic). Did I miss a setting enabling blending, or is this a bug? On another note... one of the layers I show in the map has labels turned on and shows them nicely in the map. When I visualize the layer in the app, the labels are not shown by default, but instead the user has to manually enable them through some settings menu of the layer. Again, that is altering the Web Map when used in the App
... View more
09-28-2022
12:42 AM
|
1
|
1
|
261
|
POST
|
Yes, I tried that, but it's still causing an exception right after Item curItem = ItemFactory.Instance.Create(curService);
if(LayerFactory.Instance.CanCreateLayerFrom(curItem))
{
Layer newLayer = LayerFactory.Instance.CreateLayer(new Uri(curService, UriKind.Absolute), activeMapView.Map, 0);
} Also when trying to show the service as a layer in the Map Viewer at the portal, the error message returned by the viewer is: The layer cannot be added to the map.
... View more
09-23-2022
07:51 AM
|
0
|
1
|
403
|
POST
|
I recently experienced that while trying to create a layer from one of our portal services my AGP crashed. Turned out that the service I requested to create the layer from was stopped on the server. To avoid that, I would like to check on the PortalItem (Item) status, but I do not seem to have the possibility to do so (Item Class Members). Fingers crossed I am only looking at the wrong place. Can I check the PortalItem status?
... View more
09-23-2022
05:49 AM
|
0
|
3
|
430
|
Title | Kudos | Posted |
---|---|---|
1 | 19 hours ago | |
3 | 12-12-2023 07:49 AM | |
1 | 08-29-2023 03:53 AM | |
7 | 06-28-2023 02:28 AM | |
1 | 04-18-2023 08:05 AM |
Online Status |
Offline
|
Date Last Visited |
15 hours ago
|