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.

1 Answer 1


Ciao, I would probably look at the clip process which is part of process-vector.

Examples here: enter link description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.