|
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
|
3170
|
|
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
|
5034
|
|
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
|
5034
|
|
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
|
5178
|
|
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
|
799
|
|
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
|
5034
|
|
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
|
799
|
|
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
|
464
|
|
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
|
5837
|
|
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
|
5837
|
|
POST
|
On line 95 you have referenced "currentMap" but this is not defined until line 102. You need to change the order of your code or do you want to add the table to the Database and not the Map?
... View more
01-28-2019
07:20 AM
|
1
|
4
|
5837
|
|
POST
|
Good Day. It is difficult to follow your code sample therefore difficult to comment. In general when starting to learn scripting tools in ArcGIS: Work in small steps, do not attempt to complete an entire tool in one step Add a section, test the section, debug the section, confirm the result is as intended Proceed to the next small section and repeat A few other tips: Write out your workflow breaking it down into easily manageable steps to be competed with a measurable result If you have access to ModelBuilder, use this tool to build portion of your workflow then look to see how the python command was executed. The ArcGIS Desktop version has a Export to Python Script option but unfortunately they have removed this from later versions of Pro. You can still view each python command from Project>Geoprocessing History, right clicking any tool and select Copy Python Command In your code you commented "Looks like tables need to be converted first - why can't it be used as-is?" CSV is not a table it is a text file representing the data and needs to converted into a table.
... View more
01-27-2019
11:23 AM
|
1
|
1
|
5837
|
|
POST
|
You may want to revisit Asrujit SenGupta's earlier post pertaining to the 10.6.1 Raster Patch. I was setting up a new virtual ArcGIS Desktop 10.6.1 this morning and ran the Raster_to_Geodatabase tool before installing the 10.6.1 Raster Patch. I received the same errors you have reported with the files from the QGIS Training Data. After running the 10.6.1 Raster Patch the Raster to Geodatabase tool ran without issue using the same files. Make sure you do not have any apps open when running the Patch or better yet run the Patch immediately after a restart as an Administrator. Check if this patch helps, if you are using 10.6.1: ArcGIS (Desktop, Server) 10.6.1 Raster Patch
... View more
01-27-2019
09:06 AM
|
1
|
0
|
3570
|
|
POST
|
I was able to locate the file you are trying to use at QGIS-Training-Data/exercise_data/raster at master · qgis/QGIS-Training-Data · GitHub. I was also able to import this to a SDE database running on SQL Server 2017 using the following method as a workaround since Raster to Geodatabase is not working for you. 1) from ArcCatalog, right click on the SDE database Connection and select New>Raster Dataset 2) in the Create Raster Dataset dialog input the Raster Dataset Name - I used "test" set the Number of Bands - 4 as this matches the original image press OK and wait for the blank Raster Dataset to be created 3) Again in ArcGIS Catalog, right click on the new Raster Dataset you just created and select Load>Load Data 4) in the Load data dialog add the raster files you need click OK This will create a mosaic Raster Dataset for you on your SDE database
... View more
01-26-2019
09:42 PM
|
2
|
0
|
3570
|
|
POST
|
I typically use the following for crawling through unknown database feature datasets and feature classes: arcpy.env.workspace = gdbFrom for ds in arcpy.ListDatasets(feature_type='feature') do what you need with each feature dataset for fc in arcpy.ListFeatureClasses(feature_dataset=ds): do what you need here for each feature class in a dataset To define a spacial reference for a dataset: cs = arcpy.SpatialReference(4326) # for GCS_WGS_1984 as an example arcpy.DefineProjection_management(dataset, cs) If you are not modifying the data just applying a coodinate system and/or transformation to the dataset you could use Project—Help | ArcGIS for Desktop on each feature dataset setting your gbdFrom and gbdTo, in and out coordinate system and transformation if needed. Do not forget about applying a transformation if need or your data may end up in the wrong part of the world. cs = arcpy.SpatialReference(4326) # for GCS_WGS_1984 as an example arcpy.Project_management(gdbFrom/in_dataset, gbdTo/out_dataset, cs) ListDatasets—Help | ArcGIS Desktop ListFeatureClasses—ArcPy Functions | ArcGIS Desktop SpatialReference—Help | ArcGIS Desktop Define Projection—Help | ArcGIS Desktop Project—Help | ArcGIS for Desktop
... View more
01-26-2019
01:48 PM
|
2
|
0
|
1358
|
| 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 |
08-05-2025
07:32 AM
|