|
POST
|
sure! Absolutely. If you go to the link I posted, you can download the precinct shapefile. Bring that and your excel table into arcgis, and then right click the shapefile in the table of contents and select join. Join the excel table to the shapefile using the precinct number. Now you have a visual display of precincts with joined election results. Have a go and get back to us if you run into problems.
... View more
04-24-2015
08:01 PM
|
1
|
14
|
3942
|
|
POST
|
Perhaps a better questions is: which specific election results are you after?
... View more
04-24-2015
03:35 PM
|
0
|
16
|
3942
|
|
POST
|
Maybe I'm missing something, but I only see PDF precinct maps at that link, which are unusable in ArcGIS. Maybe try some of the links that Sol or I posted. So, you don't have any election result data at all yet? Your original question gave the impression that you had that data by zip code, but you wanted to analyze it across a different boundary. Sometimes it's hard to communicate by text though!
... View more
04-24-2015
03:33 PM
|
0
|
17
|
3942
|
|
POST
|
...or degrees decimal minutes, or degrees minutes seconds, as you prefer.
... View more
04-24-2015
12:43 PM
|
1
|
0
|
2099
|
|
POST
|
Right click the field heading and select "calculate geometry". You should be able to specify x/y coordinates in decimal degrees.
... View more
04-24-2015
12:40 PM
|
1
|
1
|
2099
|
|
POST
|
Well, I have no problem with him trying several places to get an answer. Hopefully he will be kind enough to come back and let us know if he gets the answer he need though. Thanks for trying, Dan. Now I can see where I went wrong with my script, so it's good for me too!
... View more
04-24-2015
10:53 AM
|
1
|
0
|
3525
|
|
POST
|
So what happens when you drag the "copy features" tool into your model and connect the geometric network as an input?
... View more
04-24-2015
10:47 AM
|
1
|
5
|
3129
|
|
POST
|
I wish someone would pipe up who is a python expert. I'm flailing when it comes to python, but I really want to get PV the help he needs. Dan Patterson? Joshua Bixby?
... View more
04-24-2015
10:23 AM
|
1
|
2
|
10360
|
|
POST
|
And, I think you can map these results anyway you need to. What layer contains your election result data?
... View more
04-24-2015
10:18 AM
|
1
|
19
|
3942
|
|
POST
|
Irvin, you can get precinct data here: Registrar Recorder Precincts | Los Angeles County GIS Data Portal
... View more
04-24-2015
10:17 AM
|
1
|
20
|
3942
|
|
POST
|
What do you mean by one file? Do you mean one line, or something else? Instead of the geometric network as your input, use the individual line feature class for the tool in your model.
... View more
04-24-2015
10:06 AM
|
1
|
7
|
3129
|
|
POST
|
Unless of course the image is not georeferenced. J.B. have you tried adding the images to ArcMap yet? If you have, and they didn't have gereferencing, let us know, otherwise it's an easy solution.
... View more
04-24-2015
08:16 AM
|
1
|
0
|
1558
|
|
POST
|
Here's another possibility, that doesn't use the Alter Fields tool. Please don't try it without making a copy of your data first. #Import geoprocessing import arcpy #Set workspace arcpy.env.workspace = r'your workspace' fc = 'your feature class' fieldList = arcpy.ListFields(fc) #get a list of fields for each feature class for field in fields: # do not duplicate oid and geometry fields if field.Type == "OID" or field.Type == "Geometry": continue # Split field name at _ symbol fieldNames = field.name.split("_") del(fieldNames[0:1]) # add a new field using the same properties as the original field arcpy.AddField_management(fc, fieldNames[0], field.Type) # calculate the values of the new field # set it to be equal to the old field arcpy.CalculateField_management(fc, fieldNames[0], field) # delete the old fields arcpy.DeleteField_management(fc, field)
... View more
04-24-2015
12:41 AM
|
2
|
0
|
10360
|
|
POST
|
Peter, this is a run-on question from another thread. My python skills are very rudimentary, but what he needs to do is loop though his fields, and if they have All_text_ at the beginning of the name, strip it off, and make that the new field name. This is my poor attempt, but I'm sure it's not quite right: #Import geoprocessing import arcpy #Set workspace arcpy.env.workspace = r'your workspace' fc = 'your feature class' fieldList = arcpy.ListFields(fc) #get a list of fields for each feature class for field in fieldList: #loop through each field fname = field.name if fname.startswith(" All_txt_") : #look for the stated text new_name = fname.replace( " All_txt_","") #replace with new field name arcpy.AlterField_management(fc, field, new_name)
... View more
04-24-2015
12:14 AM
|
1
|
1
|
10360
|
|
POST
|
It's a Boolean field, so if that feature is currently in use, the value = 1 (or true), and if it's not in use, the value = 0 (false).
... View more
04-23-2015
08:56 PM
|
0
|
1
|
1390
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-15-2015 11:16 AM | |
| 1 | 05-08-2015 09:21 AM | |
| 1 | 06-17-2015 06:53 AM | |
| 1 | 06-16-2015 09:39 AM | |
| 1 | 05-29-2015 10:34 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|