Examples
List commands:
>>> geoc list
Count features in a CSV layer:
>>> cat states.csv | geoc vector count
Buffer feature from a shapefile:
>>> geoc vector buffer -i earthquakes.shp -o earthquake_buffers.shp
Get the envelope of a layer and then calculate the buffer:
>>> cat states.csv | geoc vector envelope | geoc vector buffer -d 0.1
Crop a raster:
>>> geoc raster crop -i raster.tif -b "-120,-40,120,40" -o raster_croped.tif
Create 100 random points in a GeoPackage database, get’s metadata of that layer, and then finally converts the layer to CSV::
>>> geoc vector randompoints -g "0 0 10 10" -n 100 -o test.gpkg -r points100
>>> geoc vector info -i test.gpkg -l points100
>>> geoc vector to -i test.gpkg -f csv
- Buffer a Vector Layer
- Create Centroids from a Vector Layer
- Create Interior Points from a Vector Layer
- Create Convex Hulls around a Vector Layer
- Create Envelopes around a Vector Layer
- Create a Vector Layer of Random Points
- Create a Voronoi Diagram from a Vector Layer
- Create a Delaunay Diagram from a Vector Layer
- Select Features that intersect other Features
- Select Features contained in other Features
- Select Features within a distance of other Features
- Create supercirlces for each Feature in a Layer
- Create Hexagon Graticule Layer
- Create Oval Graticule Layer
- Create Square Graticule Layer
- Create Rectangle Graticule Layer
- Create a unique values style for a vector layer
- Create a Map Cube
- Generate Geodetic Tiles
- Generate Web Mercator Tiles in MBTiles
- Generate UTFGrid Tiles
- Reclassify a Raster
- Create Polygons from a Raster