|
IDEA
|
Hey @Luke_Pinner thanks, however this does not give me the user's personal digital signing certificate, only the cert authorities.... I feel like this moves me closer, but basically I'd need to know how to go from getting that personal signing certificate object, and then sending it via a library like requests or requests_pkcs12 to authenticate/authorize a session.
... View more
11-16-2021
12:54 PM
|
0
|
0
|
5868
|
|
IDEA
|
I would like a way to fetch a user's client certificate from the Windows cert store, for authenticating to protected web services within geoprocessing tools. Previously I had done this using pythonnet but pythonnet is [still? lately? unreliably?] unsupported in python scripts when used as geoprocessing tools. For those of us working in "extremely security conscious" environments, being able to extend ArcGIS Pro to integrate protected web services, without interfering with a user's workflow, and without having to use the .NET SDK, is a critical need.
... View more
11-09-2021
10:03 AM
|
2
|
6
|
6128
|
|
POST
|
So, I had taken coordinate pairs I was using with the esriGeometryEnvelope object (YX) and followed the same YX order with the esriGeometryPolygon. When flipping the pairs to XY, it worked. Not sure why that should be the case, but if different pair order for different geometry objects in the same API is a thing, I feel like someone on the QA side of the house might've missed something... So, @jcarlson - yes it does definitely work And thank you @DavidPike yes that is where I started on this before moving to python
... View more
10-22-2021
02:29 PM
|
0
|
1
|
6262
|
|
POST
|
I'm attempting to pull a json response of Point records that fall within an arbitrarily defined polygon from an ArcGIS REST endpoint (MapServer). The endpoint supports JSON response and querying. Everything is in EPSG 4326, nothing weird. I'm trying to query it by esriGeometryPolygon. It is a simple 4-sided polygon built clockwise. Coords are in Y,X format. My ring looks like this: {"rings":[[[10,20],[10,40],[30,40],[30,20],[10,20]]]} I figure the "spatialReference" element defaults to 4326 for json though couldn't find that explicitly stated in documentation. However, adding the spatialReference property makes no difference. I am wrapping this all in a GET call that looks like this (the server is not internet accessible so I'm making it generic): https://server/arcgis/rest/services/PARENT/SERVICENAME/MapServer/0/query?geometry={"rings":[[[10,20],[10,40],[30,40],[30,20],[10,20]]]}&geometryType=esriGeometryPolygon&spatialRel=esriSpatialRelIntersects&outFields=FIELDNAME&returnGeometry=false&returnTrueCurves=false&returnIdsOnly=false&returnCountOnly=false&returnZ=false&returnDistinctValues=false&returnExtentsOnly=false&f=pjson When I go to this area on the service, there are definitely features within the polygon. However, they will not return via this query. So I figure I'm doing something wrong in structuring my request. Even on the REST querying documentation there are no examples showing how to clearly return record properties from a MapServer service based on a Polygon object.
... View more
10-22-2021
01:47 PM
|
0
|
5
|
6292
|
|
POST
|
@HannesZieglerVery helpful - thanks for all the resources. In the original code, I did instantiate the poly_list variable, but I wrote this on another network and messed up when retyping it here. I really like the ability that toolboxes give me to maintain 100% of my code in git and not having to worry about updating/moving around .tbx files. It's not practical for every case but feels like a lot cleaner way to work.
... View more
09-20-2021
12:07 PM
|
0
|
0
|
4019
|
|
IDEA
|
Absolutely, great idea, and another vote for pythonnet which is already well documented and a lot of third party utilities already rely on.
... View more
09-20-2021
08:56 AM
|
0
|
0
|
2990
|
|
POST
|
Hi @JohannesLindner that just gives me one option in the parameter drop-down called "Polygon." What I'm looking for is a filter list of only the Polygon type feature layers
... View more
09-20-2021
08:01 AM
|
0
|
1
|
4044
|
|
POST
|
Hi Don, your suggestion worked, (and I did instantiate the list, I just failed to put it in the example) but this part: this is typical with toolbox programming in that you just have to keep trying things until you find something that works is what is so frustrating.... show me the book I'll buy it, or tell me which class to attend and I'll register for it - it's the poking around in the dark that is so maddening!! Still this did work so thanks 🙂
... View more
09-20-2021
07:57 AM
|
0
|
0
|
4045
|
|
POST
|
Unfortunately, programming python toolboxes is not very well documented by Esri. I can't find any good examples anywhere of what a fully, completed toolbox with validation and source code should look like. It also seems like "parameters" and "messages" behave as magic arcpy variables that don't need to be expressly instantiated; I'm having trouble finding explicit guidance/documentation on that. Either way, could someone who has done this take a look at my code and help me understand why it's failing? The validation code works just fine, but every time I run it, it yields the somewhat cryptic error 000820: The parameters need repair. import arcpy
class Toolbox(object):
def __init__(self):
self.label = "ToolboxTest"
self.alias = ""
self.tools = [DummyTool]
class DummyTool(object):
def __init__(self):
self.label = "DummyTool"
self.description = "A dummy tool"
self.canRunInBackground = False
def getParameterInfo(self):
p = arcpy.mp.ArcGISProject('CURRENT')
m = p.activeMap
param0 = arcpy.Parameter(
displayName="Choice One",
name="input_choice_1",
datatype="GPLayer",
parameterType="Required",
direction="Input"
)
poly_list = [] # list only polygon feature layers
for lyr in m.listLayers():
desc = arcpy.Describe(lyr)
if desc.dataType == "FeatureLayer":
if desc.shapeType == "Polygon":
poly_list.append(lyr.name)
param0.filter.type = "ValueList"
param0.filter.list = poly_list
params = [param0]
return params
def isLicensed(self):
return True
def updateParameters(self, parameters):
pass
def updateMessages(self, parameters):
return True
def execute(self, parameters, messages):
# All I want to do here is just access
# the parameter value and report some
# facts about it for testing
self.updateParameters(parameters)
lyr = parameters[0].value
d = arcpy.Describe(lyr)
arcpy.AddMessage(d.name)
arcpy.AddMessage(d.dataType)
arcpy.AddMessage(d.shapeType)
... View more
09-17-2021
01:49 PM
|
0
|
7
|
4558
|
|
POST
|
Hi @BrittanyBurson so unfortunately this isn't going to work. This is because my users aren't working from a feature but from the table to any number of features (one to many). They just need to add a row to the table and they won't always know or care where (geographically) the feature is. I did upvote your idea. In the meantime this is needed; it seems funny to have to code up a simple SQL "add a row" web interface with a massive capability like Enterprise, but it looks like that's what I'll have to do 😞
... View more
08-06-2021
07:39 AM
|
0
|
1
|
3590
|
|
IDEA
|
I'd like to see a list of an item's dependencies in ArcGIS Enterprise. When I go to delete an item, frequently I'll get a "Some items were not deleted because they are delete protected or have dependent items." These are items I have uploaded with my own account. They are not delete protected. I do not believe they have any dependencies, but it would be nice for ArcGIS Enterprise to tell me *specifically* what is prohibiting me from deleting a layer.
... View more
08-06-2021
07:13 AM
|
17
|
4
|
1908
|
|
POST
|
Thanks @BrittanyBurson - I'll give this a shot and report back!
... View more
08-06-2021
07:02 AM
|
0
|
0
|
3590
|
|
POST
|
Here's my setup: SQL Server with 3 feature classes that all participate in relationship class and joins with a single, non-spatial table. I want to be able to allow users, via a web map/app to add rows to this table, and have it update the feature class attributes. Publishing works fine. However, on the table itself, I do not see an "add new row" function. I created something with AppBuilder and included the "Edit" widget, but it has no effect. It only allows a user to create new geometry, but not simply add a new row to the table. How do I get it to allow users to add new rows to the TABLE?
... View more
08-04-2021
01:48 PM
|
0
|
5
|
3647
|
|
IDEA
|
my guess is most people do this with python but this would be an awesome capability to have in core
... View more
07-15-2021
10:49 AM
|
0
|
0
|
1672
|
| Title | Kudos | Posted |
|---|---|---|
| 4 | 02-03-2025 01:29 PM | |
| 1 | 01-31-2019 11:15 AM | |
| 1 | 03-29-2022 12:18 PM | |
| 1 | 05-21-2024 12:32 PM | |
| 1 | 05-21-2024 01:03 PM |