|
POST
|
Spencer and Joshua, Thank you for your comment/reply on using the Server class. Here is the best way to access your server: gis = GIS(url="https://mysite.com/portal", username='*****') servers = gis.admin.servers.list()
... View more
03-28-2018
03:28 AM
|
1
|
9
|
2496
|
|
POST
|
Can you please add an example CSV that you are trying to use? Also, can you post your code as well? Thanks
... View more
01-19-2018
03:00 AM
|
0
|
1
|
1082
|
|
POST
|
Assuming you are using a spatial dataframe, you can publish the dataset as follows: content.import_data(df=sdf, title='testabc123', tags='tags1,tags2')
... View more
12-04-2017
10:59 AM
|
0
|
1
|
1279
|
|
POST
|
What version of Server/Portal are you using? Thanks
... View more
10-04-2017
10:55 AM
|
0
|
0
|
1392
|
|
POST
|
What version of portal are you doing the reindex on?
... View more
10-03-2017
03:06 AM
|
0
|
1
|
632
|
|
POST
|
Joshua, As of right now, we have not implemented it, but I will put it on the docket for future tasks. Thank you
... View more
09-07-2017
10:48 AM
|
0
|
1
|
1035
|
|
POST
|
Joshua, You can write your own overlay using the geometry operations on the shape column. There is no built in set operation. You can also use spatial indexing as well to improve performance. Thank you Andrew
... View more
07-24-2017
05:56 AM
|
1
|
3
|
1035
|
|
POST
|
Joshua, the inheritance from the base object (Panda's Dataframe), imports all the functions. I felt that those functions do not need to be documented since we did not write them, and they can be found on the panda's dataframe. Dan basically posted where you can get class specific help. help(arcgis.SpatialDataFrame) With the SHAPE and shape issue you are seeing, is actually a function of the panda's dataframe itself. It allows for '.' (dot) notation for field names.
... View more
07-24-2017
05:39 AM
|
1
|
1
|
1451
|
|
POST
|
Try this: import arcrest
if __name__ == "__main__":
fl_url = "https://site.com/arcgis/rest/services/reference/adminboundaries/FeatureServer/0"
token_url = "https://site.com/arcgis/admin/generateToken"
org_url="https://site.com/arcgis"
username = "admin"
pw = "some password"
where = "ISO_CC = 'US'"
sh = arcrest.AGSTokenSecurityHandler(username=username,
password=pw,
org_url=org_url,
token_url=token_url)
fl = arcrest.ags.FeatureLayer(url=fl_url,securityHandler=sh)
fs = fl.query(where=where)
print ("Found %s features with the where clause: %s" % (len(fs), where) )
if len(fs.features) > 0:
feature = fs.features[0]
geom = feature.geometry
geomFilter = arcrest.filters.GeometryFilter(geomObject=geom)
result = fl.query(where=where, geomtryFilter=geomFilter, as_json=True) # set as_json=False for the featureset object
print ("Found %s features with the where clause: %s and geometry filter" % (len(result['features']), where) )
... View more
06-01-2016
03:48 AM
|
1
|
0
|
941
|
|
POST
|
Monica, How big is your file? Python can upload file over 1 MB, do you mean 1 GB? When using addItem() on ArcREST, have you tried setting the multipart to True? This will break your file into smaller parts and upload the smaller parts, then when it finishes, it will commit the item to AGOL and merge everything back together. If you have additional ArcREST issues, please log them here: Issues · Esri/ArcREST · GitHub I would download the 64-bit background geoprocessing install for your version of ArcGIS desktop and run your script against that. Just make sure you use the 64-bit python.exe when calling your scheduled task. Thank you, Andrew
... View more
01-27-2016
02:53 AM
|
1
|
2
|
2802
|
|
POST
|
Do you mean does ArcREST work for ArcGIS Server service? or do you mean can you add an AGS service from another location (www address) to AGOL using that GUI interface? Thanks Andrew
... View more
07-31-2015
03:51 AM
|
0
|
0
|
686
|
|
POST
|
Do you need the extent of every geometry? or the whole feature class?
... View more
12-17-2014
07:57 AM
|
0
|
1
|
2203
|
|
POST
|
This functionality is not support via arcpy.mapping. You would have to use ArcObjects to do this. Andrew
... View more
12-17-2014
07:27 AM
|
0
|
1
|
737
|