|
POST
|
import arcpy
import os
sde_path = r'Database Connections\prvgisdb1-GIS-webadmin.sde'
arcpy.env.workspace = sde_path
datasets = arcpy.ListDatasets()
dataset_path_list = []
for dataset_name in datasets:
dataset_path = os.path.join(sde_path, dataset_name)
dataset_path_list.append(dataset_path)
all_fc_path_list = []
for dataset_path in dataset_path_list:
feature_classes = arcpy.ListFeatureClasses(dataset_path)
for fc in feature_classes:
fc_path = os.path.join(dataset_path, fc)
all_fc_path_list.append(fc_path)
for fc in all_fc_path_list:
fields = arcpy.ListFields(FC)
#for field in fields: #####
##### have a look at this link to finish it off. i hate field mappings
##### https://community.esri.com/thread/159184
... View more
02-27-2020
10:38 AM
|
1
|
1
|
5392
|
|
POST
|
Does it have to be from python? Creation of a mosaic dataset and importing rasters is an easy process and you can just provide a workspace. I'm sure it can be done in arcpy if needs be though.
... View more
02-26-2020
02:00 PM
|
1
|
1
|
3932
|
|
POST
|
Hi, only a desktop guy unfortunately. Do you have a processing extent setting which might overwrite this option?
... View more
02-26-2020
01:55 PM
|
0
|
1
|
3850
|
|
POST
|
That is actually an obvious and very good idea I haven't tried. I'll see if it works tomorrow!
... View more
02-26-2020
01:16 PM
|
0
|
0
|
1347
|
|
POST
|
Hi Blake thanks for your reply, unfortunately the dataset is at work. I'm trying to count the number of exactly overlapping polyline geometries (road segments that have been crossed multiple times in a network analyst route) for some reason I get the correct join count appended but with missing rows. Keep all is enabled and an outer join. I've got around this with a search cursor and geometry token but it seemed strange behaviour.
... View more
02-26-2020
10:55 AM
|
0
|
2
|
1347
|
|
POST
|
I'm attempting to do a spatial join of polylines in desktop 10.4.1. The join is against itself to create a join count field for features within the same feature class. I.e. the target is itself. I just want each polygon segment to have a join count I dont really care if theres overlapping segments. The problem is that I seem to be losing records even though I have 'keep all' specified and this is also the default. Thanks for your time.
... View more
02-25-2020
02:55 PM
|
0
|
4
|
1464
|
|
POST
|
Hi, You can assign a default value in the fields tab of the feature class, right-click properties on the FC in catalogues or catalog window. If you need this done in python can you screenshot your inputs to the assign default to field method?
... View more
02-25-2020
09:59 AM
|
0
|
0
|
1064
|
|
POST
|
The output is the position of the raster with the lowest number for that cell. Ie. Its saying raster 3 has the lowest, faster 2 has the lowest etc. On a cell by cell basis. Dependent on the order you add them to the tool.
... View more
02-25-2020
01:47 AM
|
1
|
0
|
4077
|
|
POST
|
Hello, I'm attempting to set up a geoprocessing task to be set up on portal 10.7.1 and desktop 10.5.1. My desktop script tool takes user input by them filling out rows in a table as an input parameter. This is done using the recordset data type (much in the same way as a feature set allows interactive drawing) and a template gdb table located in the datastore. Regardless of any other functions of the tool, when published the input options for the geoprocessing widget are 'table in map' or 'json'. Table in map is useless as it just takes the data from a table in the layers, with no interactive editing allowed, and the json is just a string which my users would have no idea what to do with. Thanks for your time
... View more
02-24-2020
10:34 AM
|
0
|
0
|
545
|
|
POST
|
Create a taster for A and a taster for B. Ensure the same cell size and snap raster are specified in the environments. Turn NoData values to 0 in both tasters (reclassify). Add together both rasters in raster calculator. Reclassify the output raster values. E.g. if A =1, B = 2 there will be a raster cell with a value of 3 at the junction. Turn this value back to 1.
... View more
02-24-2020
09:30 AM
|
0
|
1
|
4077
|
|
POST
|
Can you not use the 'group' option and do it for every 'name' or 'objectid' etc. ?
... View more
02-23-2020
01:49 PM
|
0
|
0
|
2459
|
|
POST
|
Ah ok I'll throw in a try except block. I guess its erorring on those?
... View more
02-23-2020
10:49 AM
|
1
|
0
|
1366
|
|
POST
|
OK, but you did mention by retail type also. do you mean you want a density raster of all of the locations, then separate density rasters for each of the retail types? e.g. product 1 - density of all retail prod 2 - density of supermarkets prod 3 - density of pet stores … ? also you want this as a point density and not a kernel density?
... View more
02-23-2020
07:32 AM
|
0
|
1
|
2685
|
|
POST
|
You have a double quote at the end of the selection on the first one and a = f" for the second one
... View more
02-23-2020
05:51 AM
|
0
|
12
|
3755
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-13-2025 01:08 PM | |
| 1 | 09-25-2025 03:19 PM | |
| 1 | 09-24-2025 02:35 PM | |
| 1 | 09-17-2025 02:42 PM | |
| 1 | 09-10-2025 02:35 PM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|