I'm working on a project for my school for which I need to use Geotools. I need to be able to display a raster file and a shapefile, but the shapefile is way bigger than the raster and I just want to display the part in common with the raster.
Would someone know how to "crop" my shapefile and only keep the vectors in a specific area ? With Geotools of course. I'm using a Tiff with a tfw file as a raster.