|
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
|
5130
|
|
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
|
939
|
|
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
|
2369
|
|
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
|
2135
|
|
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
|
2519
|
|
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
|
2311
|
|
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
|
2520
|
|
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
|
2311
|
|
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
|
7335
|
|
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
|
1775
|
|
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
|
2530
|
|
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
|
894
|
|
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
|
893
|
|
POST
|
I wanted to get input on the best way to customize a self-hosted map tour. The application includes a minified stylesheet. I've added a custom stylesheet that relies on the use of !important to override the default stylesheet. I am well aware this is a bad practice. However, whenever I've copied the minified code into a un-minifyer, there is no semi-colon after the last property setting. I don't want to manually add-in all those semi-colons just so I can use the standard stylesheet and avoid the !important trick. Any suggestions on how to accomplish this? I am using Komodo Edit as my text editor. Thanks, Patrick
... View more
02-09-2016
12:28 PM
|
0
|
2
|
3215
|
|
POST
|
Does anyone know why you can not drag a map service above a feature service in ArcGIS Online? It appears feature services must always draw above map services. If this is a limitation of AGOL, it should definitely be an enhancement. I have a map service that is labels for layers published as a feature service. The labels are drawing below the feature service due to the order of items in AGOL. If I bring in the map services individually (versus as a group), AGOL lets me place them above the feature services. However, the labels won't work. It's as if AGOL is treating the services as a feature service. I use this solution because feature services draw cleaner than map services, but because AGOL's feature service labeling leaves much to be desired. Map services seem to be better for labeling features. My sample maps is located at http://ccpa.maps.arcgis.com/home/webmap/viewer.html?webmap=90657a691f1a4118b3ce93b37fb593a4 .
... View more
12-23-2015
12:58 PM
|
1
|
2
|
3848
|
| 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
|