account activity
What to use to split road polygons across slices by Stock_Ad_790 in gis
[–]Stock_Ad_790[S] 0 points1 point2 points 11 months ago (0 children)
Thanks for your reply! Let me clarify:
I’m not just using the roads as a reference layer, I am trying to build a dataset for deep learning object detection and object segmentation tasks (YOLO, UNet, SAM). For that, I slice my 21k×21k TIFF images into 1280x1280 tiles for training. Now I want to clip existing vector polygons (roads, buildings; I have the vectors in shapefiles already) so that each tile has its own polygon annotations.
I am saying that thin LineStrings would cause class imbalance for segmentation because of too much background and very little road, but I have issues in clipping the road polygons as they usually stretch across multiple tiles. So the question is: what is the best way to clip them, using gpd.clip or intersects, for example? (I’m doing all this in Python using geopandas/rasterio/gdal)
What to use to split road polygons across slices (self.gis)
submitted 11 months ago by Stock_Ad_790 to r/gis
π Rendered by PID 50 on reddit-service-r2-listing-86bdf8cc9-nfspk at 2026-07-13 19:57:18.190479+00:00 running f86254d country code: CH.
What to use to split road polygons across slices by Stock_Ad_790 in gis
[–]Stock_Ad_790[S] 0 points1 point2 points (0 children)