POST
|
@DMOB17 , Thanks. This worked for me. Except it cloned it right back into C:\Program Files\ArcGIS\Pro\bin\Python\envs\clone1_arcgispro_py3 I preferred it when it tried to clone it to C:\Users\USER\AppData\Local\ESRI\conda\envs\clone1_arcgispro_py3. From the command line I get the following: CondaValueError: Invalid environment name: 'C:\Users\USER\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone'
Characters not allowed: ('/', ' ', ':', '#') 😓
... View more
12-07-2022
04:00 PM
|
0
|
1
|
6419
|
POST
|
Let me follow up. After my case with customer service mysteriously disappeared on Friday with no notice to me, on Monday I was contacted by Esri Technical Support with a new case number. Eventually I needed to be handed off to a licensing specialist who was able to release my license on the backend at ArcGIS.com. I'm back in business.
... View more
12-07-2022
10:22 AM
|
2
|
0
|
989
|
POST
|
Love it. I got the welcome email with my customer service case number. I saw someone open it and held it open until late on Friday. Today I logged in and found customer service closed my case without any note to me and when I search the case no longer appears. Sigh...
... View more
12-04-2022
10:40 AM
|
0
|
1
|
1031
|
POST
|
Thank you. I'm ahead of you as I was aware of the 90-days of support as well. Again it seems my org is different than a traditional business account. Attached is what you get if you click on that link. However, I just eventually I found a link somewhere (not there) that let me submit a request for support and I did that. I'll report back here what I find out.
... View more
12-02-2022
02:35 PM
|
0
|
0
|
1041
|
POST
|
Robert, thank you so much for the reply. It seems things have changed since that documentation was posted, or for some reason I have different options. I'm not seeing most of what that documentation describes (attached).
... View more
12-02-2022
01:49 PM
|
0
|
3
|
1044
|
POST
|
Thanks. My computer melted down shortly after posting this and I'm still getting it recovered. I'll start work on this again soon hopefully.
... View more
12-02-2022
07:32 AM
|
0
|
0
|
416
|
POST
|
The computer I recently installed ArcGIS Pro 3 on crashed. It seems I had set the license for offline use. I can read the files on the harddrive, but it will not boot. I believe I need to deauthorize the license so that it is available to activate on my newly installed computer. However, I cannot run the ArcGIS Pro seat on the crashed computer to manually put the license back into the pool. I found this link Recover Lost Licenses from My Esri - Esri Community But it doesn't seem to match what I see today. Apparently as a Personal Use license holder I'm not able to request support here. Request Case | My Esri How should I proceed? Is there a file on the old hard drive that I could recover to release the license for reuse? My searches indicate that recovery is something I need to do through Esri support.
... View more
12-02-2022
06:54 AM
|
0
|
10
|
1146
|
POST
|
I'm trying to get an old python script from 10.1 days to run in ArcGISPro 3. I ran it through 2to3 and while it runs, it emits useless warnings (File cannot be processed) for each layer and has blank output after the layer name. I'm hoping to a) get help getting it to run in its fully glory (maybe switching in some newer functions) and/or b) figure out how to get more informative errors. I just started using ArcGIS Pro and chose to use Notebook until I can figure out running from an IDE. PS, I thought it might be some outdated metadata, but I created a new layer in ArcGISPro and it still shows the same warnings. So far it's ran on Shapefiles, FileGDB vectors, and .tifs. Same problems. Here's the top 10% of it. # Version: ArcGIS 10.1 and 10.2
# Purpose: This script will iterate through each GIS file in a folder (and all recursive folders) and report information
# about each layers metadata. The script is intended to run from a script tool inside an ArcGIS Toolbox. The script requires three
# user input values:
# 1. An input folder
# 2. An output Excel File
# 3. An output folder to store temporary files
# Revised: John Zastrow, November 18, 2022, porting to work with Python 3 and ArcGIS Pro 3.0
try:
# Setup environment and import modules
import xlwt, os, arcpy
from xml.etree.ElementTree import ElementTree
from xml.etree.ElementTree import Element, SubElement
arcpy.env.overwriteOutput = True
# Get user input parameters, please note that the inputFolder cannot contain any GIS files, or they will not be read
# inputFolder = arcpy.GetParameterAsText(0)
# outputFile = arcpy.GetParameterAsText(1)
# tempOutputFolder = arcpy.GetParameterAsText(2)
# Input parameters below are for testing only
inputFolder = r"C:\data\workingData\dataMiner\subfolder"
outputFile = r"C:\dataMiner\version_2.0\output\output.xls"
tempOutputFolder = r"C:\dataMiner\version_2.0\temp"
# Create workbook with one sheet named Output
wb = xlwt.Workbook()
ws = wb.add_sheet("Output")
# Create list of column names in the workbook
headerNamesList = [
"ID",
"Feature Name",
"Feature Path",
"Feature Type",
"Object Type",
"Feature Count",
"Title",
"Keywords",
"Abstract",
"Purpose",
"Contact",
"Distribution",
"Coordinate System Type",
"Geographic Coordinate System",
"Projected Coordinate System",
"Horizontal Units",
"North Bounding Coordinate",
"East Bounding Coordinate",
"South Bounding Coordinate",
"West Bounding Coordinate",
"Created Date",
"Modified Date",
"MetaData Version",
]
headerColumn = 0
for name in headerNamesList:
ws.write(0, headerColumn, name)
headerColumn = headerColumn + 1
# Create empty global lists and other global variables
datasetList = []
fcList = []
tableList = []
workspaceList = []
rasterList = []
listOfEnvWorkspaces = []
excelRow = 1
# Fucntion to test if metadata tags have values in XML file
def verifyMetadata(tag
global tagReturn
if tag is not None:
tagReturn = tag.text
return tagReturn
else:
tagReturn = "METADATA VALUE IS EMPTY"
return tagReturn
# Searches through all folders for GIS files
for dir, folderNames, fileNames in os.walk(inputFolder
listOfEnvWorkspaces.append(dir)
for subFolderName in listOfEnvWorkspaces:
arcpy.env.workspace = subFolderName
print("Processing Folder: " + subFolderName)
arcpy.AddMessage("Processing Folder: " + subFolderName)
datasetList = arcpy.ListDatasets()
fcList = arcpy.ListFeatureClasses()
tableList = arcpy.ListTables()
workspaceList = arcpy.ListWorkspaces("", "Access")
rasterList = arcpy.ListRasters()
# Checks for feature classes in file geodatabases feature classes, coverages, and CAD files
for dataset in datasetList:
for fc in arcpy.ListFeatureClasses("", "", dataset
try:
# Creates a temporary empty XML file to store each files XML data
fcXML = tempOutputFolder + "/" + fc + ".xml"
tempXMLFile = open(fcXML, "w")
tempXMLFile.write("<metadata>\n")
tempXMLFile.write("</metadata>\n")
tempXMLFile.close()
# Copies metadata from file into temporary XML file
arcpy.MetadataImporter_conversion(fc, fcXML)
# Makes an ElementTree object and reads XML into ElementTree
tree = ElementTree()
tree.parse(fcXML)
# Checks on XML version (9.x vs. 10.x) and gathers information on metadata
if tree.find("Esri/ArcGISFormat") is not None:
print(
" Processing File: "
+ os.path.join(dataset, fc)
+ " (Version 10.x XML)"
)
arcpy.AddMessage(
" Processing File: "
+ os.path.join(dataset, fc)
+ " (Version 10.x XML)"
)
title = tree.find("dataIdInfo/idCitation/resTitle")
keywords = tree.find("dataIdInfo/searchKeys/keyword")
abstract = tree.find("dataIdInfo/idAbs")
purpose = tree.find("dataIdInfo/idPurp")
contact = tree.find("mdContact/rpIndName")
distribution = tree.find("distInfo/distFormat/formatName")
fcMetaDataVersion = "10.x"
else:
print(
" Processing File: "
+ os.path.join(dataset, fc)
+ " (Version 9.x XML)"
)
arcpy.AddMessage(
" Processing File: "
+ os.path.join(dataset, fc)
+ " (Version 9.x XML)"
)
title = tree.find("idinfo/citation/citeinfo/title")
keywords = tree.find("idinfo/keywords/theme/themekey")
abstract = tree.find("idinfo/descript/abstract")
purpose = tree.find("idinfo/descript/purpose")
contact = tree.find("idinfo/ptcontac/cntinfo/cntperp/cntper")
distribution = tree.find("distinfo/resdesc")
fcMetaDataVersion = "9.x"
created = tree.find("Esri/CreaDate")
modified = tree.find("Esri/ModDate")
... View more
11-18-2022
04:24 PM
|
0
|
4
|
532
|
POST
|
Thanks for the reply. I had already seen that link, but in re-reading it I see that it answers one of my questions posted earlier ( http://forums.arcgis.com/threads/98624-Data-type-for-auto-incrementing-OBJECTID-in-Postgres ) which is that Esri does support the Serial data type shortcut for creating incrementing IDs in postgres. I've been running everything as the postgres user so permissions shouldn't be an issue. But I'm still stumped as to why I'm getting this error (and perhaps relatedly why the tool in this link also fails to work and errors without offering a useful message). I've tried many permutations on the table defs, and I even tried calling the incrementing PK something other than "objectid" and running these tools. I also tried calling it "OBJECTID" only to later read that all caps won't work for Esri.
... View more
01-02-2014
03:19 PM
|
0
|
0
|
569
|
POST
|
Using 10.2 Arcmap/ArcGIS Server on Windows with PostgreSQL 9.2/PostGIS 2.0. I'm try to publish a Feature Access service with all the Operations and Capabilities enabled against a purely PostGIS table (not using Esri's ST_GEOMETRY type). However, when publishing I get this blocking error during the ArcMap validation part. "00166: Layer's ObjectID is not maintained by the database and the feature service is being published with Create capability enabled" Here is the database creation script, which clearly has an auto-incrementing primary key (and editing the data outside of ArcMap proves the database is managing the ObjectID values)
CREATE SEQUENCE test_schema.mypoint_const_b_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER TABLE test_schema.mypoint_const_b_seq
OWNER TO postgres;
CREATE TABLE test_schema.mypoint_const_b
(
objectid integer NOT NULL DEFAULT nextval('test_schema.mypoint_const_b_seq'::regclass),
volmon24_i integer,
site_id integer,
waterbody character varying(30),
CONSTRAINT mypoint_const_b_pkey PRIMARY KEY (objectid)
)
WITH (
OIDS=FALSE
);
SELECT AddGeometryColumn ('test_schema','mypoint_const_b','geom',4326,'MULTIPOINT',2, false);
ALTER TABLE test_schema.mypoint_const_b
OWNER TO postgres;
CREATE INDEX mypoint_const_b_geom_gist
ON test_schema.mypoint_const_b
USING gist
(geom);
What are the rules for creating PostGIS tables that ArcGIS Server 10.2 can use for publishing a Feature Access service with the Create function enabled?
... View more
01-02-2014
10:44 AM
|
0
|
3
|
3051
|
POST
|
Using 10.2 Arcmap/ArcGIS Server on Windows I've successfully published some map services from my Postgres/PostGIS data and now I want to enable editing the features through a JavaScript web app. So, following the JS API examples I am enabling both the geometry service and the Feature Access service with all the Operations and Capabilities enabled. In short I'm using the serial data type for the OBJECTID primary key (tried in upper with "OBJECTID" in the DDL too) which appears to be a shortcut for creating an integer, auto-incrementing key as follows: CREATE TABLE test_schema.volmonwgs84e
(
objectid serial NOT NULL,
volmon24_i integer,
site_id integer,
waterbody character varying(30),
geom geometry(MultiPoint,4326),
CONSTRAINT volmonwgs84e_pkey PRIMARY KEY (objectid)
)
WITH (
OIDS=FALSE
);
ALTER TABLE test_schema.volmonwgs84e
OWNER TO postgres;
-- Index: test_schema.volmonwgs84e_geom_gist
-- DROP INDEX test_schema.volmonwgs84e_geom_gist;
CREATE INDEX volmonwgs84e_geom_gist
ON test_schema.volmonwgs84e
USING gist
(geom);
However, when I go to publish the service (from ArcMap) the Analyzer shows the following error: "00166: Layer's ObjectID is not maintained by the database and the feature service is being published with Create capability enabled"
Right-clicking the error kindly offers to "Add an auto-incrementing ID" for me, to which it later responds with the following. AFAIK, I ALREADY have an auto-incrementing field anyhow. "Executing: AddIncrementingIDField testing.test_schema.volmonwgs84e BOO
Start Time: Tue Dec 10 15:55:06 2013
ERROR 000152: You cannot add an incrementing ID field to a table registered with the geodatabase.
Failed to execute (AddIncrementingIDField).
Failed at Tue Dec 10 15:55:07 2013 (Elapsed Time: 0.70 seconds) So, what data type and rules need to be on this auto-incrementing field, and what is AddIncrementingIDField trying to do for me? Thanks! UPDATE: Thinking that my issue was the "new" PostGIS/Postgres approaches to things I've also tried creating a table with these older approach as follows: 1. manually setting the sequence on integer PK column instead of using the SERIAL type, 2. using "SELECT AddGeometryColumn" to create the geometry column, and therein using the old constraints approach with the final argument = false (http://postgis.refractions.net/docs/AddGeometryColumn.html)
CREATE SEQUENCE test_schema.mypoint_const_b_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER TABLE test_schema.mypoint_const_b_seq
OWNER TO postgres;
CREATE TABLE test_schema.mypoint_const_b
(
objectid integer NOT NULL DEFAULT nextval('test_schema.mypoint_const_b_seq'::regclass),
volmon24_i integer,
site_id integer,
waterbody character varying(30),
CONSTRAINT mypoint_const_b_pkey PRIMARY KEY (objectid)
)
WITH (
OIDS=FALSE
);
SELECT AddGeometryColumn ('test_schema','mypoint_const_b','geom',4326,'MULTIPOINT',2, false);
ALTER TABLE test_schema.mypoint_const_b
OWNER TO postgres;
CREATE INDEX mypoint_const_b_geom_gist
ON test_schema.mypoint_const_b
USING gist
(geom);
But I still get a fatal error when trying to create a service with Feature Access "Create" capability enabled with the same message: "00166: Layer's ObjectID is not maintained by the database and the feature service is being published with Create capability enabled"
I know that the database IS maintaining the PK because I can add features using QGIS just fine. PS, buried in this excellent link (http://proceedings.esri.com/library/userconf/proc13/tech-workshops/tw_192.pdf) I see that Arc doesn't like fields with quotes (which is how you force CAPS on OBJECTID. Lowercase objectid appears to be just fine to ArcMap at least.
... View more
12-10-2013
11:00 AM
|
0
|
1
|
5485
|
POST
|
Ahh yes."generalize" makes a better search term. Thank you.
... View more
11-15-2012
11:31 AM
|
0
|
0
|
1634
|
POST
|
I must be using the wrong terminology in my search. We're going to be doing some raster -> polygon delineation in ArcGIS Server using .Net ArcObjects (in 10.0). We know the results will be a little jaggy and we're interested in smoothing the shape and reducing some of the complexity by removing some vertices. So I'm looking for your basic Douglas-Peucker (or better) implementation in ArcObjects. ArcObjects Simplify and Smooth do not seem to be what we need. Any thoughts? David Douglas & Thomas Peucker, "Algorithms for the reduction of the number of points required to represent a digitized line or its caricature", The Canadian Cartographer 10(2), 112-122 (1973) John Hershberger & Jack Snoeyink, "Speeding Up the Douglas-Peucker Line-Simplification Algorithm", Proc 5th Symp on Data Handling, 134-143 (1992). UBC Tech Report available online from NEC ResearchIndex. http://rbrundritt.wordpress.com/2011/12/03/vertex-reductionone-of-my-secret-weapons/
... View more
11-15-2012
06:10 AM
|
0
|
2
|
2718
|
POST
|
How do I enable editing tools (i.e., add a point and attributes) for a spatially-enabled SharePoint layer list that I've added to my map?
... View more
03-02-2012
03:42 AM
|
0
|
1
|
428
|
Title | Kudos | Posted |
---|---|---|
2 | 12-07-2022 10:22 AM |
Online Status |
Offline
|
Date Last Visited |
12-08-2022
01:25 AM
|