|
POST
|
I am still working through the mountain of information out there pertaining to CHEF and its related Cookbook Recipes for ESRI products as well as others. Ran into one issue that I may not be able to get around. CHEF self-hosted server only is available on Linux based OS platforms. For our test environment this is not an issue but for production IT will only allow windows based systems and approved applications. Production also is running in an isolated environment, so no internet for a web based configuration from CHEF hosted servers. Any other suggestions for running CHEF in a windows only environment?
... View more
03-03-2019
02:43 PM
|
0
|
1
|
2188
|
|
POST
|
Additional info: I did find the link below with some additional details pertaining to modifying the CHEF recipies for single system deployment. So it does appear this is a possibility. I do have a request in to my ESRI rep and support engineer. Have not put in a support ticket yet. http://proceedings.esri.com/library/userconf/proc17/tech-workshops/tw_679-456.pdf
... View more
02-24-2019
09:46 AM
|
0
|
0
|
2188
|
|
POST
|
We are getting ready to move our Enterprise test environment to production and at the time we set up the test environment you could not use CHEF to deploy to multi-servers for the base instalation. Many current ESRI videos reference the ability to do this but I can only find examples for a single server, base deployment with add-on additional GIS servers. Has anyone performed a mutli-server deployment using CHEF for the base deployment? Our deployment will be along the lines of the following on our Intranet: IIS-01 - IIS, Web Adapters and Portal GIS-01 - ArcGIS Server GIS-02 - 2nd ArcGIS Server GIS-03 - Image Server GDS-01 - Data Store GFS-01 - File Server SQL-01 - Enterprise Geodatabase
... View more
02-23-2019
02:48 PM
|
0
|
4
|
2452
|
|
POST
|
We have had several ArcGIS Pro projects hang since changing to ArcGIS Pro 2.3. Some were existing projects and others are new. By hanging, you cannot toggle layers off and on in the TOC, you cannot expand or contract the TOC, most of the tools are grayed out in the ribbon, if you right click on a feature in the TOC many items (Attribute Table, Properties, Symbology, etc.) in the popup are grayed out. You can still pan the map, zoom in and out, move items around your desktop. If you "Explore" a feature, the Identifying progress bar appears and never goes away. The only way to now exit ArcGIS Pro is from the Task Manager. If you click Cancel, the pop-up adds the words "Canceling..." and still never disappears. The current project I was working on for a few days before it suddenly hung. Once this happens to a project, it persists each time you reopen the project and the project has to be recreated. Also when stuck on identifying, CPU usage for ArcGIS Pro is 12-20%, Memory 64-70% and GPU 2-5%. No errors are reported and it will stay like this until the session is exited from Task Manager. Pro is not our primary GIS editor as we mainly use ArcGIS Desktop 10.6. We have been trying to utilize Pro on small projects to learn the application and test the platform. So far, 2.3 has been very unstable. We have not put a support ticket in as we only have one system with Pro installed and it is not our primary GIS editor.
... View more
02-07-2019
05:43 AM
|
0
|
3
|
3361
|
|
POST
|
Julie, As it sounds like you potentially could have hundreds or thousands of keys to check for in the string. I would not recommend doing this dynamically in the Popup. The main reason is Arcade does not currently include the ability to reference external tables or data and is only limited to the current data contained in the feature class or generated expressions. Second it could be very slow. I would recommend adding an additional text field to your feature class and pre-generating the display HTML and storing it in the feature class. This can easily be generated using python from a script tool from the text string that is stored in the feature class. You will also need a key index to hold the strings to be replaced and their equal HTML url. This could be stored in a small dictionary in the code for a limited number of keys or a data table for unlimited number of keys. The table will contain two fields: 1) key text string to look for and 2) the URL key keyURL "Development Activities" "http://development.com" "Parks Art" "http://parks_art.org" "Lorem ipsum" "http://lorem_ipsum.net" "Eam at officiis" "https://eam.org/officiis" The second part needed is the script to take a string, wrap it as HTML and replace the keys found with the keyHTML and save it to the feature class attribute. I prefer Python to do this and you would be iterating thought the list of keys, checking for a match and replacing if found. This process would not scale well for a very large number of key values and would need to be modified. Since this would be preprocessed, the user would not be encumbered with the processing time. Below is a sample Python script using a dictionary for the key values. # build small key dictionary
keys = {}
keys['Development Activities'] = 'http://development.com'
keys['Parks Art'] = 'http://parks_art.org'
keys['Lorem ipsum'] = 'http://Lorem_ipsum.net'
keys['Eam at officiis'] = 'https://eam.org/officiis'
keys['suscipit'] = 'https://eam.org/suscipit'
keys['Test'] = 'http://test.org/test'
# function to interate through keys and replace ALL in a string
# note keys are case sensitve
def replaceKeys(str):
print str
for key in keys:
if key in str:
href = '<a href="%s">%s</a>' %(keys[key], key)
str = str.replace(key, href)
return '<p>%s</p>' %(str)
def main():
# First Example
str = 'Development Activities are prohibited as per the Parks Art.'
print replaceKeys(str)
# Second Example
str = 'Lorem ipsum dolor sit amet, eam et quas atqui delicata. Eam at officiis reformidans. Mei ne quando suscipit definitionem, per et tota summo minimum.'
print replaceKeys(str)
# Case sensitive Example
str = 'Test to see if this case sensitive. This is just a test.'
print replaceKeys(str)
The above outputs: Development Activities are prohibited as per the Parks Art. Development Activities are prohibited as per the Parks Art. Lorem ipsum dolor sit amet, eam et quas atqui delicata. Eam at officiis reformidans. Mei ne quando suscipit definitionem, per et tota summo minimum. Lorem ipsum dolor sit amet, eam et quas atqui delicata. Eam at officiis reformidans. Mei ne quando suscipit definitionem, per et tota summo minimum. Test to see if this case sensitive. This is just a test. Test to see if this case sensitive. This is just a test. (Note, only the capitalized "Test" was replaced) Rather than printing you would be writing these to your feature class HTML Attribute as you iterate through the data using a cursor. You can also change line 16 to str = str.replace(key, href, 1). This will then only replace the first occurrence of the key found for each string In AGOL you can use the pre-generated keyHTML field in the pop-up configuration adding each for Goal, Objective and Note as well as additional static text. and noted in the previous references. Sorry for the clunky example but without seeing your actual data or how you are implementing this I had to get a little creative.
... View more
01-31-2019
07:14 PM
|
1
|
3
|
5920
|
|
POST
|
We getting ready to deploy a tool package for a forthcoming project and I need to confirm the most recent version of the ESRI - Water Utility Network Tools. The most recent release build I can find is 2018.1.17 on either GitHub - Esri/local-government-desktop-addins or Water Geometric Network Editing and Analysis | ArcGIS Solutions for Water. Is there a newer release and/or are future release planed?
... View more
01-30-2019
04:48 PM
|
0
|
1
|
3369
|
|
POST
|
How many key words do you have or anticipate? Can you add an additional text attribute to the feature class the pop-up is generated from?
... View more
01-30-2019
02:23 PM
|
0
|
0
|
5920
|
|
POST
|
non, non Latine How are you identifying the keywords and where are you storing their related URLs? Do you have key list such as: Lorem ipsum - "http://lorem_ipsum.org" Eam at officiis - "http://eamofficiis.com" etc. If there is only a small number of items, you could create an other attribute field in data table and store a HTML string in addition to the plan text. Reference the HTML string in your pop-up.
... View more
01-30-2019
01:19 PM
|
0
|
2
|
5920
|
|
POST
|
A couple of other options. 1) create a "default" feature class with all the needed fields and copy this as a starting point for all your new feature classes 2) you could build a script tool to add the 11 fields with specific data types and properties to a new feature class. A great example is the Add GPS Metadata Fields—Data Management toolbox | ArcGIS Desktop tool used to add the 16+ GNSS fields to a new feature class before publishing.
... View more
01-29-2019
04:55 PM
|
1
|
0
|
5928
|
|
POST
|
ArcGIS Desktop 10.6.1 v10.6.9270 ArcGIS Desktop 10.6.1 Raster Patch (ArcGIS-1061-DT-R-Patch) I may have also installed ArcGIS Coordinate Systems Data but cannot recall if that was before or after I tested the issue. You can run this tool Patch Finder for ArcGIS to get a list of installed patches on your system to confirm it is installed.
... View more
01-29-2019
04:11 PM
|
0
|
0
|
1053
|
|
POST
|
Julie, You can build dynamic expressions or use the actual feature attributes in your pop-up, These can be used to assemble the HTML when the pop-up opens dynamically. As I did not have an example of the field(s) you are working with I simply included a generic URL in my examples. Please take a look at Combining Arcade and HTML for a real life pop-up display or Insert HTML with Arcade. Take to Google or GeoNet for the many other options for adding expressions to your pop-ups. If you can provide a sample of the attributes you have to work with and the format the final hyperlink needs to be in, I may be able to help. Here is also a great reference for Arcade Lance
... View more
01-29-2019
01:09 PM
|
0
|
4
|
5920
|
|
POST
|
I would definitely call Esri Support or put a support ticket in to get a quick reply to this issue.
... View more
01-29-2019
10:04 AM
|
0
|
0
|
1053
|
|
IDEA
|
Both ArcMap and ArcGIS Pro have great online help but neither of these sites link to each other for common tools. It would be great to have a link in the "Other versions" dropdown in ArcMap to ArcGIS Pro when the tools are common between the two platforms. The same for ArcGIS Pro, especially once versioned help is available Cheers
... View more
01-29-2019
09:56 AM
|
2
|
0
|
567
|
|
POST
|
Try this to see if works from a new map. Took a few guesses as to what you need in a couple of places. Code is not tested as I am traveling at the moment. Code can also be substantially reduced but did not want to re-write your code entirely. Assume you have more planed as you created fields but did not do anything with them. You really do not need to add the table and feature class to the Map but I left it as you had it. You can do all the data manipulation in the GDB or even in memory only saving the final product. Once the script runs, look at the default database for the project to see the location of the table and feature class. import arcpy, os
class Toolbox(object):
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = 'actionPuree'
self.alias = 'actionPureeToolBox'
# List of tool classes associated with this toolbox
self.tools = [grindMixPuree]
class grindMixPuree(object):
def __init__(self):
"""Define the tool (tool name is the name of the class)."""
self.label = 'grindMixPuree'
self.description = 'Slices, dices, juliannes ' + \
'purees during the matinee ' + \
'and ready to serve'
self.canRunInBackground = False
def getParameterInfo(self):
"""Define parameter definitions"""
parameters = []
# Reference States layer
baseStatesLayer = arcpy.Parameter(
displayName="Base States Layer",
name="baseStatesLayer",
# You will need "DEShapefile" here as your input is a shapefile,
datatype="DEShapefile",
parameterType="Required",
direction="Input")
parameters.append(baseStatesLayer)
# Data dump CSV file
inputDataDumpFile = arcpy.Parameter(
displayName="Data Dump File",
name="inputDataDumpFile",
# You will need "DEFile" here as a CSV is a file,
datatype="DEFile",
parameterType="Required",
direction="Input")
parameters.append(inputDataDumpFile)
return parameters
def isLicensed(self):
"""Set whether tool is licensed to execute."""
return True
def updateParameters(self, parameters):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
return
def updateMessages(self, parameters):
"""Modify the messages created by internal validation for each tool
parameter. This method is called after internal validation."""
return
def execute(self, parameters, messages):
"""The source code of the tool."""
# Get and set current project and geodatabase info
arcpy.env.overwriteOutput = True
aprx = arcpy.mp.ArcGISProject('CURRENT')
defaultGeoDb = arcpy.env.workspace
aprx.defaultGeodatabase = defaultGeoDb
currentMap = aprx.activeMap
#Create target names based on name of input table (assuming you want the CSV filename)
tempStr = os.path.splitext(os.path.basename(parameters[1].valueAsText))[0]
newMapName= 'lyr_' + tempStr
newTableName = 'tbl_' + tempStr
# convert CSV data into table and add to default database - look in database to see it was added
arcpy.TableToTable_conversion(parameters[1].valueAsText,defaultGeoDb,newTableName)
# Add fields to the new table
arcpy.AddField_management(newTableName,'Calc01Perc','DOUBLE')
arcpy.AddField_management(newTableName,'Calc02','DOUBLE')
# Add table to current Map - not really needed. Use full path name to table in GDB
currentMap.addDataFromPath(os.path.join(defaultGeoDb, newTableName))
#Join table with shapefile
newJoinLayer = arcpy.management.AddJoin(parameters[0].valueAsText, 'STUSPS', newTableName, 'Abbr', 'KEEP_ALL')
# Copy the shaperfile with join to a new permanent feature class in GDB - join will not be needed after
arcpy.CopyFeatures_management(newJoinLayer, newMapName)
# Add new feature class to Map - full path need to FC in database
currentMap.addDataFromPath(os.path.join(defaultGeoDb, newMapName))
return
... View more
01-28-2019
07:32 PM
|
2
|
1
|
6917
|
|
POST
|
Table to Table Conversion converts a table, table view, feature layer, feature class, etc. into a geodatabase table or DBF. Typical you would point this to a GDB or a file path to be saved as a DBF. You have arcpy.TableToTable_conversion(parameters[1].valueAsText,cwd,newTableName) where I believe cwd is a directory file location. You may want to point this to your geodatabase -defaultGeoDb (if assigned correctly). Depending upon the source data this may not be the tool you need or want. You really do not need line 97 as the table will already be in your geodatabase from the Table to Table Conversion. You can confirm this from ArcCatalog On line 100, point to the new table in the geodatabase. Heading to work, so I will not be really able to look at this until this evening.
... View more
01-28-2019
09:02 AM
|
0
|
0
|
6917
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-16-2019 05:49 PM | |
| 1 | 06-11-2025 03:32 PM | |
| 1 | 12-26-2023 09:15 AM | |
| 1 | 12-29-2023 10:06 AM | |
| 1 | 03-02-2023 05:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|