chm_zd.py
def create_layer(ds, epsg=2178):
    """Create shapefile layer. Used for temporary and segments shp"""
    srs = osr.SpatialReference()
    srs.ImportFromEPSG(epsg)

    layer = ds.CreateLayer('segments.shp', srs, ogr.wkbPolygon)
    layer.CreateField(ogr.FieldDefn('SEG_NB', ogr.OFTInteger))
    layer.CreateField(ogr.FieldDefn('MAX_H', ogr.OFTReal))
    return layer
Create shapefile layer. Used for temporary and segments shp
Create shapefile layer. Used for temporary and segments shp
Create shapefile layer . Used for temporary and segments shp
def create_layer(ds, epsg=2178):
    srs = osr.SpatialReference()
    srs.ImportFromEPSG(epsg)
    layer = ds.CreateLayer('segments.shp', srs, ogr.wkbPolygon)
    layer.CreateField(ogr.FieldDefn('SEG_NB', ogr.OFTInteger))
    layer.CreateField(ogr.FieldDefn('MAX_H', ogr.OFTReal))
    return layer
def create_layer ( ds , epsg = 2178 ) : srs = osr . SpatialReference ( ) srs . ImportFromEPSG ( epsg ) layer = ds . CreateLayer ( 'segments.shp' , srs , ogr . wkbPolygon ) layer . CreateField ( ogr . FieldDefn ( 'SEG_NB' , ogr . OFTInteger ) ) layer . CreateField ( ogr . FieldDefn ( 'MAX_H' , ogr . OFTReal ) ) return layer
Create shapefile layer.
Create shapefile layer .
"""Create shapefile layer. Used for temporary and segments shp"""
ds
epsg