-
-
Save jgomezdans/0ac378c87f65bd43d169177a3a41666e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ogr2ogr -f GeoJSON -dialect sqlite -sql "select points.* from points, grid where ST_Intersects(grid.geometry, points.geometry)" sel_points.geojson data.vrt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<OGRVRTDataSource> | |
<OGRVRTLayer name="grid"> | |
<SrcDataSource>grid.geojson</SrcDataSource> | |
</OGRVRTLayer> | |
<OGRVRTLayer name="points"> | |
<SrcDataSource>points.geojson</SrcDataSource> | |
</OGRVRTLayer> | |
</OGRVRTDataSource> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment