POST
|
I have a point dataset but want to view them based on their geometry, z-value primarily. Anyone have any ideas or good methods to achieve this? Is there anything out of the box in ArcGIS Pro? I would also accept a way to easily apply a definition query based on a z-value. Thanks for any pointers, Greg
... View more
05-22-2019
10:36 PM
|
0
|
2
|
236
|
POST
|
Check that your output is a valid JSON and that listaCampos is in the format you're expecting.
... View more
08-08-2018
01:36 PM
|
0
|
0
|
108
|
POST
|
A sample of mine that I looked up. view = layer_name . manager . create_view ( name = 'View_name' , allow_schema_changes = False , updateable = True , capabilities = 'Query,Create' , view_layers = None )
... View more
06-07-2018
02:27 PM
|
0
|
5
|
108
|
POST
|
Hi, the functionality is documented here: arcgis.features.managers module — arcgis 1.4.1 documentation Took us a while to find it too. Thanks, Greg
... View more
06-06-2018
02:14 PM
|
1
|
9
|
149
|
POST
|
I am currently using the API to publish a feature service from a File GDB in ArcGIS Online. This works fine. If I load this into an AWS lambda function however, the total time to execute is greater than the 29s allowed for a lambda function. Are other methods, such as publishing from a .sd or cloning an existing feature service from within the same org (is this possible?), any faster than publishing from a File GDB hosted in arcgis online?
... View more
03-12-2018
12:45 PM
|
0
|
1
|
114
|
POST
|
I have the following code snippet to publish a feature service from a file gdb: new_service = my_fgdb . publish ( publish_parameters = { "name" : "great_name" } ) this creates a service, with the name "great_name". But what displays in My Content in ArcGIS Online is a feature service with the name of the file gdb. Is there a publish parameter that does this? I have not been able to find one in the documentation.
... View more
03-11-2018
10:45 AM
|
0
|
0
|
75
|
POST
|
Solved it - needed the last line that loads the JSON format. Turns out that the JSON property returns a string not a JSON format. point = arcpy . Point ( float ( x ) , float ( y ) ) sr = arcpy . SpatialReference ( 2193 ) ptGeometry = arcpy . PointGeometry ( point , sr ) buff_geometry = ptGeometry . buffer ( length ) densify = buff_geometry . densify ( 'DISTANCE' , 1 , 1 ) shape = densify . JSON shape = json . loads ( shape )
... View more
08-01-2017
02:01 PM
|
4
|
0
|
76
|
POST
|
The only code to pass data through to AGOL is this line: add_result = pivots_layer . edit_features ( adds = [ pivot_dict ] ) Which does work, except for the geometry being empty in AGOL.
... View more
07-25-2017
03:24 PM
|
0
|
0
|
76
|
POST
|
Hi Joshua, Yes I'm using arcpy to create the geometry that I am then passing to AGOL via the Python API. I'm passing the dictionary below through. The Python API is creating my features with the correct attributes, but they have no geometry. I have tried with and without true curves (I thought true curves may be the issue) but to no avail. pivot_dict = { "attributes" : { "farmName" : farmName , "centreX" : centreX , "centreY" : centreY } , "geometry" : shape }
... View more
07-25-2017
01:23 PM
|
0
|
2
|
76
|
POST
|
Hi guys, I'm trying to add a feature to AGOL via the Python API. My features are being created but with empty geometries. At the bottom is my geometry object that I am passing through. The geometry was created using the following so should be fine: point = arcpy.Point(float(x),float(y)) sr = arcpy.SpatialReference(2193) ptGeometry = arcpy.PointGeometry(point,sr) buff_geometry = ptGeometry.buffer(length) densify = buff_geometry.densify('DISTANCE',10,10) shape = densify.JSON I'm sure someone has pushed polygon objects through to AGOL via the Python API but I cannot find any code samples to compare mine too. Any help appreciated - also does the API handle true curves? Or do I need to use densify? Thanks! Greg. {'geometry': '{"rings":[[[1795330.473,5541901.9229999995],[1795604.8544855313,5541877.9177305344],[1795870.8990284686,5541806.6313101035],[1796120.5229999998,5541690.2297405191],[1796346.1417020655,5541532.2498245714],[1796540.899824572,5541337.4917020649],[1796698.8797405194,5541111.8729999997],[1796815.2813101034,5540862.2490284685],[1796886.5677305341,5540596.204485531],[1796910.5729999996,5540321.8229999999],[1796886.5677305341,5540047.4415144688],[1796815.2813101034,5539781.3969715312],[1796698.8797405194,5539531.773],[1796540.899824572,5539306.1542979348],[1796346.1417020655,5539111.3961754283],[1796120.5229999998,5538953.4162594806],[1795870.8990284686,5538837.0146898963],[1795604.8544855313,5538765.7282694653],[1795330.473,5538741.7230000002],[1795056.0915144687,5538765.7282694653],[1794790.0469715314,5538837.0146898963],[1794540.4230000002,5538953.4162594806],[1794314.8042979345,5539111.3961754283],[1794120.046175428,5539306.1542979348],[1793962.0662594805,5539531.773],[1793845.6646898966,5539781.3969715312],[1793774.3782694659,5540047.4415144688],[1793750.3730000004,5540321.8229999999],[1793774.3782694659,5540596.204485531],[1793845.6646898966,5540862.2490284685],[1793962.0662594805,5541111.8729999997],[1794120.046175428,5541337.4917020649],[1794314.8042979345,5541532.2498245714],[1794540.4230000002,5541690.2297405191],[1794790.0469715314,5541806.6313101035],[1795056.0915144687,5541877.9177305344],[1795330.473,5541901.9229999995]]],"spatialReference":{"wkid":2193,"latestWkid":2193}}'
... View more
07-24-2017
10:59 PM
|
0
|
6
|
767
|
Online Status |
Offline
|
Date Last Visited |
02-11-2021
06:17 PM
|