|
DOC
|
Works really well. Our fire department likes to have the bookmarks for apartments separated by district - and now I can do that. One enhancement might be to add an option to have the box automatically close after the bookmark is chosen.
... View more
01-25-2016
10:06 AM
|
0
|
0
|
20478
|
|
POST
|
I'm using Flash Builder and modifying what was once the Flex Viewer. I modified the Bookmark widget to show a list of all the apartment complexes in town. Then when you select one of them it'll pan/zoom the map over and open the Fire Department's pre-fire plan in PDF. Then they manually close the bookmark window. I'd like to be able to close that window automatically once it opens the PDF. I've got it doing everything they want except this one thing, and in the meantime I'm also writing the same viewer in JavaScript with WebApp Builder. I'm not supposed to be a web programmer, but it's one of those things you wind up taking on. I've mostly taken existing widgets and modified their function so I've never really worked with opening and closing pop-ups. Any help is appreciated. Then this is my LAST flex code and I rewrite everything in JavaScript.
... View more
12-23-2015
01:05 PM
|
0
|
1
|
1619
|
|
POST
|
I'm doing the same thing - transitioning to JavaScript. But I need one last thing for my Flex bookmark on a map that I probably won't transition until I absolutely have to. I need a book mark to close itself after a selection has been made. In other words, when you click a bookmark it'll zoom/pan the map and close the bookmark dialog. Any ideas?
... View more
12-23-2015
07:09 AM
|
0
|
3
|
1619
|
|
POST
|
Here's a little inside info that can benefit everyone wanting to do calculations in the field calculator using Python. The book "GIS Tutorial for Python Scripting" has a chapter on this ... AND YOU CAN GET THAT CHAPTER FOR FREE! Go to this Esri Press site and click "Sample Chapter": Esri Press | GIS Tutorial for Python Scripting You can get the data necessary to do all the work for this book at this site and click under "Resources": Esri Press Book Resources | GIS Tutorial for Python® Scripting That'll get you started with Python - then you can buy the rest of the book later. By the time you finish all those tutorials and exercises you should be asking for a raise! David W. Allen
... View more
12-03-2015
09:09 AM
|
4
|
0
|
1765
|
|
POST
|
Should have gone with the odds and said indentions … Ya know, the only thing harder than debugging your code is debugging someone else’s code!! Let me know if you have any other issues. The exercises are challenging and the steps aren’t shown so if you get stuck on one of those I can send the key. David
... View more
09-24-2014
06:10 AM
|
0
|
0
|
1635
|
|
POST
|
Hey Jeremiah, Glad to know that you're working through the book and I'm sorry that you got hung up on this one. There may be some differences in how the concatenations are handled between 10.1 and 10.2. They did a rewrite on that part of ArcPy to handle some issues with commas, quotes, and such. You'll find a part in the book later where I address that. Try making a variable for the comma position you want in the first slicing action and see if that helps: def FindLabel ( [OwnerName] 😞 rawName = [OwnerName] commaNum = rawName.find(",") commaNumTwo = commaNum + 2 formatName = rawName[commaNumTwo:] + " " + rawName[:commaNum] return formatName Not all the Python code errors you get are specifically from the Python error generator - some come from ArcPy and therefore are subject to change. So I try to take any statement where I've some something complex and break it into simple terms and try again. When I've isolated the error, then I can go back and make my code more concise. Let me know how that goes. David Allen
... View more
09-23-2014
06:05 AM
|
1
|
6
|
1635
|
|
POST
|
You have to remember that GSTOP is for wildfires, not all-hazard, so it may be a different situation for other types of emergencies. FEMA has developed two courses in their ICS training that deal with GIS. IS-922 and IS-103. In these, it's clear that GIS can be housed under both Planning and Operations. We typically do that, and have one GIS responder operating and maintaining the Common Operational Picture display, while others prepare printed maps and perform analysis.
... View more
06-03-2014
11:41 AM
|
0
|
0
|
1756
|
|
POST
|
Hi. I am looking for a good GIS-based application for use with municipal weed abatement, but having a surprisingly difficult time finding one. Does anyone know of a good application or third-party software vendor for something like this? Thanks! Don't know if anyone is still looking at these old posts ... but ... We use Government Outreach for our weeds. It lets the code guys manage this on a map, and also lets citizens file complaints (with photo) using their smart phones. It also will let citizens track the process so that they know action is being taken. Sometimes they don't understand that we can't just go mow the property that afternoon, it can be a lengthy process and they will get automatic updates as the situation is handled. It consumes our ArcGIS for Server data services, so as I make updates the program is automatically updated.
... View more
06-03-2014
10:43 AM
|
0
|
0
|
601
|
|
POST
|
"GIS Tutorial 2: Spatial Analysis Workbook" from Esri Press has a chapter on doing this exact type of analysis using data from the City of Ft. Worth. It also goes on to show statistical hot spot mapping as well as analysis with a spider diagram.
... View more
06-03-2014
10:36 AM
|
0
|
0
|
802
|
|
POST
|
This doesn't look like an ArcMap creation judging by the way the text boxes run off the page. You can, however, write a script that will do this with Python and the arcpy.mapping module. This would allow for the best customization, but you might get by with the standard 'data driven pages' tools. If you're headed to the UC, go to some of the arcpy.mapping or data driven pages sessions, or look for the new Python GIS Tutorial programming book that has examples of how to do this.
... View more
06-03-2014
10:32 AM
|
0
|
0
|
710
|
|
POST
|
Incidentally, my intention is to run this from an add-in toolbar which I tried today. It doesn't run there either. Scott Scott - test this both in data view and in layout view. My guess is that it'll work in one and not the other. Then look at the coordinates returned in layout view and see if they are page measurements or projected coordinates. I like to add print statements periodically in my code to print out things like retrieved coordinates and messages. They'll appear in the Python window. When you know what the measurement system of the returned coordinates is, I think you'll see the answer.
... View more
07-03-2013
11:50 AM
|
0
|
0
|
435
|
|
POST
|
I am only getting following error: Python: NameError: global name 'button1' is not defined Here's my shot-in-the-dark answer. Do you by any chance have the button1 on a menu within a toolbar? If so, the button doesn't initialize until the menu is clicked. Here's what I'm experiencing with a button/tool issue of my own. The tool is on the toolbar, a menu is on the toolbar, and the button is in the menu. Start ArcMap and open the map document. Click the menu name, then use the tool - the enabled property of the button works fine. Start ArcMap and open the map document. Click the tool and I get the error message "global name 'printButton' is not defined. Since the menu isn't controlled in the Python script, I don't see a fix. David Allen
... View more
07-03-2013
11:38 AM
|
0
|
0
|
1803
|
|
POST
|
I created a Python add-in with the wizard. Then I created a toolbar with a couple of combo boxes and tools. Lastly, I added a menu to hold three buttons that will generate PDF maps that I call the print menu. I've got the combo boxes initializing as enabled = False, then changing them to true after the user selects some features with the tools. All pretty nice. I'd like to make the buttons on the print menu disabled until the combo boxes have accepted their value entries. But there's a problem. If you try to set them to enabled with the combo box you get a message that the item doesn't exist. That's because those three items haven't been created or initialized yet. The buttons in the print menu don't initialize until someone clicks the menu name on the toolbar. At that point, the three buttons are initialized and set to be disabled. The menu items don't exist in the Python script that is user editable, so you can't control them there. They only exist in the config.xml file. My question, then, is if there is a way to initialize the menu and its buttons when the toolbar initializes?
... View more
07-03-2013
11:30 AM
|
1
|
1
|
1041
|
|
POST
|
Ted - would you like to see a book on python programming in ArcGIS? ... or would you be interested in writing one? The release of ArcPy may mark the correct time for such a project. David Allen dallen@eulesstx.gov The timing in 2009 wasn't exactly right. They kept saying "wait till this new stuff hits in 10.0", then "wait till this new stuff hits in 10.1". Since then Esri Press has published a "cookbook" for Python by Paul Zandbergen called "Python Scripting for ArcGIS". It's a good starting point and reference book, but doesn't have a lot of hands-on coding exercises that the reader can do. But coming in Spring 2014 is "GIS Tutorial 4: Python Workbook". It has TONS of hands-on tutorials and exercises like the other tutorial books and covers all the basic stuff as well as the advanced topics like Python Toolboxes and Python add-ins. By the time you finish all five chapters you'll be coming to the forums to answer questions instead of asking them! It was written by the same guy who wrote GIS Tutorial 2, GIS Tutorial 3, and Getting To Know ArcGIS ModelBuilder.
... View more
07-03-2013
11:17 AM
|
0
|
0
|
234
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-06-2017 09:30 AM | |
| 1 | 06-11-2019 01:32 PM | |
| 7 | 07-16-2020 12:21 PM | |
| 1 | 03-10-2020 11:09 AM | |
| 1 | 04-22-2019 09:21 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-15-2023
07:12 PM
|