|
IDEA
|
Implemented in Pro 2.8. https://youtu.be/i66t17evFFI?t=75
... View more
05-13-2021
07:47 AM
|
0
|
0
|
2916
|
|
POST
|
Confirmed. When I share the style to Everyone and the group, the symbols appear.
... View more
05-11-2021
06:47 AM
|
1
|
1
|
10491
|
|
POST
|
Thanks! So, would that mean that custom vector symbols are not available?
... View more
05-11-2021
06:19 AM
|
1
|
1
|
10493
|
|
POST
|
Not seeing RussellRoberts1 in AGOL. Another username?
... View more
05-10-2021
12:45 PM
|
0
|
1
|
10532
|
|
POST
|
I've published a simple style from Pro to ArcGIS Online for testing. It has just one point symbol created from a standard shape marker in Pro symbology. I added the style to a Group and made that group the default 2D web style group in my organization's settings. I added a point layer to a new map in Map Viewer (new, not Classic) and went to the Style settings, and the uploaded style was listed. However, when I try to load its symbols, the interface just spins and spins. Screenshot attached. Not sure what I am doing wrong. I am following the guidance in this blog post. https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/use-published-2d-symbols-in-arcgis-online/ @RussRoberts
... View more
05-10-2021
11:57 AM
|
1
|
21
|
14672
|
|
POST
|
I encountered this issue today in ArcGIS Pro. When I deleted the Legend element and created a new one, the new Legend worked fine (showed all layers).
... View more
04-23-2021
05:34 PM
|
0
|
0
|
1945
|
|
POST
|
With the newly released Map Viewer, I can't find a way to simply copy a layer that is already in the map. You have a layer that is styled a certain way, and you just want to create another layer, same data, with a slight modification to the style/label/pop-up. It seems I have to go back to adding from My Content all over again. It was there in Map Viewer Classic. Am I missing something?
... View more
04-19-2021
05:04 AM
|
15
|
23
|
11624
|
|
POST
|
I've created a map in Map Viewer Beta with a polygon layer. The Style settings for the polygon layer outline provide for auto-size by scale. When I set the Stroke width for the outline, I choose the "Adjust size automatically" option (then the Done buttons). However, when I go back into those settings, the checkbox is turned off again. Is there something about a polygon layer that makes that setting turn off? This blog post refers: https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/auto-size-by-scale-now-available-in-map-viewer-beta/
... View more
04-08-2021
07:17 AM
|
0
|
1
|
1054
|
|
POST
|
When you add WAB apps or Dashboards to your ArcGIS Online home page gallery, clicking on the card opens the app. When you add an Experience app to the Home page gallery, it opens the item page instead of the app. Is this by design?
... View more
01-29-2021
05:34 AM
|
1
|
0
|
699
|
|
POST
|
Thanks again, Josh. After some testing ... (1) I agree that there does not seem to be a way to publish to a hosted table at the moment. Not surprising as I think Dashboards only recently allowed a hosted table as a data source. to_table() seems to be designed for outputting to a gdb table. (2) I tried adding the CSV and publishing to an item as you suggested. The result of that item is, in fact, a hosted table. So this most directly addresses my original post. From the item, a user can download in multiple formats. If the user ends up downloading in CSV, then the publishing step in the code isn't even necessary. (3) I interpret the documentation for import_data() as you do - that a spatial dataframe is required. I didn't even bother to try this. (4) One other option I came up with was to add a dummy geometry to the summary table to force it into a spatial dataframe. I added 'X' and 'Y' fields and set them to zero. Then I created a new spatial dataframe with pd.DataFrame.spatial.from_xy(df, xfield, yfield, spatialReference). I was then able to save it to a feature layer and afterwards drop the X and Y fields from the layer. However, this wasn't as clean as point #2 above.
... View more
01-25-2021
07:15 AM
|
3
|
0
|
22614
|
|
POST
|
Thank you Josh! So I am one step closer, in that the "to_featurelayer" is now saving my feature layer back out to a feature layer. Back in the original post, I create a summary table with groupby and tried to apply to_featurelayer to that table, but it gives an error. from arcgis.gis import GIS
import pandas as pd
import numpy as np
gis = GIS("home")
# Feature service of street lights (read-only)
lights = gis.content.get("c6f328cfa65846308881279581c681f6")
lyr = lights.layers[0]
result = lyr.query(where="IsMetered='No' AND NumLights>0 AND BulbWattage>0",out_fields='LocationType,BulbWattage')
result_sdf = result.sdf
# Test: Save back out as a feature layer
result_sdf.spatial.to_featurelayer('result_fl') # this works
# Create a summary table
summary = result_sdf.groupby(by=['LocationType','BulbWattage'],as_index=False).count()
summary = summary.drop('SHAPE', axis=1).rename(columns={"OBJECTID": "count"})
summary LocationType BulbWattage count
0 Park 50 4
1 Park 68 2
2 Park 250 4
3 Parking Lot 250 2
4 Street 15 9
5 Street 22 34
6 Street 50 83
7 Street 54 8
8 Street 67 2
9 Street 68 141
10 Street 87 11
11 Street 175 1
12 Street 250 69 summary.spatial.to_featurelayer(title='summary_table_fl',gis=gis) ---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-11-8da99776fdd8> in <module>
----> 1 summary.spatial.to_featurelayer(title='summary_table_fl',gis=gis)
/opt/conda/lib/python3.6/site-packages/arcgis/features/geo/_accessor.py in to_featurelayer(self, title, gis, tags, folder)
2132 raise ValueError("GIS object must be provided")
2133 content = gis.content
-> 2134 return content.import_data(self._data, folder=folder, title=title, tags=tags)
2135 # ----------------------------------------------------------------------
2136 @staticmethod
/opt/conda/lib/python3.6/site-packages/arcgis/gis/__init__.py in import_data(self, df, address_fields, folder, item_id, **kwargs)
4913 "sourceCountry":"",
4914 "sourceCountryHint":"",
-> 4915 "geocodeServiceUrl":self._gis.properties.helperServices.geocode[0]['url']
4916 }
4917 }
IndexError: list index out of range It seems like the code is trying to automatically geocode the table.
... View more
01-24-2021
05:24 PM
|
0
|
2
|
22621
|
|
POST
|
Thanks for your help. to_featurelayer would be ideal and I could share it to allow the user to export the data from an item page. I whittled down my code to a bare minimum and found that even with a simple SDF from an existing feature layer, I could not save it back out with to_featurelayer. AttributeError: 'DataFrame' object has no attribute 'to_featurelayer' from arcgis.gis import GIS
import pandas as pd
import numpy as np
gis = GIS("home")
# Feature service of street lights (read-only)
lights = gis.content.get("c6f328cfa65846308881279581c681f6")
lyr = lights.layers[0]
# Make a SDF directly from a feature layer
lyr_sdf = pd.DataFrame.spatial.from_layer(lyr)
# Save back out as a feature layer
lyr_sdf.to_featurelayer('my_test_lyr') ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-60-813286c974b1> in <module>
1 # Save back out as a feature layer
----> 2 lyr_sdf.to_featurelayer('my_test_lyr')
/opt/conda/lib/python3.6/site-packages/pandas/core/generic.py in __getattr__(self, name)
5272 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5273 return self[name]
-> 5274 return object.__getattribute__(self, name)
5275
5276 def __setattr__(self, name: str, value) -> None:
AttributeError: 'DataFrame' object has no attribute 'to_featurelayer'
... View more
01-23-2021
05:05 AM
|
0
|
4
|
22638
|
|
POST
|
I have written a python notebook in ArcGIS Online. It reads an existing feature layer, queries it and calculates new fields, then creates a summary table using pandas groupby. I want to make this table available to users. How can I export a non-spatial pandas dataframe to a feature layer/table that an AGOL user can download. Or a similar solution. Right now, a user would have to run the notebook and copy the displayed summary table to clipboard. The users are not comfortable with code.
... View more
01-22-2021
03:51 PM
|
1
|
6
|
22675
|
|
IDEA
|
duplicate idea - https://community.esri.com/ideas/18537
... View more
08-05-2020
08:10 AM
|
0
|
0
|
1421
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-07-2021 04:00 PM | |
| 1 | 03-01-2024 06:18 AM | |
| 1 | 12-14-2023 04:40 PM | |
| 2 | 03-07-2023 02:34 PM | |
| 1 | 08-08-2023 10:25 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|