|
POST
|
@jcarlson yes using a very small float preserve the precision. I think it's the best solution because I rather not write to an intermediate format. Thanks for your help!
... View more
08-31-2021
08:26 AM
|
0
|
0
|
4533
|
|
POST
|
@David_Brooks The arcpy.conversion.FeaturesToJSON throws a 999999 Error when used on layer that has curves.
... View more
08-31-2021
08:01 AM
|
0
|
0
|
4536
|
|
POST
|
@David_Brooks yes that could be a solution, but converting from geodatabase to shapefile brings a lot of side effects that I am trying to get around.
... View more
08-31-2021
07:53 AM
|
0
|
1
|
886
|
|
POST
|
That could be a problem because the topology and the precision is important. There must be another way. For instance when you output a geojson, the curves are replaced by vertices because curves are not in the spec of geojson.
... View more
08-31-2021
07:50 AM
|
0
|
4
|
4547
|
|
POST
|
Hi, thanks for the reply! Will this generalize the whole geometry or just replace the curve with vertices?
... View more
08-31-2021
07:43 AM
|
0
|
9
|
4551
|
|
POST
|
Hi, Is there a way to replace curve rings in polygon geometries with vertices along the curve using arcpy? I need to output a specific json of a featureSet but curveRings are not allowed. Is there a mathematical function that can be used? Thank you for the info! Maxime Demers
... View more
08-31-2021
06:57 AM
|
0
|
12
|
5446
|
|
POST
|
Yes ok, it can be deleted. Thank you for the feedback. Have a good day.
... View more
08-30-2021
08:21 AM
|
1
|
0
|
2690
|
|
POST
|
Further readings make me realize that I must use a OAuth2.0 authentification method.
... View more
08-30-2021
07:07 AM
|
1
|
2
|
2714
|
|
POST
|
Hi, I am trying to use the Urban API with Python but I got an authentification error: GraphQL query failed with 1 errors [{'message': 'The access token provided is invalid or expired.', 'extensions': {'code': 'UNAUTHENTICATED'}}] Im not sure why the token I provided to the urban api url is not working because it was generated using arcpy like below: import arcpy
from sgqlc.operation import Operation
from sgqlc.endpoint.http import HTTPEndpoint
from urban_api_schema import urban_api_schema as schema
arcpy.SignInToPortal("https://www.arcgis.com", "myUserName", "MyPasswOrd")
#token is generated correctly
token = arcpy.GetSigninToken()
urban_api_url = "https://urban-api.arcgis.com/graphql" + '?token=' + token['token']
endpoint = HTTPEndpoint(urban_api_url)
#here it's the function that call the api to update the parcels
for parcel_chunk in parcels_chunks:
op = Operation(schema.Mutation)
create_parcels = op.create_parcels(urban_database_id="1c80e3e815594fd288d347e132138f0a", parcels=parcel_chunk)
create_parcels.attributes.__fields__('global_id')
json_data = endpoint(op)
errors = json_data.get('errors')
if errors:
print(errors) Any helps would be greatly appreciated! Thanks, Maxime Demers
... View more
08-30-2021
06:44 AM
|
1
|
3
|
2722
|
|
POST
|
Hi, I am trying to use the Urban API but I got authentification error: GraphQL query failed with 1 errors [{'message': 'The access token provided is invalid or expired.', 'extensions': {'code': 'UNAUTHENTICATED'}}] Im not sure why the token provided to the urban api url is not working because it was generated using arcpy like below: import arcpy
from sgqlc.operation import Operation
from sgqlc.endpoint.http import HTTPEndpoint
from urban_api_schema import urban_api_schema as schema
arcpy.SignInToPortal("https://www.arcgis.com", "myUserName", "MyPasswOrd")
#token is generated correctly
token = arcpy.GetSigninToken()
urban_api_url = "https://urban-api.arcgis.com/graphql" + '?token=' + token['token']
endpoint = HTTPEndpoint(urban_api_url)
#here it's the function that call the api to update the parcels
for parcel_chunk in parcels_chunks:
op = Operation(schema.Mutation)
create_parcels = op.create_parcels(urban_database_id="1c80e3e815594fd288d347e132138f0a", parcels=parcel_chunk)
create_parcels.attributes.__fields__('global_id')
json_data = endpoint(op)
errors = json_data.get('errors')
if errors:
print(errors)
... View more
08-30-2021
06:38 AM
|
0
|
1
|
1073
|
|
POST
|
Hi, I would like to know if there is a way to prevent Collector to be able to add or remove attachment for a perticular web map? We need attachments on a layer, but in that Collector application, we dont want users to be able to modify attachments, but to modify some attributes only. We dont need to see attachments at all in that Collector application if that helps. Thank you!
... View more
08-24-2021
08:55 AM
|
1
|
0
|
688
|
|
POST
|
Hi, I would like to run standalone python 3 scripts (using arcpy) in scheduled tasks on arcgis server v10.6.1 on Windows Server 2019. I have found an installation of python 3 in this location: C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\ and I wonder if it's ok to use it for running standalone scripts because ArcGIS Pro is not installed on that server, there is only ArcGIS Server. Also, I have read that I have to create a new python env in order to keep the arcgispro-py3 intact. Is it ok to create a new python env in the C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs ? Do you have any suggestions in regard with what I am trying to do? Many thanks, Maxime
... View more
07-15-2021
06:31 AM
|
0
|
1
|
2249
|
|
POST
|
I dont want to assign a new symbol, I want to modify the font used by every symbols. 1- Loop over all layers in a mxd 2- Determine if the layer symbol is using a specific font 3- Modify that specific font for another one 4- Save the mxd
... View more
07-05-2021
07:03 AM
|
0
|
0
|
1351
|
|
POST
|
Hi, Yes, I got hundred of unique symbols to modify. If not python, ArcObjects maybe?
... View more
07-05-2021
06:03 AM
|
0
|
2
|
1356
|
|
POST
|
Hi, Is there a way using arcpy (or else) to change the font of multiple marker symbols in a mxd? I got like an hundred of stacked symbols to modify... I need to modify the font used not the character of the font of each. Thank you if you can help here! P.S.: I dont need a complete answer, just a hint would be enough 🙂
... View more
07-02-2021
10:27 AM
|
0
|
4
|
1428
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-13-2025 05:45 AM | |
| 2 | 06-03-2024 10:33 AM | |
| 2 | 05-14-2025 10:45 AM | |
| 2 | 04-12-2022 07:00 AM | |
| 1 | 02-26-2025 05:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|