POST
|
Thanks for the info. It can be hard to find previous questions that have been asked. Maybe I'm just not a wizard of how to search for content.
... View more
05-19-2016
12:56 PM
|
1
|
1
|
584
|
POST
|
I work for a medium-sized county in Pennsylvania with a 2-person GIS office. We are going to begin developing a Web AppBuilder project using the Developer Edition. Our IT department has set-up the local editing environment on our workstations (C:\). However, we would like to share our projects on our shared network file server so we can have project update meetings. Is there a way to share projects developed on local machines on a shared network drive? Thanks, Patrick
... View more
05-19-2016
10:38 AM
|
0
|
4
|
4752
|
POST
|
Not sure if any other counties are using the Shortlist StoryMap, but I've developed some code to add a toggable legend to the app. Cumberland is using this app for our Bridge Capital Improvement Program. Knowledge of HTML, CSS, and JavaScript is definitely helpful. However, I can help with getting the plugin added to your application. The code and guide can be found on GitHub at GitHub - pmacMaps/shortlist-storytelling-template-js: ESRI Shortlist story map application with custom code to add a tog… . --- Patrick
... View more
05-19-2016
07:27 AM
|
4
|
3
|
3914
|
POST
|
I was trying to figure out the same thing, and came across ESRI's Offline-editor-js project on GitHub. It looks like this may be a possible solution, provided you have some knowledgeable developers on your team.
... View more
05-12-2016
07:05 AM
|
0
|
0
|
565
|
POST
|
Maps & Apps submissions for the PA GIS Conference are due Friday (April 29th). Consider entering this contest. The more submissions, the more options to vote for. More details at http://pagisconference.org/Pages/MapsAppsContest.aspx
... View more
04-25-2016
10:49 AM
|
1
|
1
|
2193
|
POST
|
Julio, Also see Map Tour Custom CSS Best Practices for advice on this. If you're self-hosting the application, you can create a custom stylesheet and use the loadCSS function to add it to the app. Gregory also commented on my post as well. Just make sure you're using enough specificity in targeting elements.
... View more
04-01-2016
01:23 PM
|
2
|
0
|
1573
|
POST
|
Joshua, Thanks! That fixed the problem. I guess it was something simple after all.
... View more
04-01-2016
01:19 PM
|
0
|
0
|
1590
|
POST
|
Bill, how have you created dynamic legends from feature services? I saw something on GitHub, but couldn't figure it out.
... View more
03-31-2016
07:52 AM
|
0
|
1
|
1541
|
POST
|
Traceback (most recent call last): File "F:\Scripts\ArcGIS Geoprocessing\SARA Tool\EstimateCensusPopulation.py", line 73, in <module> fieldExpression = newArea / orgArea TypeError: unsupported operand type(s) for /: 'Field' and 'Field' Failed to execute (EstimateCensusPopulation).
... View more
03-31-2016
07:49 AM
|
0
|
1
|
1591
|
POST
|
Bill, We've dealt with this issue a few different ways. I'll list them to give you an idea of what you could do. Publish a map service with labels turned on Publish a service with the features and a separate service for just the labels If you want the layer to be transparent but not the labels You want the layer to be a feature service due to better drawing
... View more
03-31-2016
07:37 AM
|
2
|
3
|
1541
|
POST
|
I am writing an ArcPy script that will run from a tool with user inputs. The user will select an input layer and output name/directory. I have my current code below. The tool will then do the following: Loop through each record in the input layer and do the following within each loop cycle: clip a census blocks layer by the input feature Create a field in the output clip layer to hold an area ratio value Create a field in the output clip layer to hold an estimated population value Perform a field calculation between two fields in the output clip layer to produce the area ratio (new area divided into original area) Perform a field calculation bewteen two fields in the output clip layer to produce the estimated population (area ratio value calculated in #4 mulitplied by the population field) Let's say the input layer contains three records (1500-ft, 2000-ft, and 2500-ft). There would be three output layers that are clipped census block layers based upon the records from the input, each with estimated census populations based upon the distances from the input feature. The layers would have names like Output_ft_1500, Output_ft_2000, and Output_ft_2500. My code can do everything except complete the field calculations. I'm not sure if I'm missing something simple with the syntax for a SQL expression using fields or what. Please let me know if you have any questions. I tried to explain things as best as I could. Here is the error I get: Traceback (most recent call last): File "F:\Scripts\ArcGIS Geoprocessing\SARA Tool\EstimateCensusPopulation.py", line 73, in <module> fieldExpression = newArea / orgArea TypeError: unsupported operand type(s) for /: 'Field' and 'Field' Failed to execute (EstimateCensusPopulation). ---------------- # Import arcpy
import arcpy
#Set workspace
# Sara Facility
sara = arcpy.GetParameterAsText(0)
# Clip Feature - U.S. Census Blocks
censusBlocks = r'\\CCPASR07\ncgs$\Scripts\ArcGIS Geoprocessing\SARA Tool\SARA_Tool_DEV.gdb\CensusBlocks_2010'
# Output
output = arcpy.GetParameterAsText(1)
# Search cursor
cursor = arcpy.SearchCursor(sara)
for row in cursor:
# Clip features
feat = row.Shape
# Append buffer distance and units to name
# Buffer distance
buffDist = str(int(row.BUFFDIST))
# Buffer units to name
buffUnits = row.UNITS
# Appended output name variable
buffAppend = '_' + buffUnits + '_' + buffDist
# Execute clip tool on each row
newInput = arcpy.Clip_analysis(censusBlocks, feat, output + buffAppend)
# Add message that Clip is completed
arcpy.AddMessage('Feature Clip operation completed')
# Add field to hold clip area to original area ratio
areaRatioFieldName = 'AREARATIO'
areaRatioFieldType = 'DOUBLE'
# Execut tool
arcpy.AddField_management(newInput, areaRatioFieldName, areaRatioFieldType)
# Add message that Area Ratio Field has been added
arcpy.AddMessage('Area Ratio field added')
# Add field to hold estimated population
estPopFieldName = 'ESTPOP'
estPopFieldType = 'LONG'
# Execut tool
arcpy.AddField_management(newInput, estPopFieldName, estPopFieldType)
# Add message that Estimated Population Field has been added
arcpy.AddMessage('Estimated Population field added')
### Code does not work after this point ###
areaInField = arcpy.ListFields(newInput, 'AREARATIO')[0]
newArea = arcpy.ListFields(newInput, 'Shape_Area')[0]
orgArea = arcpy.ListFields(newInput, 'ORAREA')[0]
fieldExpression = newArea / orgArea
arcpy.CalculateField_management(newInput, areaInField, fieldExpression, 'PYTHON_9.3')
del cursor
... View more
03-31-2016
07:32 AM
|
0
|
5
|
6406
|
POST
|
In case anyone is interested, I have some sample code on GitHub for adding a static, toggable legend to the Shortlist app. The legend is an unordered list. You'll have to create images to represent the items in the legend. A description of the changes to the app and a demo are located at GitHub - pmacMaps/shortlist-storytelling-template-js: ESRI Shortlist story map application with custom code to add a tog…
... View more
03-03-2016
05:45 AM
|
4
|
1
|
1572
|
POST
|
I have been deploying self-hosted Map Tours (storymaps). Does anyone know if there would be any performance benefits to hosting the image URLs referenced in the map tour within the same directory as the application? (i.e., resources/images/). Also, does anyone have any recommendations for an optimized file size for faster image loading? Thanks, Patrick
... View more
02-19-2016
09:00 AM
|
0
|
4
|
2126
|
POST
|
Thanks for the info Gregory. I ended up using the loadCSS function. I also realized some of my selectors were not specific enough. I'm trying to improve some story maps I developed when I was less skilled with front-end languages.
... View more
02-12-2016
07:58 AM
|
0
|
0
|
537
|
POST
|
We have a developed a story map to provide a quick review of land use conditions for a given site for use in Planning Commission meetings. Here is the link: Planning Review Series, Cumberland County, PA It uses the tabbed theme and provides maps for the following areas: Tax parcels (with pop-ups) Existing Land Use (parcel-based land use) Future Land Use Generalized municipal zoning (aggregated by general types) Agricultural Resources (preserved farms, ag security areas) Soils (non-irrigated compatibility class) I'm not sure if this is exactly what you're asking about, but perhaps it will give you some ideas.
... View more
02-11-2016
11:34 AM
|
0
|
1
|
558
|
Title | Kudos | Posted |
---|---|---|
1 | 05-19-2020 10:49 AM | |
1 | 01-24-2020 06:34 AM | |
1 | 05-28-2020 10:49 AM | |
1 | 05-19-2020 07:30 AM | |
1 | 05-27-2020 10:32 AM |
Online Status |
Offline
|
Date Last Visited |
01-13-2021
01:35 PM
|