POST
|
It works if I include time=: and timeRelation=esriTimeRelationOverlaps. The colon is a delimiter. I could enter 0:1111111111111111111111111 for time zero and some time waaaaay in the future, to make sure I get all values in the dataset, but I found the delimiter by itself was enough to make the query work. Note that in an update to the server in the coming months, the colon delimiter should be replaced with a comma delimiter. https://livefeeds2.arcgis.com/arcgis/rest/services/NFIE/NationalWaterModel_Medium/MapServer/0/query?where=egdb.dbo.LargeScale_v2.station_id=1620851&time=:&timeRelation=esriTimeRelationOverlaps&outFields=*&returnGeometry=false&returnTrueCurves=false&orderByFields=egdb.dbo.medium_term_current.timevalue&returnDistinctValues=false&resultRecordCount=80&f=html Gonzalo Espinoza at Esri deserves credit for providing me with this solution.
... View more
09-05-2024
09:58 AM
|
0
|
0
|
526
|
POST
|
I'm still on 3.2, where the previous solution I posted worked. If anything changes once I migrate to 3.3, I'll share results here. I think Esri prefers you to make a clone of the default environment, and add packages to the clone rather than modify the default environment. But if you found a solution that worked, then hooray!
... View more
08-28-2024
06:42 PM
|
0
|
0
|
3485
|
POST
|
I'm querying the NWM streamflow forecast layer from the Living Atlas. It has 80 time steps, so each feature (e.g., station_id=1620851) should be present 80 times. However, only one feature is returned from the query below. How do I get all 80 features? https://livefeeds2.arcgis.com/arcgis/rest/services/NFIE/NationalWaterModel_Medium/MapServer/0/query?where=egdb.dbo.LargeScale_v2.station_id=1620851&outFields=*&returnGeometry=false&orderByFields=egdb.dbo.medium_term_current.timevalue&resultRecordCount=80&f=pjson
... View more
07-31-2024
08:48 AM
|
0
|
1
|
639
|
POST
|
Our surface is guaranteed to cover the line, so that isn't an issue for us. Someone else (@MK13 ?) should chime in if that fits their use case.
... View more
04-16-2024
01:42 PM
|
0
|
0
|
1456
|
POST
|
We don't have a good way to add M after interpolation. Though the length of a 3D line is greater than 2D, we wouldn't change the M values. Whatever M value was at a given vertex in the original line, we would want that M value at the same vertex in the newly interpolated line, and we would want M values for any new vertices to be interpolated from that.
... View more
04-16-2024
12:46 PM
|
0
|
2
|
1462
|
POST
|
The solution I found: In Pro 3.0 or 3.0.2 (tested on both), clone the base environment and activate the new environment. Add the pywin32 package. Browse to the environment folder (e.g., C:\Users\username\AppData\Local\ESRI\conda\envs\my-new-env) in an elevated Python command prompt and enter this command: python.exe Scripts/pywin32_postinstall.py -install Now I can use pywin32. That last step was a tip I gleaned from Gohlke's wheel page. This was done on a virtual machine. On my physical machine, the admins have some security thing going on that prevents me from installing the pywin32 package, but others may not encounter such an issue.
... View more
10-20-2022
08:21 AM
|
0
|
2
|
5831
|
POST
|
Thanks for the other things to look at but I don't think they handle exporting PDFs from Excel. With a clean install of Pro 3.0, I upgraded to 3.0.2, and I still don't have pywin32 installed. A search for "win" in the Package Manager in Pro reveals these libraries that seem close but not quite it: * python-certifi-win32 * pywin32-security For an import test, this time I tried from within a Python console window in Pro. I get "No module named 'win32com'". I wonder how you have pywin32 but I don't. console window
... View more
10-19-2022
09:31 AM
|
0
|
0
|
5845
|
POST
|
I was working in a clone. I switched back to base (arcgispro-py3) and get this in a Python command prompt. (arcgispro-py3) C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3>python
Python 3.9.11 [MSC v.1931 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from win32com import client
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'win32com' I'm in Pro 3.0.0. Is it possible that attempting to install pywin32 in the clone corrupted the base installation?
... View more
10-18-2022
05:06 PM
|
0
|
0
|
5864
|
POST
|
How do I install pywin32 for ArcGIS Pro 3.0? It worked for me in 2.x, but in 3.0, the installation fails whether trying it from the Pro user interface (Settings > Package Manager > Add Packages) or in a Python command prompt using conda install or pip install. There seems to be a lot of conflicts in dependency versions. After attempting to install, if I run this code: from win32com import client I get: ImportError: DLL load failed while importing pythoncom: The specified procedure could not be found. I'm using pywin32 and arcpy to update an APRX and an Excel file and export sheets from Excel to PDF.
... View more
10-18-2022
02:50 PM
|
0
|
10
|
6588
|
POST
|
That is a nice workaround as long as one doesn't need the tool to work in Scenes. I noticed what is perhaps another bug related to the workaround. There are different click behaviors for these situations: When SketchOutputMode = SketchOutputMode.Map, you click once to start the sketch, drag to draw the shape, and click again to end the sketch. When SketchOutputMode = SketchOutputMode.Screen, you click once to start the sketch and keep the mouse button held down, drag to draw the shape, and then release the mouse button to end the sketch.
... View more
08-03-2022
09:43 AM
|
0
|
0
|
742
|
POST
|
In Pro 3.0.0, I created an add-in following Build a map identification tool tutorial. In a map in Pro, when I click on the custom tool to activate it, it is active. Then if I scroll or click and drag with the mouse wheel to navigate in the map, the active tool reverts to being the Explore tool. In Pro 2.x, if I navigated with the mouse wheel, the currently active tool would remain active. I prefer the 2.x behavior. Can I make Pro 3.0 keep my current tool active after navigating with the mouse wheel?
... View more
07-28-2022
12:54 PM
|
0
|
2
|
877
|
POST
|
My code worked in 2.7, so I did not bother revising it to take advantage of the new selection functionality, so I cannot give you concrete advice on how to deal with network trace results as selections. Still, it seems the selection should be present on the feature layer when the trace is finished running. This means the next time you access the network layer in your script or geoprocessing workflow, the selection should be there. However, I have not tested this, so maybe I'm missing something.
... View more
10-19-2021
02:43 PM
|
0
|
0
|
723
|
POST
|
Nearly 10 years later, I find this issue still exists! What happened with the enhancement request? I suppose a workaround could be, once you've got Z, is there a way to take the original line-with-M and interpolate the M onto the line-with-Z? > Would you want M's interpolated for [new vertices] based on existing M's or not? Yes please.
... View more
06-03-2021
09:16 AM
|
4
|
0
|
1919
|
POST
|
A note on SOURCEID. If you are going to populate it, it should be the ID of the feature class with respect to its participation in the trace network, NOT the ObjectID of the feature. Given a trace network layer, and a feature layer participating in a trace network, here's a function that illustrates how to identify the SOURCEID. I use this in my script tools as I'm getting ready to perform traces. I do not know how to see the SOURCEID from the user interface without using arcpy.Describe. def get_source_id(network, network_layer):
d = arcpy.Describe(network_layer)
fc_name = d.featureClass.name
d = arcpy.Describe(network)
for s in d.sources:
if s.name == fc_name:
return s.sourceID
arcpy.AddError(
'Could not determine network source ID for ' + network_layer.name)
raise arcpy.ExecuteError If you've taken the conversation offline, will you please post the solution here once you've found one? I'm curious!
... View more
02-10-2021
08:49 AM
|
0
|
0
|
3449
|
Title | Kudos | Posted |
---|---|---|
1 | 05-11-2020 11:56 AM | |
4 | 06-03-2021 09:16 AM | |
2 | 12-13-2020 12:16 PM | |
1 | 12-02-2020 12:11 PM | |
1 | 06-05-2019 06:55 AM |
Online Status |
Offline
|
Date Last Visited |
09-05-2024
06:00 PM
|