4/16/2023 0 Comments Raster calculator![]() It created the outline I wanted, already highlighted. ![]() From the Editor toolbar's main dropdown menu, I selected Union (different from the Union tool from the toolbox). ![]() The selection could have been more easily accomplished with the selector tool, but either way. Once in arcmap, I began an editing session, opened the attribute table, and selected all of the many thousands of polygons. I exported that layer as an ESRI shapefile, and brought that into Arcmap. I ran it through the tool Raster>Conversion>polygonize, which converted it into a polygon layer with many thousands of tiny polygons. I solved this problem by using the free program QGIS for parts of it. All the other recommendations, mosaic, reclassify, raster calculator, raster domain, etc., all require higher level licenses that I don't have. I wanted to outline a raster that is very irregularly shaped, with a stair-step pattern around all the curves, which would have taken hours to digitize. I read this post for advice on a similar need. ![]() Point.Y = getattr(r.extent, "%s" % corner).Yįeat.setValue("RasterPath", InFolder "\\" Ras) Point.X = getattr(r.extent, "%s" % corner).X #The raster datasets in the input workspaceĪrcpy.CreateFeatureclass_management(os.path.dirname(Dest),Īrcpy.AddField_management(Dest,"RasterName", "String","","",250)Īrcpy.AddField_management(Dest,"RasterPath", "String","","",250)Ĭorners = To use it, you can create a tool in ArcToolbox or you simply change the InFolder and Dest (Destination) variables. I use this simple python script, it create a polygon featureclass with the extent of all the raster present in a folder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |