|
POST
|
def removeName(shapefilePath):
cursor = arcpy.da.UpdateCursor(shapefilePath, ["NAME"])
for row in cursor:
nameStr = row[0]
if nameStr[0:3] == "***" : row[0] = "" cursor.update(row)
... View more
08-18-2014
02:47 PM
|
1
|
2
|
3173
|
|
POST
|
Also if you add some tags to the original post, people would be able to find and filter to this discussion easier.
... View more
08-18-2014
01:50 PM
|
0
|
0
|
3052
|
|
POST
|
I don't know enough about ArcObjects to help you with that, perhaps Xander Bakker might know of some add-ons or tools that can help you out for a dynamic way to create new data frames as an inset map. If they were planning on manually creating the area of interest boxes in the map, I would suggest making some map templates, saved mxds that have multiple dataframes already built with the layers already loaded(they could be placed in the map template folder so they are an option when ArcMap opens). You could keep the extra dataframes out of the layout extent and they could bring them into the layout as needed, then they would just need to zoom in to the area they need in the inset map, then create the extent rectangles. Not quite as easy as their old draw the area of interest and click where you want the inset, but certainly better than starting from scratch each time.
... View more
08-18-2014
01:48 PM
|
1
|
3
|
3052
|
|
POST
|
Ted, your post was a bit confusing can they or can they not use ArcGIS? Also, what type of mapping are they needing to do, are they needing to zoom to various features of a layer, or add different layers, etc? I know for a project like this that I've done I made some template mxds, which could be accessed with python and you could add features you needed, or select the features you need and zoom to them on both the inset map(secondary dataframe(s)) and the main map(primary dataframe). My end result was a script tool where I could control the various text elements and add the layers I needed and it would make the changes to the template map with multiple dataframes, save it as a new map and export to pdf. Depending on the functionality you are needing(say you need to do 500 junction insets for a utility map, each with a certain ID number) you could make a script where it could do all of them at once, just have your template then have it select by attribute, zoom to feature, save as a new file name, then make the next one. You would likely have to do alot of spot checking and editting, but at least all your MXDs would be created and feature you need there with only editting needing to be done. If you can give some more info about the project, it would probably be easier to find a good solution. Would you be needing one inset per map, multiple, or a variable number? Are we working with multiple layers for insets or singles?
... View more
08-18-2014
12:40 PM
|
0
|
6
|
3052
|
|
POST
|
I don't believe ArcGIS can handle this. However, did find an interesting article, that should allow you to do it with Tableau and a download(free) Alteryx, navigating through Tableau mapping - The Information Lab
... View more
08-18-2014
11:12 AM
|
0
|
1
|
1185
|
|
POST
|
I would try grouping the layers you want under a heading into group layers, where you can make a name for the group layer. This is done by selecting multiple layers with shift of control while clicking on them and then right clicking on one and selecting group layers.
... View more
08-18-2014
11:06 AM
|
0
|
0
|
419
|
|
POST
|
Hmm, mine works just fine on a sample dataset. Did you make sure that you turned labels on for that layer? Also, python is case sensitive, so make sure that your field is syntactically correct(proper upper/lower case, spaces,etc. included.
... View more
08-13-2014
12:48 PM
|
0
|
1
|
2124
|
|
POST
|
can you check to see if DISTRICT is a text field(string type) or a numeric type? If text, make it if int([DISTRICT) == 1:
... View more
08-13-2014
12:02 PM
|
1
|
4
|
2124
|
|
POST
|
Like I said, make sure the advanced box is checked. It doesn't allow multiple lines of code for simple expressions, so the advanced box needs to be clicked
... View more
08-13-2014
11:25 AM
|
0
|
6
|
2124
|
|
POST
|
It is pretty simple.
def FindLabel ( [DISTRICT] ):
if DISTRICT == 1:
return "Bob Hope" #Input your supervisor name there
elif DISTRICT == 2:
return "Bob Costas" #Input your Supervisor name there
elif DISTRICT == 3:
return "Bob Marley" #Input your Supervisor name there
elif DISTRICT == 4:
return "Bobby Bowden" #Input your Supervisor name there
elif DISTRICT == 5:
return "Bob the Clown" #Input your Supervisor name there
Similar to that, just use if/elif statements to evaluate the value of District and return the name you want. Use Python for parser and advanced expression checked.
... View more
08-13-2014
11:07 AM
|
0
|
8
|
2124
|
|
POST
|
Are you sure you are using Project (Data Management) not Project(Coverage)? Project (Data Management) is in the Data Management > Projections and Transformations Toolset and should be available for basic licenses.
... View more
08-13-2014
11:01 AM
|
0
|
0
|
963
|
|
POST
|
You should be able to use either and get the same results, point density can only use point data, and can search by a circle(radius), torus, rectangle or wedge, whereas kernal density can take point or polyline inputs and can only search by radius for density. In your case since you are using points and only need to search by a radius either one will work. What Dan was trying to explain is that the output of this tool gives its output in units per area unit, so in your case voters per whatever are unit you selected on the tool. So if you used square map units as your area unit scale factor and your map unit is decimal degree, then it calculates the density of voters per square decimal degree( or a 1 degree latitude by 1 degree longitude square box.) So even though you only have 1000 voters, if your area is significantly smaller than 1 degree squared(approximately 4761 square miles), then your density per degree squared is much larger, since it scales it up for the larger area. Example: If you have one person per square foot(1ft by 1ft), then if you scale that to people per square miles, it would be 5280x5280 people per square mile(5280ft by 5280ft). It doesn't care how many people are in your input, just the people per area unit you selected when you ran the tool. Check your dataframe to see what your data frame unit is in(You can see it on the bottom right hand corner of your map). If it is in decimal degree, try re-running the tool after you change the are unit scale factor of your tool to a more useful unit, or change the projection of your data frame to one that uses feet, yards, or miles as a map unit if you want people per square mile, or to one that uses meters or kilometers for people per square kilometer. If you are still having trouble, post up your data and maybe someone can help you out. Also, Dan posted up the tool help, it should be able to help you figure out how to use it properly. Regards
... View more
08-13-2014
10:51 AM
|
0
|
1
|
1534
|
|
POST
|
Take a look at this thread arcgis 10.0 - How do you test for a NULL string field in the Field Calculator with Python? - Geographic Information Sys…
... View more
08-13-2014
10:22 AM
|
2
|
0
|
1337
|
|
POST
|
You should be able to do this with labeling. Make a feature layer that only includes the states you want showing the label to be highlighted, then you can have the label be based on the field which contains the employee numbers. You can use symbol styles to place them within a circle, oval or whatever shape you would prefer. Once you have selected the symbol style, you can edit the symbol, go to advanced text, make sure text background is checked and select properties. There you can select scale marker to fit text to get your text all inside the background shape.
... View more
08-08-2014
12:04 PM
|
0
|
0
|
744
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-22-2017 08:58 AM | |
| 1 | 10-05-2015 05:43 AM | |
| 1 | 05-08-2015 07:03 AM | |
| 1 | 10-20-2015 02:20 PM | |
| 1 | 10-05-2015 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|