POST
|
I'll add to this thread that after a review of existing apps my organization uses (self-hosted and AGOL hosted), I found the following related to ALT text for images: Story Maps (self-hosted, v.2.2.9): No alt text for main image No alt text for thumbnail image Shortlist (self-hosted, 1.4.4): No alt text for legend No alt text for thumbnails on left No alt text for images in pop-up Cloud hosted (agol) No alt tags in images in legends
... View more
07-14-2016
06:30 AM
|
0
|
0
|
734
|
POST
|
I'm working on developing a web map application using Leaflet, ESRI Calcite Maps, and a few plugins. My goal is to use this first map to develop a template for future apps.
I wanted to invite people to provide feedback on this app. Any suggestions/comments are appreciated.
There are still many design and mobile changes that need to be implemented. But I thought I would share the work in-progress.
I have previously created an app using the BootLeaf template, but there a lot of things I like more about the Calcite Maps template.
Testing site: Magisterial District Judges Map
Thanks to everyone,
Patrick
... View more
07-07-2016
11:46 AM
|
0
|
2
|
1242
|
DOC
|
Does anyone know if there is a way to override the default behavior of the jewelry box theme shifting the map pane over to the right when the panel is opened? This causes our map to no longer be centered. The demo app is located at Property Mapper 2.
... View more
06-22-2016
11:53 AM
|
0
|
0
|
5476
|
POST
|
The layer the select by location is based upon will be the output of a multi-ring buffer. And I would like to add the Name field to the output. This, combined with the user selecting the folder to place the spreadsheets should take care of this issue. However, I agree adding a counter would he helpful. I couldn't figure this out. Perhaps you could provide some sample code in addition to your advice?
... View more
06-13-2016
08:45 AM
|
0
|
0
|
546
|
POST
|
If nothing gets created, then there would be no records in the spreadsheet. The tool will be used by a Public Safety department. They use the spreadsheets to get information for their reports. The goal for the filename will include what kind of facility the list is being created for, as well as the buffer distance and units. The end user could be running the tool on a feature with 3 records (1000-ft, 1500-ft, and 2000-ft). In this example, the would get a spreadsheet for the 1000-ft buffer selected features, 1500-ft buffer selected features, and 2000-ft buffer selected features for each kind of vulnerable facility.
... View more
06-13-2016
08:42 AM
|
0
|
0
|
1442
|
POST
|
This is the message I received, which I provided in the post: Executing: MakeFeatureLayer "\\CCPASR07\ncgs$\Scripts\ArcGIS Geoprocessing\SARA Tool\SARA_Tool_DEV.gdb\Site_Education" schools_lyr # # "OBJECTID OBJECTID VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;Source_DatasetDesc Source_DatasetDesc VISIBLE NONE;Permanent_Identifier Permanent_Identifier VISIBLE NONE;Source_Originator Source_Originator VISIBLE NONE;LoadDate LoadDate VISIBLE NONE;Name Name VISIBLE NONE;Owner Owner VISIBLE NONE;Address1 Address1 VISIBLE NONE;City City VISIBLE NONE;State State VISIBLE NONE;Zip Zip VISIBLE NONE;PocName PocName VISIBLE NONE;PocOrganization PocOrganization VISIBLE NONE;PocTel1 PocTel1 VISIBLE NONE;PocEmail PocEmail VISIBLE NONE;Comments Comments VISIBLE NONE;State_FacilityID State_FacilityID VISIBLE NONE;FacilityID FacilityID VISIBLE NONE;FType FType VISIBLE NONE;FCode FCode VISIBLE NONE;Site_Plan_Link Site_Plan_Link VISIBLE NONE;Valid_Status Valid_Status VISIBLE NONE;Address2 Address2 VISIBLE NONE;Phone2 Phone2 VISIBLE NONE;Fax Fax VISIBLE NONE;NMFCID NMFCID VISIBLE NONE" Start Time: Fri Jun 10 14:33:24 2016 Succeeded at Fri Jun 10 14:33:24 2016 (Elapsed Time: 0.21 seconds)
... View more
06-13-2016
07:15 AM
|
0
|
2
|
1442
|
POST
|
I need {0} to pull from a Double field, not hardcode a value in. Do I need to use the string conversion method? Or will it automatically force it into a string because the variable is already a string?
... View more
06-13-2016
07:15 AM
|
0
|
0
|
1442
|
POST
|
dynamicFileName = '_{0}_{1}_.xls'.format(str(row.getValue("BUFFDIST")), row.getValue("UNITS")) 1st argument = str(row.getValue("BUFFDIST")) 2nd argument = row.getValue("UNITS")
... View more
06-13-2016
07:13 AM
|
0
|
0
|
1442
|
POST
|
Summary: I am developing an ArcGIS Toolbox tool that will do the following: User selects a feature class that is a buffer of a site The number of features in this input layer will always be different User selects an output folder for files created Various layers in the same geodatabase are turned into Feature Layers A search cursor is created for the input dataset A for in loop is performed on the cursor (each record of the feature class) In the loop, a select by location (intersect) is performed between the input layer and various layers The selected features from each layer are converted to a spreadsheet Problem: The goal is to add field attributes (buffer distance and units) to each spreadsheet. As the code stands now, no spreadsheets are created and I get the following message/error: Executing: MakeFeatureLayer "\\CCPASR07\ncgs$\Scripts\ArcGIS Geoprocessing\SARA Tool\SARA_Tool_DEV.gdb\Site_Education" schools_lyr # # "OBJECTID OBJECTID VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;Source_DatasetDesc Source_DatasetDesc VISIBLE NONE;Permanent_Identifier Permanent_Identifier VISIBLE NONE;Source_Originator Source_Originator VISIBLE NONE;LoadDate LoadDate VISIBLE NONE;Name Name VISIBLE NONE;Owner Owner VISIBLE NONE;Address1 Address1 VISIBLE NONE;City City VISIBLE NONE;State State VISIBLE NONE;Zip Zip VISIBLE NONE;PocName PocName VISIBLE NONE;PocOrganization PocOrganization VISIBLE NONE;PocTel1 PocTel1 VISIBLE NONE;PocEmail PocEmail VISIBLE NONE;Comments Comments VISIBLE NONE;State_FacilityID State_FacilityID VISIBLE NONE;FacilityID FacilityID VISIBLE NONE;FType FType VISIBLE NONE;FCode FCode VISIBLE NONE;Site_Plan_Link Site_Plan_Link VISIBLE NONE;Valid_Status Valid_Status VISIBLE NONE;Address2 Address2 VISIBLE NONE;Phone2 Phone2 VISIBLE NONE;Fax Fax VISIBLE NONE;NMFCID NMFCID VISIBLE NONE" Start Time: Fri Jun 10 14:33:24 2016 Succeeded at Fri Jun 10 14:33:24 2016 (Elapsed Time: 0.21 seconds) If I do not try to access the fields from the cursor, the first set of spreadsheets (from the first record) are created, but then the tool fails because of an already existing name for the spreadsheet. Any tips for making this tool run as intended are much appreciated. Code: Note: I do have the import arcpy code at the beginning. # User selects risk radii layer as input for analysis
# SARA Risk Radius
#sara = arcpy.GetParameterAsText(0)
# User selects output folder
# outputFolder = arcpy.GetParameterAsText(1)
# Hard-coded for testing
outputFolder = r'\\CCPASR07\ncgs$\Scripts\ArcGIS Geoprocessing\SARA Tool\excel'
# Vulnerable Facilities Sites
# Create Feature Layers for analysis
# Repath for live testing/deployment
# file geodatabase containing vulnerable facilities
vsGdb = r'\\CCPASR07\ncgs$\Scripts\ArcGIS Geoprocessing\SARA Tool\SARA_Tool_DEV.gdb'
# Assisted Living
assistedLiving = vsGdb + '\EOC_AssistedLiving'
arcpy.MakeFeatureLayer_management(assistedLiving, 'assistedLiving_lyr')
# Daycares
daycares = vsGdb + '\EOC_Daycare'
arcpy.MakeFeatureLayer_management(daycares, 'daycares_lyr')
# Health Medical Sites
medical = vsGdb + '\Site_HealthMedical'
arcpy.MakeFeatureLayer_management(medical, 'medical_lyr')
# MHIDD Sites
mhIdd = vsGdb + '\EOC_MHIDD_Facility'
arcpy.MakeFeatureLayer_management(mhIdd, 'mhIdd_lyr')
# Schools
schools = vsGdb + '\Site_Education'
arcpy.MakeFeatureLayer_management(schools, 'schools_lyr')
# Hard-coded for input parameter for testing
sara = vsGdb + '\CarlislePumpShools'
try:
cursor = arcpy.SearchCursor(sara, fields="BUFFDIST; UNITS") # old cursor syntax
for row in cursor:
# Having this block active fails tools
# Goal is to add buffer distance and units to file name of excel spreadsheet
#print(buffAppend)
dynamicFileName = '_{0}_{1}_.xls'.format(str(row.getValue("BUFFDIST")), row.getValue("UNITS"))
# Assisted Living
# Select Assisted Living sites that intersect SARA risk radius
arcpy.SelectLayerByLocation_management('assistedLiving_lyr', 'INTERSECT', sara, "", 'NEW_SELECTION')
# Export selected features to Excel
arcpy.TableToExcel_conversion('assistedLiving_lyr', 'AssistedLiving' + dynamicFileName)
# Daycares
# Select Daycares sites that intersect SARA risk radius
arcpy.SelectLayerByLocation_management('daycares_lyr', 'INTERSECT', sara, "", 'NEW_SELECTION')
# Export selected features to Excel
arcpy.TableToExcel_conversion('daycares_lyr', 'Daycares' + dynamicFileName)
# Health Medical
# Select Health Medical sites that intersect SARA risk radius
arcpy.SelectLayerByLocation_management('medical_lyr', 'INTERSECT', sara, "", 'NEW_SELECTION')
# Export selected features to Excel
arcpy.TableToExcel_conversion('medical_lyr', 'Medical' + dynamicFileName)
# MHIDD
# Select MHIDD sites that intersect SARA risk radius
arcpy.SelectLayerByLocation_management('mhIdd_lyr', 'INTERSECT', sara, "", 'NEW_SELECTION')
# Export selected features to Excel
arcpy.TableToExcel_conversion('mhIdd_lyr', 'MHIDD' + dynamicFileName)
# Schools
# Select Schools sites that intersect SARA risk radius
arcpy.SelectLayerByLocation_management('schools_lyr', 'INTERSECT', sara, "", 'NEW_SELECTION')
# Export selected features to Excel
arcpy.TableToExcel_conversion('schools_lyr', 'Schools' + dynamicFileName)
del cursor
except Exception:
e = sys.exc_info()[1]
arcpy.AddError(e.args[0])
print(arcpy.GetMessages())
... View more
06-10-2016
11:53 AM
|
0
|
16
|
5778
|
POST
|
I feel like an idiot. I forgot to add the "/0" to the url in the constructor.
... View more
06-01-2016
01:23 PM
|
0
|
0
|
764
|
POST
|
I've testing adding secured services from ArcGIS Server to a Leaflet application. I'm using the guidance found on the ESRI Leaflet Examples. I am using data from my own server. I am getting the following error:
"Uncaught TypeError: Cannot read property of 'length' on undefined. Util.js:380."
Anyone have any ideas what's going on? I don't have any projects that require this, I'm just seeing if I can figure it out.
Thanks,
Patrick
... View more
06-01-2016
10:01 AM
|
0
|
2
|
3016
|
POST
|
I ran into an error where I was trying to import WAB built online that were at version 2.0, but I was using version 1.3 of developer edition. The log errors seemed to indicate that import failed due to trying to use a newer version in an older version. Not sure if that helps.
... View more
05-25-2016
11:24 AM
|
0
|
0
|
1002
|
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
|