POST
|
I'm trying to assign the number of crashes (points) found in a buffer to the line segment found in the same buffer. I need to iterate through the rows of the buffer feature class. I have the model built, all i need to do is figure out how to pass the number of selected crashes (Get count) into the Calculate field in the line feature class. See the attachment of the model I have built. NOTE: I know VERY LITTLE Python. I'm using ArcGIS 10.5 Advanced license.
... View more
08-23-2018
03:09 PM
|
0
|
2
|
999
|
POST
|
What type of file you're export.? I am exporting map to a PDF file. I have tried 300 dpi and output image quality set to best.
... View more
11-11-2013
05:09 AM
|
0
|
0
|
267
|
POST
|
I am trying to use a marker symbol. In previous maps it has worked perfectly. Sudenly now it is not exporting correctly. (see attached). No settings have been changed. I'm wondering if anyone else has experienced this and if so is there a fix?
... View more
10-30-2013
01:45 PM
|
0
|
2
|
2514
|
POST
|
I don't want to hijack this post, but how would I accomplish this. this is a problem I just ran accross. "densify the centrelines (say 12 ft intervals), automatically create a perpendicular line at each new point"
... View more
08-09-2013
11:18 AM
|
0
|
0
|
539
|
POST
|
I have created a line which consists of many segments. I'd like to find a way to create a perpendicular line at the END of the existing segment. Another approach might be to merge all the segments and then create verticies and then create perpendicular lines at the verticies. I'd like to do this using editing tool or a tool in the tool box. I never seem to understand how to use most of the code i find here. Thanks
... View more
08-09-2013
11:10 AM
|
0
|
1
|
2339
|
POST
|
I typically use the insert an Excel object method. I typical insert a spreadsheet that already has all the text and formatting including colored backgrounds. The colors always come out right. The text comes out right only about 80% of the time. However, I have not tried adding an empty object and then adding the data to that. Maybe that is the answer. Add empty Excel object. Open Excel with the data, copy and paste column by column from sheet with data to empty inserted object.
... View more
08-05-2013
05:24 AM
|
0
|
0
|
749
|
POST
|
I manually entered the coords in the attribute table. How did you get your coordinates? You could use arcpy point geometry or an insert cursor to build your point feature class. Here is an example of how you can do this by reading x,y coords from a csv and making a point feature class. This is what the csv looks like: Line_ID,X_Coord,Y_Coord,Length,NAME1,JOIN_FID,Type 1,2317355.49962,681731.016618,1315.40287879,SPICER AVENUE,1,Start 2,2317485.73951,676450.010776,5316.04898921,SPICER AVENUE,2,Start 3,2317627.9246,671135.874095,5294.36015714,190TH STREET,3,Start 4,2317355.49962,681731.016618,5376.75305576,170TH STREET,4,Start I just split this list by commas to get the 2nd and third columns which are the x and y coordinates and created a tuple for the shape field. Here is how it can be done in 10.1.
import arcpy
arcpy.env.overwriteOutput = True
# Coords stored in a csv
csv = r'G:\PROJECTS\Cedar\GeneralScripts\PyLibrary\temp_end_coords.csv'
gdb = r'C:\Testing\test2.gdb'
SR = 3418 # Factory code for state plane Iowa South
# Get coords list as a tuple
coords = []
with open(csv, 'r') as r:
for line in r.readlines()[1:]: # skip headers
coords.append(tuple(float(i) for i in line.split(',')[1:3]))
# Create new feature class
fc = arcpy.CreateFeatureclass_management(gdb, 'Points_test','POINT',spatial_reference=SR)
with arcpy.da.InsertCursor(fc, ['SHAPE@']) as irows:
for cord in coords:
irows.insertRow((cord,))
print 'Done'
... View more
06-20-2013
11:47 AM
|
0
|
0
|
334
|
POST
|
I have created a shp file in ArcCatalog and prepopulted my x y data. Now I want to calculate the Shape field based on my x y values. I used to use the code below, but now it doesn't work. (I know how to add as a table, display XY, and then convert. It seems to me there should be a shorter way to do this) Is there a python replacement? Dim pPoint As IPoint Set pPoint = [Shape] pPoint.X = [Long] pPoint.Y = [Lat] Enter the following in the box under 'Shape = ': pPoint
... View more
06-20-2013
09:48 AM
|
0
|
4
|
2300
|
POST
|
Is your data frame rotated? You cannot use georeferencing while your data frame is rotated.
... View more
10-23-2012
05:33 AM
|
0
|
0
|
460
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|