|
POST
|
You might find this post helpful. https://github.com/Esri/esri-leaflet/issues/786
... View more
08-12-2021
03:37 AM
|
0
|
0
|
8799
|
|
IDEA
|
I often need to draw on the map to exchange ideas with others. I can use the map notes in ArcGIS Enterprise map viewer or Draw widget in Web Appbuilder, but they don't support my smart pen very well. As an alternative, I use snipping tool or MS surface pro whiteboard function, but this workaround has its limitations. for example, I have to work outside of my GIS work space and the map is not interactive.... Nowadays most mobile devices come with a touch screen, some with a smart/active pen (e.g. surface pro and iPad Pro), it make sense to have the built-in function to fully use these great input devices to write and draw on the web map, no matter what you call it: map notes, drawings, graphics, annotations... Actually, I would like to see the pen support across all ArcGIS products. After all, we've been writing with pens for so many years before computer mouse were invented. BTW, I tried the annotation function in ArcGIS Pro with an active pen, the experience is not good in the current version.
... View more
06-04-2021
12:49 AM
|
3
|
2
|
1951
|
|
POST
|
If you don't change the python environment, it should be fine. But the safest way is to publish a web tool via ArcGIS Pro, it will use the Python3 environment on the server.
... View more
06-03-2021
07:53 PM
|
0
|
0
|
3200
|
|
POST
|
Maybe I should be more accurate, It's not "hidden", it's just not the default python environment. You can find it here, depending on your ArcGIS Server installation C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3
... View more
06-02-2021
07:51 PM
|
1
|
3
|
3221
|
|
POST
|
ArcGIS Server has a "hidden" python 3 environment, that's why you can publish web tools to it from ArcGIS Pro. but this python 3 environment does not include all the packages you have in the ArcGIS Pro Python environment. You can think this is a stripped down version of the python environment coming with your ArcGIS Pro.... How did you run your script in ArcGIS Server? if you tried sharing a web tool from ArcGIS Pro and it did not work, then I guess some packages you are using in your script are missing in the ArcGIS Server Python 3 environment. If you could achieve the same function in ArcMap, definitely try ArcMap, as the 2.7.x environment is default environment for ArcGIS Server 10.8.x, you'll have a better chance. Good luck
... View more
06-02-2021
05:55 PM
|
1
|
0
|
3231
|
|
POST
|
It seems CountyLog is an AGOL item rather than a FeatureLayer. Try CountyLog.layers[0].append(...)
... View more
03-24-2021
04:46 PM
|
0
|
1
|
3197
|
|
POST
|
The error occurs when using LineString(), have to see the data that goes into it to diagnose. Anyway, have you read the following help doc? https://developers.arcgis.com/python/guide/part2-working-with-geometries/#Creating-Polyline-objects It talks about the constructing geometry and the geometry engines behind the scenes (ArcPy or Shapely) Hope it helps
... View more
03-24-2021
04:28 PM
|
0
|
0
|
2427
|
|
POST
|
I can't see any problems in the workflow. I guess it's in the lambda function constructing the geometry string for the new ploylines
... View more
03-23-2021
11:49 PM
|
0
|
1
|
2434
|
|
POST
|
Normally you create labels in a map, not in the service
... View more
03-23-2021
10:17 PM
|
0
|
1
|
1260
|
|
POST
|
I won't publish 2GB data in one go from the client (ArcGIS Pro / ArcMap). Instead, publish an empty service first, then populate the service. there are two options: 1. Use edit_features function to add data in batches (batch size depends on the data, use smaller size if complicated polygon) # get the features you are going to add
features = fset_add.features
# divide the features into batches, 100 for example. The batch size depends
# on the size of the record (paritcularly the geometry)
num = int(len(features)/100)
remain = len(features)%100
print(f'num:{num} remain:{remain}')
for i in range(num):
pos_start = i*100
part = features[pos_start:pos_start+100]
result = feature_layer.edit_features(adds=part)
print(f"start at:{pos_start}, and the length of the list is:{len(part)}, {len(result['addResults'])} records added!")
if (remain>0):
pos_start = num*100
part = features[num*100:]
result = feature_layer.edit_features(adds=part)
print(f"start at:{pos_start}, and the length of the list is:{len(part)}, {len(result['addResults'])} records added!") 2. You can try if you can create a FGDB and upload it to your portal, and use append the service. I had success to append near 1 million records (points) itemId = "xxxxxb4cxxxx2eb7xxxxxxxx"
FL_Property_pnt.append(item_id=itemId,upload_format="filegdb",source_table_name="Property_Pnt")
... View more
03-23-2021
10:11 PM
|
0
|
1
|
1254
|
|
POST
|
You can use gis.content.search to check if a service is existing in AGOL or Portal. have you seen this user guide: https://developers.arcgis.com/python/guide/working-with-feature-layers-and-features/#Searching-the-GIS-for-feature-layers
... View more
03-23-2021
08:56 PM
|
1
|
1
|
4221
|
|
POST
|
This blog post may be helpful for you: https://community.esri.com/t5/arcgis-api-for-python-blog/methods-for-updating-layer-symbology-with-the-arcgis-api-for/ba-p/902923
... View more
03-22-2021
05:51 PM
|
1
|
0
|
1044
|
|
POST
|
I agree ArcGIS Python API help document is not as easy to navigate as the JS API help document. In the JS help, the html pages are based on classes, but in the Python API they are organised at higher (module) level. So, to navigate the Python API Reference, you need to know what you are looking for, which means you need to know the big picture of modules and even the potential classes. In this case, the Guide is helpful: https://developers.arcgis.com/python/guide/overview-of-the-arcgis-api-for-python/
... View more
03-22-2021
04:36 PM
|
1
|
0
|
2119
|
|
POST
|
@MichaelWallace3 umm... It should work. It would be helpful for the diagnosis if we can see a snapshot of the DataFrame an exact code that is doing the conversion. Btw, which version of ArcGIS API for Python are you using?
... View more
03-18-2021
06:48 PM
|
1
|
0
|
17150
|
|
POST
|
Signing in every 10 minutes by the same user seems a little bit wasteful from the server perspective, because every time it will go through the authentication and authorization process and generate a new token when the previous tokens are still valid... Just some thoughts for further research: It may be worth it to keep the state of the GIS object somehow, but the GIS object can't be serialized using json.dumps(gis)... How about running an application with an endless loop? you can delay the execution for 10 minutes in every loop instead of scheduling the execution using a third party software.
... View more
03-18-2021
12:13 AM
|
1
|
0
|
1592
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-28-2019 05:13 PM | |
| 1 | 02-25-2019 04:54 PM | |
| 1 | 03-05-2019 02:08 PM | |
| 1 | 03-12-2019 10:20 PM | |
| 1 | 11-27-2024 04:36 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-17-2025
07:39 AM
|