0

I have a Shapefile with lon-lat coordinates (points) and I want to join it with a vector grid. When using QGIS I do this with "Join attributes by location" , using as input layer the vector grid and the join layer the points , selecting "within".

How I could do that with ogr2ogr in command line?

  • 1
    You are looking for ogr2ogr etc... -dialect sqlite -sql "spatial join select clause using st_intersects". See some postgis examples for inspiration: ST_Intersects, Spatial Joins, More Spatial Joins. Then have a go and edit your question with some attempts & errors if you get stuck. – user2856 Jun 26 at 1:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.