To see what is in the file, use the ogrinfo command, which is part of gdal:
ogrinfo BritishIsles.shp -al -geom=NO
To manipulate the shapefiles, use the ogr2ogr command, also part of gdal. This can use SQL style queries.
To produce BritishIslesReduced I used this command:
ogr2ogr BritishIslesReduced.shp BritishIsles.shp -sql "SELECT * from BritishIsles where ET_ID<=6"
To produce the Small versions of the files I used the simplify feature of ogr2ogr2:
ogr2ogr BritishIslesReducedSmall.shp BritishIslesReduced.shp -simplify 100
the weird thing with ogr2ogr is that it expects the destination file first, before the source file, i.e.:
ogr2ogr <destination> <source> <command>
I used gdal (https://www.gdal.org/) to manipulate the shape files in:
ukcp-data-processor/ukcp_dp/public/shapefiles/
To see what is in the file, use the
ogrinfo
command, which is part of gdal:ogrinfo BritishIsles.shp -al -geom=NO
To manipulate the shapefiles, use the
ogr2ogr
command, also part of gdal. This can use SQL style queries.To produce
BritishIslesReduced
I used this command:ogr2ogr BritishIslesReduced.shp BritishIsles.shp -sql "SELECT * from BritishIsles where ET_ID<=6"
To produce the
Small
versions of the files I used thesimplify
feature ofogr2ogr2
:ogr2ogr BritishIslesReducedSmall.shp BritishIslesReduced.shp -simplify 100
the weird thing with ogr2ogr is that it expects the destination file first, before the source file, i.e.:
ogr2ogr <destination> <source> <command>
Hope that helps!