POST
|
I have loaded over 45 images into a story map successfully. Because these images are property of our Museum, they do not want them to be shared anywhere other than in the story map (they are watermarked as well). I changed the permissions in my flickr album to "Private", as I want to secure these images as available only in the story map. Now I am getting the error "This image or video is currently unavailable" from Flickr. Are the images, after being loaded into the story map, required to remain in flickr? I also changed the album back to Public and I am still getting the error.
... View more
12-12-2014
10:25 AM
|
0
|
3
|
3967
|
POST
|
I would guess it is still a prototype. I worked with ESRI to trouble-shoot the time slider issue and they are working on a patch so that that a time aware web map will function in the briefing book. Right now, it doesn't appear to function. Our workaround was to create a time aware WEB APP and then to place an html module in the briefing book to call the web app. A little clunky, but it worked. The html code would be: <iframe width="800" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.arcgis.com/apps/OnePane/azuretime/index.html?appid=507eb25f43204e7ba9ecc4b83bfadd05"></iframe> where the appid is the web app id unique to the time aware app you created.
... View more
12-01-2014
09:55 AM
|
1
|
1
|
260
|
POST
|
We recently hired a new Planning Director and I am putting together briefing books for the various work programs in our department to familiarize him. In one of our books, I would like to embed a web map that I have created that shows the Home Rehabilitation Projects over time (1977-2014). I made a Time Enabled web map in ArcGIS online, but when I bring that time aware web map into the briefing book, there is no time slider or time "awareness". It shows all the locations at once. I watched a video on the resources page that shows this is possible when using the "ArcGIS for Intelligence Briefing Book Application", which sounds like a slightly different application. Any info would be greatly appreciated. Thanks!
... View more
10-31-2014
10:35 AM
|
0
|
3
|
3129
|
POST
|
According to the traffic crew that collected the data, it is only collected in the direction of interest (towards the city center in the AM, away from the city center in the PM). I will also spiff-up the legend to make all of this more clear.
... View more
09-24-2013
08:15 AM
|
0
|
0
|
429
|
POST
|
I ended up saving the circle and arrow symbol out of InDesign as a gif. Used the gif as a marker symbol in ArcMap. (Actually three symbols with varying sizes of center circle based on three ranges of total bike/ped count). I then attributed each point with a "ROTATION" field. This field is used to rotate the symbol, as well as guide a pretty complex set of layer files for labeling the counts in the appropriate area of the green or orange arrow. Not perfect, but better than hand placing and will easily be updated when the 2013 data is released. Attached is a screenshot from my draft map. I only have 22 points, so this is manageable...
... View more
09-23-2013
02:39 PM
|
0
|
0
|
429
|
POST
|
Hi, was hoping to post this in the "Ask a Cartographer", but appears that function is down right now. I have point locations (street intersections) with AM Bike, AM Walking, PM Bike, PM Walking counts. I have created a map, mostly using graphics in InDesign...but am wondering if there is a savvy way to make this happen in ArcMap or through an ArcGIS Online app? We have an enterprise agreement. The obvious problem with InDesign method I am using, is updating the data (which currently is hand-placed) and the opportunity for error. Any thoughts or suggestions would be greatly appreciated. I have attached the map that I made through InDesign. The data is not currently attributed with a "inflow/outflow direction", but could easily be done.
... View more
09-19-2013
09:24 AM
|
0
|
3
|
1739
|
POST
|
Thanks everyone for all the ideas....I finally figured out a solution that will work using string slicing and carriage returns. Still not sure on the python syntax for formatting text, but ended up not going that route. Below is the code I ended up using, and attached is an image of the text boxes that it spits out in my ArcMap project: #iteate through each row, update appropriate table/text
for row in NHRows:
if len(row.LAND_USE_DESIGNATION) > 32:
LegNum.text = LegNum.text + row.SUBAREA_CODE + "\n" + " " + "\n"
LegText.text = LegText.text + row.LAND_USE_DESIGNATION[0:32] + "\n" + row.LAND_USE_DESIGNATION[32:] + "\n"
else:
LegNum.text = LegNum.text + row.SUBAREA_CODE + "\n"
LegText.text = LegText.text + row.LAND_USE_DESIGNATION + "\n" [ATTACH=CONFIG]16177[/ATTACH]
... View more
07-17-2012
01:32 PM
|
0
|
0
|
797
|
POST
|
Not sure the text wrapping will work, as the "LegText" element is associated and needs to be aligned with the "LegNum" Element. I have attached a screen shot of what my issue is and why I need to resize the "LegText" element, as it runs off the page after 33 characters. This is a script tool that uses data driven pages to zoom to different neighborhoods and populate the two text elements in on the right of the page to serve as a legend. The data is being pulled from a table using search cursors.
... View more
07-17-2012
12:00 PM
|
0
|
0
|
797
|
POST
|
The help document reference VB and from what I can tell, the syntax for text formatting in python is a bit different. This seems like something that should be really easy...but for the life of me I am just not getting it 😞
... View more
07-17-2012
08:27 AM
|
0
|
0
|
797
|
POST
|
Thanks! ...and sorry to be totally useless 😕 ...but I also can't figure out the text formatting. I only need the LegText to be adjusted...but I can't get the formatting correct either. Also not sure if making the spacing negative is appropriate (as I want the spacing to go smaller) Below is what I tried, and I am not finding much help on the resource center about formatting text in python... #iteate through each row, update appropriate table/text
for row in NHRows:
if len(LegText.text) > 32:
LegText.text = '<CHR spacing="-25">'LegText'</CHR>'
LegNum.text = LegNum.text + row.getValue("SUBAREA_CODE") + "\n"
LegText.text = LegText.text + row.getValue("LAND_USE_DESIGNATION") + "\n"
else:
LegNum.text = LegNum.text + row.getValue("SUBAREA_CODE") + "\n"
LegText.text = LegText.text + row.getValue("LAND_USE_DESIGNATION") + "\n"
... View more
07-16-2012
01:53 PM
|
0
|
0
|
797
|
POST
|
Does anyone know the python syntax to count the number of characters in a field and format the text based on the number of characters? I have a script that populates a text element in my map with the values of a field based on a data driven query. Problem is, my text element is at times not wide enough to hold all the text that I need to display (and the width of the text element is not able to be changed). There are just a handful of row values that don't fit the text element width (basically anything that is greater than 32 characters). I am thinking if I knew the syntax to count the characters, that I could format the character and word spacing (reduce them). Below is the entire code block. I think where I could run this if/else based on character count is in the lower portion of the code where I iterate through the rows. Any help greatly appreciated. #Date: 8/1/2011
#Zoom to Neighborhood
#This tool runs from a script tool. Choose a Neighborhood from a pick list
# generated from the script tools validation script. Click OK and the
# Data Driven Page will update the layer with the appropriate dynamic text and
# tabular information.
#Note - this script tool uses CURRENT and must be run from within ArcMap.
import arcpy, os, sys
#Reference current MXD
mxd = arcpy.mapping.MapDocument("CURRENT")
##mxd = arcpy.mapping.MapDocument(R"N:\Users\ke\NeighborhoodMapSeries\TestLegend.mxd")
#Get input parameter
NHName = arcpy.GetParameterAsText(0)
##NHName = "EDGEMOOR"
#Reference appropriate data frames
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
#Reference appropriate layers
NHLabels = arcpy.mapping.ListLayers(mxd, "Neighborhood Labels", df)[0]
ZoningSA = arcpy.mapping.ListLayers(mxd, "Zoning Sub-Area", df)[0]
NHAnno = arcpy.mapping.ListLayers(mxd, "NH_Anno",df)[0]
#Reference layout elements by calling ListLayoutElements only once - get better performance
for elm in arcpy.mapping.ListLayoutElements(mxd):
if elm.name =="LU_Legend_Num": LegNum = elm
if elm.name =="LU_Legend_Text": LegText = elm
#Reference the Data Driven Page object
ddp = mxd.dataDrivenPages
#Set the current page to be the one selected in the script tool
arcpy.AddMessage(NHName)
pageID = mxd.dataDrivenPages.getPageIDFromName(str(NHName))
mxd.dataDrivenPages.currentPageID = pageID
#Set the appropriate definition queries
NHLabels.definitionQuery = "NEIGHBORHOOD_NAME <> '" + NHName + "'"
ZoningSA.definitionQuery = "NEIGHBORHOOD_NAME = '" + NHName + "'AND GENERAL_USE_TYPE <> 'WATER '"
NHAnno.definitionQuery = "NEIGHBORHOOD_NAME = '" + NHName + "'"
print "def query worked"
#Reference RevisionText table and select appropriate records
revTable = arcpy.mapping.ListTableViews(mxd, "NH_Legends")[0]
#Build query and create search cursor to loop through rows
NHFieldValue = NHName
queryExp = "\"NEIGHBORHOOD_NAME\" = '" + NHFieldValue + "'" #e.g., "Neighborhood_Name" = 'CORNWALL PARK'
NHRows = arcpy.SearchCursor(revTable.dataSource, queryExp, "", "", "SA_NUM")
#Clear all table text values
LegNum.text = " "; LegText.text = " "
#iterate through each row, update appropiate table/text
for row in NHRows:
LegNum.text = LegNum.text + row.getValue("SUBAREA_CODE") + "\n"
LegText.text = LegText.text + row.getValue("LAND_USE_DESIGNATION") + "\n"
##mxd.save()
arcpy.RefreshActiveView()
arcpy.AddMessage("PROCESS COMPLETED")
... View more
07-16-2012
12:31 PM
|
1
|
8
|
2317
|
POST
|
Is there a way to insert a word document based on a specific page in a map document? Not easily. It can be done with arcpy.mapping but it would require that you author a table outline in ArcMap using line graphics. Then you would populate dynamic text to fill the columns in the table. I'm working on getting a sample out on the resource center. Once I get data permissions, I'll put it up as soon as I can. Attached is a static table graphic (of grouped line elements). There are actually 3 tables, each with 3 columns. I have a total of 3 text elements, one for each column in each table. I read the rows from a GDB table and dynamically populate the text element with line breaks (to create the rows). I can fit up to 15 rows of data onto each table. If there are more than 15 rows, I populate the next table, etc. Here is the code that populates the table: for row in allRows:
if count < 15:
tab1Col1Txt.text = tab1Col1Txt.text + row.getValue("DATE") +"\n"
tab1Col2Txt.text = tab1Col2Txt.text + row.getValue("CHANGE") + "\n"
tab1Col3Txt.text = tab1Col3Txt.text + row.getValue("MADE_BY") + "\n"
if count >= 15 and count < 30:
tab2Col1Txt.text = tab2Col1Txt.text + row.getValue("DATE") + "\n"
tab2Col2Txt.text = tab2Col2Txt.text + row.getValue("CHANGE") + "\n"
tab2Col3Txt.text = tab2Col3Txt.text + row.getValue("MADE_BY") + "\n"
if count >= 30 and count < 45:
tab3Col1Txt.text = tab3Col1Txt.text + row.getValue("DATE") + "\n"
tab3Col2Txt.text = tab3Col2Txt.text + row.getValue("CHANGE") + "\n"
tab3Col3Txt.text = tab3Col3Txt.text + row.getValue("MADE_BY") + "\n" Jeff
... View more
04-25-2012
08:39 AM
|
0
|
0
|
2287
|
POST
|
I am having the same issue...did you ever find a solution?
... View more
04-24-2012
03:55 PM
|
0
|
0
|
260
|
POST
|
Wondering if anyone can tell me why my thumbnails are not actually being created. I have the following script (see below text or attached jpg) and it runs without any error, and the save date on my mxd's is changed...so it appears as if the script is working perfectly....except that it actually doesn't create the thumbnails. When I open the project and check the Map Document Properties, you can tell a thumbnail has never been created because the option to delete thumbnail is greyed out. Also the thumbnails do not show in the splash screen upon ArcMap starting up. So even though the model runs without error and appears to have worked, it never really updates the thumbnails!?!
import arcpy, os
path = r"N:\Users\ke\New_Templates"
for fileName in os.listdir(path):
fullPath = os.path.join(path, fileName)
if os.path.isfile(fullPath):
basename, extension = os.path.splitext(fullPath)
if extension.lower() == ".mxd":
mxd = arcpy.mapping.MapDocument(fullPath)
print "creating thumbnail for " + fullPath
mxd.makeThumbnail()
mxd.save()
del mxd
... View more
03-22-2012
10:34 AM
|
0
|
2
|
1375
|
POST
|
Jeff (while I got ya here ; ) If I used the index of [0], isn't this just calling the first returned object in the list? My "Bays, Lakes & Streams" grouped layer file is way at the bottom of my table of contents...which I would think would mean that instead of [0] I would be calling [21], which when I ran the "Longname" command and counted it's place, that is where it was... Thanks for your help. I did attend a conference where you were doing hands-on ArcPy.mapping workshop almost a year ago in Tacoma, unfortunately we only just finally got 10 installed so I'm just now trying to dive into using ArcPy.mapping.
... View more
10-07-2011
07:33 AM
|
0
|
0
|
595
|
Title | Kudos | Posted |
---|---|---|
1 | 12-01-2014 09:55 AM | |
1 | 07-16-2012 12:31 PM | |
1 | 06-08-2015 09:06 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|