Skip to content

Instantly share code, notes, and snippets.

@jgomezdans
Last active April 28, 2020 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgomezdans/0ac378c87f65bd43d169177a3a41666e to your computer and use it in GitHub Desktop.
Save jgomezdans/0ac378c87f65bd43d169177a3a41666e to your computer and use it in GitHub Desktop.
ogr2ogr -f GeoJSON -dialect sqlite -sql "select points.* from points, grid where ST_Intersects(grid.geometry, points.geometry)" sel_points.geojson data.vrt
<OGRVRTDataSource>
<OGRVRTLayer name="grid">
<SrcDataSource>grid.geojson</SrcDataSource>
</OGRVRTLayer>
<OGRVRTLayer name="points">
<SrcDataSource>points.geojson</SrcDataSource>
</OGRVRTLayer>
</OGRVRTDataSource>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment