|
POST
|
I have the Election Results App set up and working with my data. I would like to add some functionality to the application by showing the winner of all precincts on the map in an info window much like the "Last Updated" window shows the last time the data was modified. Has anyone done something like this? I have no experience with JavaScript so, any help would be greatly appreciated. Thanks,
... View more
11-02-2012
08:22 AM
|
0
|
0
|
656
|
|
POST
|
Okay, I just found the line I needed to change. It is in the default.htm file, in the CreateElectionResultLayout() function. The line reads: map.setExtent(map.getLayer(precinctLayer.Key).fullExtent);
I changed it to: map.setExtent(map.getLayer(precinctLayer.Key).fullExtent.expand(2));
I hope that helps people. Thanks,
... View more
11-01-2012
02:38 PM
|
0
|
0
|
401
|
|
POST
|
Hi, Is anybody using the Election Results Application for local governments? I have it working on my server and using my data, but I need to make some adjustments to zoom extents when one of the races is clicked along the bottom of the application below the bar chart boxes. I have tried to figure out where in the javascript files these events are triggered, but I am not having much luck. My problem is when one of the races is clicked, the application is supposed to zoom to the entire extent of the county, but doesn't zoom out far enough. I would also like to show the overall winner of each selected race in an info window like the "Last Updates" info. in the upper right. I would appreciate any help. Thanks,
... View more
11-01-2012
02:09 PM
|
0
|
1
|
999
|
|
POST
|
Scott, why is ESRI suggesting that we stack polygons to handle condo tax records? It seems to be a lot more complicated and require more effort to maintain all of the duplicate parcels. If you include a tax id field in the parcels layer you could simply use a one to many relate to a tax roll table to achieve the same results. This method would only require you to maintain a single parcels layer and a single parcel for each condo development. David, Scott isn't saying that you run the scripts and then use the exploded parcels as your editing parcel layer from that point forward. The idea is to run the scripts on a regular basis and the public parcel viewing app or any of the other public apps would use the exploded or published version of the parcel layer. It makes it quicker for the app to retrieve the ownership info if the table is flat instead of having to go grab it from a related table, much like a cached imagery service. There are two feature datasets in the local gov IM to handle parcels, ParcelEditing and ParcelPublishing. You run the scripts on the ParcelEditing set and they get moved over to the ParcelPublishing set.
... View more
10-03-2012
08:04 AM
|
0
|
0
|
2891
|
|
POST
|
Is there a fix for ArcReader 10.1? I'm installing it on a new win7 machine and it won't connect to ArcServer data though shapefiles are fine. I don't see an SQL Native client folder on the 10.1 install disk though. Something changed? This works fine on all the other PCs, though those were upgraded from ArcReader 10.0 I had an ArcReader 10 install on a CD ROM, so I was able to find the SNaC install on that.
... View more
08-31-2012
10:34 AM
|
0
|
0
|
2178
|
|
POST
|
I have been using this locator style for a while now, but I have run into a problem when a hyphen seperates a building and unit number. For example, in my reference data I have the unit numbers in the format of #6A (building 6 unit A), but the table I am trying to match uses a hyphen like #6-A. The score is dropped to 56.34 and and any unit with the same building number gets the same score (#6A and #6B etc get the same 56.34 score). What do I need to modify to get #6-A to match #6A without a score penalty? Thanks
... View more
05-22-2012
11:33 AM
|
0
|
0
|
3422
|
|
POST
|
There is a poster of what you can do with the different versions of ArcGIS Desktop here. As to what format you export the data to and how to get it back to the original, I'm afraid I'm going to be no help there. Sorry.
... View more
01-26-2012
12:33 PM
|
0
|
0
|
675
|
|
POST
|
The 10 geocode engine still plots points on the chord of a true curve instead of along the curve. Any idea when this will be fixed?
... View more
01-26-2012
07:11 AM
|
0
|
0
|
291
|
|
POST
|
The actual coordinates of a point are stored in the shape field. So when you add coordinates in an MGRS field, that is only an attribute of the point feature. If you want to create points using a table of coordinates, first create a table with fields like MGRS, LAT, and LONG. After entering the coordinate info in the table, add it to ArcMap and right click on the table in the table of contents and select "Display X Y Data". This will bring up a dialog that allows you to specify what fields in the table have the x and y coordinates. You can then export the resulting layer to a feature class in a geodatabase. Or if you add the points spatially on the map, you can then go to the fields in your table and right click the field name and choose "Calculate Geometry". That will let you calculate the Lat, Long and MGRS coordinate for the points you entered on the map.
... View more
01-20-2012
05:41 AM
|
0
|
0
|
363
|
|
POST
|
Have you tried hard coding the text into the program? It may be a problem with getting the STR variable from the GetParameterAsText function. pageID = ddp.getPageIDFromName('T1S R70W S30') If that works maybe try placing your GetParameterAsText function in the str() function. STR = str(arcpy.GetParameterAsText(0))
... View more
01-06-2012
11:18 AM
|
0
|
0
|
2217
|
|
POST
|
#Import arcpy module
import string
import arcpy
import os
from arcpy import mapping
from os import sep as bs
# Script arguments
STR = arcpy.GetParameterAsText(0)
#Export Section Map
mxd = arcpy.mapping.MapDocument(r"V:\gislu\Planning\DeveloperKit\SectionMap.mxd")
ddp = mxd.dataDrivenPages
pageID = ddp.getPageIDFromName(STR)
ddp.currentPageID = pageID
tmpPdf = r"V:\gislu\Planning\DeveloperKit\output\Section_temp.pdf"
ddp.exportToPDF(tmpPdf, 'CURRENT', resolution = 175)
finalPdf.appendPages(tmpPdf)
os.remove(tmpPdf)
del mxd, ddp the line: finalPdf.appendPages(tmpPdf)
probably won't work because finalPdf isn't defined. I am assuming you have it defined in code that you didn't include in your post.
... View more
01-06-2012
08:48 AM
|
0
|
0
|
2217
|
|
POST
|
You will also want to use os.remove(tmpPdf) to delete the temporary pdf file. The del command is for object cleanup which you have a bunch of - ddp, df, Layer, and mxd. Where you don't need to do the layer selection, I think the only objects you need are the mxd and ddp objects.
... View more
01-06-2012
08:23 AM
|
0
|
0
|
2217
|
|
POST
|
I don't think you need to go through all of the selection code. If you replace "SEC_FULL" with the STR variable, it should change to the section entered by the user. pageID = ddp.getPageIDFromName(STR)
ddp.currentPageID = pageID Then you can get rid of all of the selectLayerByAttribute_management code. As long as the user enters the section correctly it should work. You might want to put some error handling code in to make sure they type the section correctly.
... View more
01-06-2012
08:14 AM
|
0
|
0
|
2217
|
|
POST
|
I think your problem might be your clause string. I tried typing the same text in the Python window and got a runtime error. What do you want the clause value to be?
... View more
01-06-2012
07:11 AM
|
0
|
0
|
2217
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-07-2011 12:55 PM | |
| 1 | 01-13-2021 11:29 AM | |
| 2 | 06-05-2024 07:29 AM | |
| 1 | 04-26-2024 11:42 AM | |
| 1 | 02-12-2024 07:49 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-25-2026
02:36 PM
|