|
POST
|
I don't believe there is any mention of this in the documentation, but it seems that the ..sdf property for a FeatureSet converts timestamps to datetime64, which is great and saves me some work...except that for some reason it doesn't work properly if I try and query every feature in a layer then convert to an sdf. For Example: You can see here that first I try and query an entire layer (dpd) and then convert to an sdf, that date is wrong, it should be 1847-02-11 (this is a special date my office uses for something). The next cell shows me specifying that same feature beforehand within the query on the FeatureLayer, then I convert to sdf...somehow it's correctly converted. This is no big deal, I know this functionality is new and it's not that much trouble to just convert the timestamps on the FeatureSet myself...curious though on why this might be?
... View more
07-22-2020
03:01 PM
|
0
|
0
|
755
|
|
IDEA
|
A really cool feature of the API is that you can convert a Pandas dataframe into a spatially enabled dataframe (SEDF), but surprisingly it will not work if your geometry column is in SDE format. You could convert the SDE geom to WKT, but my environment (and I'm sure i'm not alone here) is still in the stone age GIS wise (oracle with no spatial extensions enabled) so I can't do this easily. For example, say I wanted to use Cx_oracle to query my sde and convert to an SEDF so I can use all the awesomeness of pandas to do data manipulation (adding fields, joins, updates, etc.). I can create a pandas dataframe, but if I try to convert to an SEDF I'll get an error saying that my SHAPE column is not iterable.
... View more
06-26-2020
07:03 AM
|
1
|
0
|
792
|
|
POST
|
Hi all, Trying to automate the updating of a large tpk on AGOL. When the tpk is updated on my servers I do the following: - Break into parts - Call updateItem opeartion with multipart = true - make a request to upload each part using addPart - make a request with the commit function to finalize the update to the tpk on AGOL My issue is that I get no response when trying to use addPart, then when the commit is finally hit in my code it says there are no parts to commit: Code: update_url = 'https://lipa.maps.arcgis.com/sharing/rest/content/users/{}/items/{}/update'.format(username,tpk_id)
up_data = {'f':'json',
'token':token,
'title': layer_name,
'itemId':tpk_id,
'type': 'Tile Package',
'overwrite': 'true', # existing item, overwrite is set to true
'async':'true',
'multipart':"true"}
update_response = requests.post(update_url, up_data=data, verify = cert).json()
print update_response
part_num = 1
part_url = 'https://lipa.maps.arcgis.com/sharing/rest/content/users/{}/items/{}/addPart'.format(username,tpk_id)
for part in os.listdir(parts):
path = r"\\psegliny.com\oms\oms_gis_prd\fileshare_mapping\cache_extent\es_secondary_tpks\full_service_area"
part = path + "\{}".format(part)
print part
print(str(part_num))
##files_up = {"file": open(part, 'rb')}
with open(part, "rb") as f:
files_up = {"file":f}
data = {'f':'json',
'token':token,
'partNum':part_num}
part_response = requests.post(part_url,data = data,files=files_up,verify=cert)
part_num+=1
try:
jres = json.loads(part_response.text)
print jres
except:
print "no response"
##print add_part_response
commit_url = 'https://lipa.maps.arcgis.com/sharing/rest/content/users/{}/items/{}/commit'.format(username,tpk_id)
data = {'f':'json',
'token':token}
commit_response = requests.post(commit_url,data=data,verify=cert).json()
print commit_response
Anyone know what the issue is?
... View more
04-16-2020
06:25 AM
|
0
|
1
|
1031
|
|
POST
|
Exporting a tpk from a Map Service tile cache. When exporting from ArcMap(10.4; ArcGIS Server 10.5) I get a smaller sized TPK then when I use the arcpy tool; both are using the same exact parameters: - Export to Tile Package - Compact - Area of Interest set with a Feature Layer I exported the feature layer I was using in arcpy to a feature class and checked the extent in ArcMap, it is slightly larger than the one produced in ArcMap with no code; however, when I check the inputs to the tool in geoprocessing results they both are exporting at the same extents. Then I am noticing more issues once I bring either of these to AGOL...they're missing tiles (less tiles than the expected amount) but weirdly they both seem to cover the AOI at all the intended scales. This later part is making me start to think, is the problem stemming from the map server cache itself? I am going to delete it and make a new one, though it so large this will take hours. Hoping in the meantime someone could offer me some insight on what is going on, thanks!
... View more
04-14-2020
01:22 PM
|
0
|
0
|
816
|
|
POST
|
So if all configurations are done in pro the overwrite function should work as intended?
... View more
04-03-2020
08:37 AM
|
0
|
1
|
1732
|
|
POST
|
The original Web Map with the associated layers was shared to AGOL from ArcGIS Pro. The data in these layers needs to be updated fairly frequently so we are trying to utilize the overwrite web layer function. I think the issue is that the web map, while shared from Pro, was mostly configured on AGOL.
... View more
04-02-2020
08:25 PM
|
0
|
3
|
1732
|
|
POST
|
I have a web that has a large number of feature layers within it, these layers are all part of the same layer package. We had to update the layers and hoping to keep the item id, configurations, layer name, etc the same; We used the overwrite web layer option in ArcGIS Pro (accessed when right clicking the layer) . The updated worked and when you look at the layers the update is seen and the item id is not changed; however on the web map which uses this layer, the update did not take place. Curious why this is?
... View more
04-02-2020
12:37 PM
|
0
|
5
|
1803
|
|
POST
|
I have a tile service on ArcGIS Online and I want to update the cache; when I try to from arcmap using Manage Map Server Cache tool (accessed by right clicking service udner "Hosted Feature Services" and clicking manage cache) the tool fails with the following errors: - The Workspace is not connected - ERROR: code:400, Info for item not found, Bad syntax in request. Tried running with the following parameters: - All scales in the cache (lvl 12 - 19) selected - Update Mode: RECREATE_ALL_TILES - Wait for job completion: Checked Side Question: - The updated tiles come from the associated tile layer on AGOL correct? So that tpk must be updated first if I want to update the layer tiles themselves (unless of course I am just deleting the tiles)
... View more
04-02-2020
12:34 PM
|
0
|
0
|
537
|
|
POST
|
Okay could you offer an alternative solution? I am thinking maybe adding another layer with no fill and controlling the labels there? Also wondering if I perhaps could somehow use layer filtering like with this example: https://developers.arcgis.com/javascript/latest/sample-code/timeslider-filter/index.html Carl Vricella GIS Analyst – System Mapping Mobile: 631-559-9633 Carl.vricella@pseg.com<mailto:Carl.vricella@pseg.com> <http://www.psegliny.com> <http://www.facebook.com/psegli> <http://www.twitter.com/psegli> <http://www.youtube.com/user/PSEGLI> <http://www.flickr.com/photos/psegli> PSEGSC
... View more
03-30-2020
10:37 AM
|
0
|
1
|
6544
|
|
POST
|
You only see all the labels when the slider has gone through the full time extent; at initialization there is nothing, they then start rendering as the slider plays. Anyone know what the issue is? See my codepen here: https://codepen.io/cvricella2/pen/eYNxdQg Thanks!
... View more
03-29-2020
06:19 PM
|
0
|
6
|
6651
|
|
POST
|
Curious what the use case is of the Update Tiles operation. If you look at this technical article here: FAQ: Is it possible to update tiles in a Tile Service hosted in ArcGIS Online? and scroll to method 3; you'll see that you use the Import Tiles operation to update the tiles of a hosted map service, not Update Tiles... So what does this operation actually do? The page on the operation: Update Tiles—ArcGIS REST API: Services Directory | ArcGIS for Developers, says it's for updating the extent and cache levels, so I guess it's for a schema change? If you wanted to for example merge a tpk with this existing one that covered a different area at different scales? Looking for clarification on this, thanks!
... View more
03-28-2020
01:29 PM
|
0
|
0
|
684
|
|
POST
|
I want to add services from ArcGIS Server to AGOL, curious on what needs to be done server side to make this happen. Currently my server only allows communication over http and when I try to add a service from server to AGOL (Content -> Add Item -> From a URL), i get the error "Unable to connect, make sure the URL is accessible to the client". In the hint for the box to enter a URL I see https...so I am guessing AGOL doesn't allow communication over http? This leads me think that I need to enable https on the server. I want to confirm, is this what needs to be done? In addition to enabling https on the server is there anything else I need to do? I will need to permission to do this so I want to make sure I am asking the right questions doing the right thing before I bother anyone at my organization with it. One more related question, if I add a service in this manner and update the cache server side; the update will take place on AGOL as well, correct? Because it's just referencing the REST URL. Thanks!
... View more
03-20-2020
08:26 AM
|
0
|
0
|
716
|
|
POST
|
For one of my organizations application we have a large tiled map service for a large geographic area. Currently the service has just been manually republished every so often but now it was requested to script out the republishing of the service and to start doing it more often. I am new to the organization was not there when this was all set up, also new to ArcGIS Services and Map services but I have a lot of scripting/programming experience so this task was assigned to me. My understanding from reading the docs is that the service itself does not need to be republished, just the cache, is this correct?
... View more
03-16-2020
10:00 AM
|
0
|
2
|
1034
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-01-2024 08:12 AM | |
| 3 | 03-17-2025 11:41 AM | |
| 1 | 05-03-2024 09:38 AM | |
| 1 | 08-26-2022 12:49 PM | |
| 7 | 07-20-2022 08:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-31-2025
08:23 AM
|