POST
|
The data type of "Type" is text. The data type of "Score" is float. I calculate the highest value exclusively from the Score. In summary, I try to remove duplicates (same geometry). I want to keep the geometry with the attributes that have the highest Score.
... View more
07-16-2020
02:56 AM
|
0
|
0
|
377
|
POST
|
Hi everyone, i try to merge a set of shapefiles under certain conditions. There are two attributes for the geometries in my files - "Type" and "Score". All related geometries overlap completely. The attribute "Type" of overlapping geometries can be different. I want to adopt the geometry and all its attributes that has the highest score. In the field map of the merge tool I can set the merge rule for "Score" to maximum - but then the "Type" value of the associated geometry is not automatically taken over. Is there a way to define advanced merge conditions? Thank you.
... View more
07-15-2020
05:50 AM
|
0
|
2
|
431
|
POST
|
Hi everyone, i try to merge a set of shapefiles under certain conditions. There are two attributes for the geometries in my files - "Type" and "Score". All related geometries overlap completely. The attribute "Type" of overlapping geometries can be different. I want to adopt the geometry and all its attributes that has the highest score. In the field map of the merge tool I can set the merge rule for "Score" to maximum - but then the "Type" value of the associated geometry is not automatically taken over. Is there a way to define advanced merge conditions? Thank you.
... View more
07-13-2020
03:25 AM
|
0
|
0
|
195
|
POST
|
Thank you, actually works. Alternative solution: I had to make a format adjustment in Windows. After I changed the decimal separator from "." to "," everything works like in the code snippet above, with double values instead of strings.
... View more
06-09-2020
03:22 AM
|
1
|
0
|
444
|
POST
|
Hey, I am using ArcGIS Pro 2.5.1 and try to scale the CellSize of an image from 1 to a value of ~0.48 using arcpy.Rescale_management. The Rescale - Data Management Tool in ArcGIS Pro works correctly for this use case When trying to use the rescaling function in Python I get the following exception If I export the function called in ArcGIS Pro as a Python script, the exact same function is called with identical parameters. Is there a bug in ArcGIS/ArcPy? Edit: It seems that only integer values are accepted or the decimal places are cut off. 1.488.. -> = scaling by factor 1, no Exception 0.488.. -> = 0?
... View more
06-08-2020
04:19 AM
|
0
|
2
|
509
|
POST
|
I have found that scaling the CellSize afterwards using arcpy.Rescale_management scales the CellSize to the desired size - but this is an additional, cumbersome step?
... View more
06-08-2020
03:16 AM
|
0
|
0
|
587
|
POST
|
Thanks for the answer - Just the tool I was looking for. The lower left corner of my grid is now in the right position - But the CellSize is not taken over, so my moved grid is too big. "in_snap_raster" is set to the original grid - Did I miss anything here? Edit: Documentation says "The cell size of the output raster will be the same as that of the input raster." My InputRaster's cell size is ~0.48 My OutputRaster's cell size is 1.
... View more
06-08-2020
02:02 AM
|
0
|
1
|
587
|
POST
|
I'm trying to export some RCNN-Mask training data using the "export training data for deep learning" tool in ArcGIS 2.5. I pass a 32 bit floating point singleband raster as input raster and a shape file containing buildings as input feature (+ property of input feature as class value field) to the tool. The resulting images in the "Image" directory seems to be fine. The "Label" folder, on the other hand, contains weird a mix of singleband- and multiband (2 and 3 bands also) raster files, e.g. (all files from same "Label"-subdirectory): file 6 is a multiband raster using the bands 1 and 2 file 9 is a multiband raster using the bands 1-3 file 7 is a singleband raster - each masked feature (buildings with same properties) is mapped to an other value. Shouldn't the result be a true-false masking raster containing the values 0 or 1? My workaround so far is a python script, iterating all bands of a given file, checking if a cell is occupied using map algebra. If that cell is occupied the new value is 1. bands = []
for band in range(int(arcpy.GetRasterProperties_management(img, 'BANDCOUNT').getOutput(0))):
bands.append(arcpy.sa.Raster(os.path.join(path, img.name, 'Band_{}'.format(band+1))))
res = bands[0]
for i in range(1, len(bands)):
res = res + bands[i]
res = res > 0 At this point i have singleband raster files only. Before training a model with the ArcGIS "train deep learning model" tool i have to copy the statistical files generated by the "generate training data for deep learning" tool into the directory of my updated raster files. If i try to use my trained model using the "detect objects using deep learning" tool i get the error: Why is the result of "creating training data for deep learning" a mixture of single- and multiband rasters, although only singleband rasters were given? Shouldn't the singleband results be true-false masking rasters containing the values 0 or 1? Is there a wrong approach in my workaround?
... View more
04-29-2020
01:44 AM
|
2
|
2
|
974
|
Title | Kudos | Posted |
---|---|---|
2 | 04-29-2020 01:44 AM | |
1 | 06-09-2020 03:22 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|