|
POST
|
Hello Joshua, Thank you for the information about the blob field! Do you have an idea why storing unicode in text field works?
... View more
09-07-2018
09:51 AM
|
0
|
1
|
1314
|
|
POST
|
I got an SystemError : error return without exception set error when trying to write a unicode into a blob field into a table inside a FGDB using arcpy.da.UpdateCursor with ArcGIS v10.3 for instance: import arcpy
value = u"a unicode string! with some accent éàèû"
with arcpy.da.UpdateCursor(r"c:\\my_fgdb.fgdb\my_table", ["blob_field"], where_clause="FID = '0') as cursor:
for row in cursor:
row[0] = value
cursor.updateRow(row) I know blob can store string, but is it normal it cannot store unicode?
... View more
09-07-2018
05:25 AM
|
0
|
3
|
1550
|
|
POST
|
After some testing, I confirm that using layer (.lyr) as the in_table parameter in arcpy.da.SearchCursor is much faster than using the path to the feature class. However, to be able to use fields name tokens such SHAPE@ or SHAPE@JSON you have to create a new layer class with the arcpy.mapping module. For instance: layer_path = r"c:\\temp\\myLayer.lyr"
with arcpy.da.SearchCursor(arcpy.mapping.Layer(layer_path), ["*"]) as cursor:
for row in cursor:
print row
... View more
09-04-2018
12:29 PM
|
2
|
1
|
1680
|
|
POST
|
Hi, Is it possible to use the SHAPE@ or SHAPE@JSON fields tokens in arcpy.da.SearchCursor with a layer (.lyr) as the in_table parameter with ArcGIS 10.3? When I try it, I got the following error: RuntimeError: A column was specified that does not exist. If I use the path to the feature class as the in_table parameter, it works.
... View more
09-04-2018
11:45 AM
|
0
|
5
|
3408
|
|
POST
|
That's interesting! I'll try using layers as input rather than paths to datasets
... View more
08-31-2018
12:43 PM
|
0
|
0
|
1680
|
|
POST
|
Hi, I have some geoprocessing services published to ArcGIS Server. I have noticed that every time a request is made, a great amount of time (1 to 3 seconds) is needed to establish the connection to the Geodatabase Entreprise workspace. For instance, if I use a SearchCursor in a GP Service, a lot of time is spent setting arcpy.env.workspace. It's not faster to define the workspace in the SearchCursor in_table parameter. I would like to know if it's possible to define a default workspace at the service instances level in order that when a service instance is created, the connection to a Geodatabase Entreprise workspace is made and kept open until the instance is closed? Thank you!
... View more
08-07-2018
11:14 AM
|
0
|
4
|
1951
|
|
POST
|
Thank you for your answer Doug Browning Is survey123 is available with Arcgis Server? Collector looks interesting, but the Android version have many negative comments on Google Store. Also, as other Esri products, Collector is developed in a very general purpose. I'll give ArcGIS Runtime SDK for Android a try for an app that will cover our specific needs.
... View more
06-06-2018
04:57 AM
|
0
|
1
|
1157
|
|
POST
|
I am interested in building a mobile application that would allow users to edit and add data to a map (hosted as a mapService on ArcGIS Server) in offline mode, using the mobile device GPS and forms for data. What tools, products and technologies are needed to develop such app? I know this would be quite difficult to answer with such few details, but all information would be welcome. Is using an android and iOS html5/javascript framework combined with ArcGIS Javascript API is enough or will we need to use tools like Android Studio with ArcObject SDK ? I think the Collector app would be close to what we need, but some features are missing like complex forms to populate the features datatable. Is it possible to extend the Collector app?
... View more
05-31-2018
05:39 AM
|
0
|
4
|
1521
|
|
POST
|
Hi, I am trying to create a tool to automatize the update of roads source used in a Network Dataset. In short, I want to truncate the roads feature class and append the new roads data into it. Finally, I want to rebuild the Network Dataset. When I try to edit the roads feature class, I encounter errors because arcpy can't edit a feature class used by a Network Dataset. Is there a strategy I could try to achieve what I am trying to do? Note: The Network Dataset is stored in Geodatabase Enterprise (SDE)
... View more
04-10-2018
06:56 AM
|
0
|
0
|
725
|
|
POST
|
Hi, I encounter a non-explicit error when using arcpy.GenerateServiceAreas with those parameters: Maximum_Facilities Maximum_Number_of_Breaks This is how I can reproduce the error: import arcpy, os
arcpy.env.overwriteOutput = True
featureSet = {
"geometryType": "esriGeometryPoint",
"spatialReference": {
"wkid": 3857,
},
"fields": [
{
"name": "Name",
"alias": "Name",
"type": "esriFieldTypeString"
},
],
"features" : [
{
"geometry" : {
"x" : -7929427,
"y" : 5910701
},
"attributes" : {
"Name": "Foo"
}
}
]
}
facilities = arcpy.AsShape(feature_set, True)
Network_Dataset_Path = os.path.join(r"\\vnageop1", "geod", "Geobase", "Network Analyst", "Reseau routier - AQ.gdb", "NetworkAnalystAQ", "NetworkAnalystAQ_ND")
arcpy.GenerateServiceAreas_na(facilities, "10", "Meters", Network_Dataset_Path, "in_memory/ServiceAreasOutput", Maximum_Facilities=10, Maximum_Number_of_Breaks=5) The error is the following: Traceback (most recent call last): File "G:\testNA.py", line 34, in <module> arcpy.GenerateServiceAreas_na(facilities, "10", "Meters", NA_Path, "in_memory/ServiceAreasOutput", Maximum_Facilities=10) File "c:\app\arcgis\desktop10.3\arcpy\arcpy\na.py", line 3878, in GenerateServiceAreas raise e ExecuteError: A python error occurred. Failed to execute (GenerateServiceAreas). If I remove the Maximum_Facilities and Maximum_Number_of_Breaks parameters, I have a correct output. What could be the problem?
... View more
03-09-2018
10:29 AM
|
0
|
2
|
1093
|
|
POST
|
Ok sorry about that Robert, I am not super familiar with the javascript API. Thank you for your help anyway, it was really appreciated. Have a good day!
... View more
02-08-2018
12:38 PM
|
0
|
0
|
1611
|
|
POST
|
Ok yes! In v3.23 you don't have to create a new IdentifyTask when using mapService, you just have to define the infoTemplates parameter of the ArcGISDynamicMapServiceLayer object and the API handles the request automatically, and it uses a query not an identify. ArcGISDynamicMapServiceLayer | API Reference | ArcGIS API for JavaScript 3.23 I will do the same in v4.6, I will use QueryTask instead of IdentifyTask, I think that will solve my problem.
... View more
02-08-2018
12:29 PM
|
0
|
2
|
1611
|
|
POST
|
I notice the javacript API v3.23 is not using the same type of REST service for IdentifyTask than the v4.X API In v3.23 its a query that is made and the result contains a mapping between fieldNames and aliases and the returned feature's (graphic) attributes use fieldNames https://mydomain.com/arcgis/rest/services/DEV/MY_MAP_SERVICE/MapServer/2/query?f=json&where=CD_POSTL IN ('G1J5K4')&returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry={"xmin":-7927684.461119956,"ymin":5916348.931106536,"xmax":-7927680.878134256,"ymax":5916352.514092236,"spatialReference":{"wkid":3857}}&geometryType=esriGeometryEnvelope&inSR=3857&outFields=*&outSR=3857 In v4.x its an identify and the result does not contains the mapping between fieldNames and aliases and returned feature's (graphic) attributes use aliases https://mydomain.com/arcgis/rest/services/DEV/MY_MAP_SERVICE/MapServer/identify?f=json&tolerance=15&returnGeometry=false&imageDisplay=1918,480,96&geometry={"x":-7927654.30432365,"y":5916341.466552996}&geometryType=esriGeometryPoint&sr=102100&mapExtent=-7928228.17920015,5916196.35563209,-7927082.818104282,5916482.994488199&layers=all:2
... View more
02-08-2018
12:09 PM
|
0
|
4
|
1611
|
|
POST
|
I wonder if it's possible to parameter the IdentifyTask in order that the result features attributes would be using the fields names instead of the fields alias. This is because fields names are less likely to be changed than alias over the course of time. Also, I dont how the API would handle fields that have the same alias. That could happen... Thank you!
... View more
02-08-2018
11:25 AM
|
0
|
7
|
2044
|
|
POST
|
Ok thank you! I was confuse because the documentation shows example using the .when() errorCallback instead of the normal promise.catch function. When the .when() errorCallback would be called then?
... View more
01-26-2018
08:37 AM
|
0
|
0
|
1081
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 06-03-2024 10:33 AM | |
| 2 | 05-14-2025 10:45 AM | |
| 1 | 04-12-2022 07:00 AM | |
| 1 | 02-26-2025 05:37 AM | |
| 1 | 01-30-2023 11:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-14-2025
08:29 AM
|