pygeoc.vector module

Vector related Classes and Functions

author: Liangjun Zhu

changlog:

  • 12-04-12 jz - origin version
  • 16-07-01 lj - reorganized for pygeoc
  • 17-06-25 lj - check by pylint and reformat by Google style
class pygeoc.vector.VectorUtilClass

Bases: object

Utility function to handle vector data.

static convert2geojson(jsonfile, src_srs, dst_srs, src_file)

convert shapefile to geojson file

static raster2shp(rasterfile, vectorshp, layername=None, fieldname=None, band_num=1, mask='default')

Convert raster to ESRI shapefile

static write_line_shp(line_list, out_shp)

Export ESRI Shapefile – Line feature