|
POST
|
Probably the simplest thing to do is make two new columns - northsouth and eastwest. If Quad = 1 or 2, northsouth = N. If Quad = 3 or 4, northsouth = S. And so on. Use those fields in your label. edit: once you have "northsouth" and "eastwest" populated with the proper letters, you can make your label expression to be: "T" & [Township] & [northsouth] & " R" & [Range] & [eastwest] & " Sec" & [Section]
... View more
12-07-2012
07:11 AM
|
0
|
0
|
3462
|
|
POST
|
Along the lines of Dan's idea, you could Add XY Coordinates to each of your point feature classes, Join one to the other by the common field, then use Geometry to calculate the distance between the two sets of coordinates. As long as your feature classes are in the same projection, I'm pretty sure this is valid (although I'm open to explanations as to why not), but you should double-check a few pairs in ArcMap with the distance tool.
... View more
12-05-2012
01:55 PM
|
0
|
0
|
2519
|
|
POST
|
Another method (among many more, I'm sure) is to use the Image Analysis Window: 1.) Open Image Analysis Window 2.) Select your elevation raster in the top section of the window 3.) Click Add Function button under Processing 4.) Right-click your elevation raster in the Raster Function Editor pop-up. Choose Insert->Mask function. 5.) Enter the minimum (1200) and maximum (1500) values you're interested in. 6.) That's it.
... View more
12-05-2012
06:57 AM
|
0
|
0
|
914
|
|
POST
|
Another method to try is: 1.) Convert buffers to raster (Polygon to Raster - requires ArcInfo/Advanced) 2.) Thin the buffer raster (requires Saptial Analyst) 3.) Convert thinned raster to line (Raster to Polyline)
... View more
12-04-2012
12:21 PM
|
0
|
0
|
3054
|
|
POST
|
I'm looking for the easiest way to split multiple lines by an equal distance. Everything I've found online seems to involve an incredibly convoluted hack. This seems like a basic requirement, so I won't be surprised if I'm missing something obvious. I've got 4000km of line that I want to split into 10m lengths (I don't really care about the last remainder). There are thousands of lines, so please don't suggest doing this one by one. Right now, I'm splitting the 4000km of line by intersecting it with a 7m x 7m grid (~10m diagonally), which guarantees all of my segments are at least less than 10m long. It works, but clearly it's overkill. If you have a clean method of splitting my lines, please let me know.
... View more
11-29-2012
12:44 PM
|
0
|
3
|
5651
|
|
POST
|
There are a few different ArcGIS "merges", and probably more that I'm forgetting (sounds you want the manual edit merge, though): Dissolve (automated): Edit Merge (manual): Merge Tool (doesn't remove coincident lines):
... View more
11-27-2012
11:50 AM
|
0
|
0
|
3314
|
|
POST
|
Apparently the parameters are not valid in the line: arcpy.gp.DetectarDiferenciasA(Incidencia_2012, IncidenciaSDE_A)
So, what parameters does that tool require, and are you sure they match with "Incidencia_2012" and "IncidenciaSDE_A"?
... View more
11-27-2012
10:35 AM
|
0
|
0
|
3372
|
|
POST
|
I have no idea how to do this in ModelBuilder, but since this is the Python forum here is a Python answer: import arcpy
inputFeatureClass = r"H:\GIS_Data\TEMP.gdb\points" #change to your input file path
outputTxtFile = open(r"H:\GIS_Data\outputfile.txt", 'w') #change to your text file
rows = arcpy.SearchCursor(inputFeatureClass, "", "", "textfieldname") #change field
for row in rows:
string = row.getValue("textfieldname") #change field
outputTxtFile.write(string + '\n')
... View more
11-27-2012
06:46 AM
|
0
|
0
|
1228
|
|
POST
|
I admit I haven't used the new arcpy.da cursors yet, but from the help (look for "Accessing and setting field values") it looks like your 'if' statement should be: if row[0] == 50: #check first column returned by cursor
... View more
11-26-2012
12:26 PM
|
0
|
0
|
1652
|
|
POST
|
If you've got a variable called Survey_Number, you can use it in your output filename by naming it: select_by_survey_result_%Survey_Number%
See the examples of inline variable substitution.
... View more
11-22-2012
11:13 AM
|
0
|
0
|
19740
|
|
POST
|
You probably won't find a premade tool for this, but it is possible through a Python script. You'll have to loop through each row with a Search Cursor, then for each current row loop through each row with a higher ID number (with another Search Cursor) and calculate the distance to the current row. Store all those distances and IDs in an array, then record the highest distance and ID in the current row.
... View more
11-22-2012
07:59 AM
|
0
|
0
|
915
|
|
POST
|
Could prove challenging as we will have hundreds of input files after parsing the large (600GB) CSV files. You could automate the creation of your .ini file (if it's simply changing the csv filename by an increasing number): iniFile = open(r"PATH_TO_YOUR_INI_FILE",'w')
numbers = range(1,100)
for i in numbers:
iniFile.write("[" + str(i) + "_output.csv]\n\
Format=CSVDelimited\n\
Col1=ID Long\n\
Col2=LON Double\n\
Col3=LAT Double\n\
Col4=DT Text\n\
Col5=TM Text\n\
Col6=VesselType Text\n")
... View more
11-13-2012
07:48 AM
|
0
|
0
|
3697
|
|
POST
|
Aren't you writing out the exact same input to the output? You put the datetime into a string (str_date) but never write it to the output. for ID,LON,LAT,DTTM,HEADING,CALL_SIGN,vesselType in reader:
dt = DTTM[:19]
dtime = datetime.strptime(dt, '%Y-%m-%d %H:%M:%S')
str_date = dtime.strftime('%Y-%m-%d %H:%M')
data = [ID,LON,LAT,DTTM,HEADING,CALL_SIGN,vesselType]
writer.writerow(data) I'm guessing it should be something like: data = [ID,LON,LAT,str_date,HEADING,CALL_SIGN,vesselType
... View more
11-07-2012
12:46 PM
|
0
|
0
|
3697
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-30-2013 02:22 PM | |
| 1 | 04-12-2011 11:19 AM | |
| 1 | 09-17-2021 09:43 AM | |
| 1 | 04-04-2012 12:05 PM | |
| 2 | 07-16-2020 11:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|