Exemplo n.º 1
0
Arquivo: osr.go Projeto: kikht/gdal
// Set State Plane projection definition
func (sr SpatialReference) SetStatePlane(zone int, nad83 bool) error {
	err := C.OSRSetStatePlane(sr.cval, C.int(zone), BoolToCInt(nad83))
	if err != 0 {
		return error(err)
	}

	return nil
}
Exemplo n.º 2
0
Arquivo: osr.go Projeto: sn-amber/gdal
// Set State Plane projection definition
func (sr SpatialReference) SetStatePlane(zone int, nad83 bool) error {
	return C.OSRSetStatePlane(sr.cval, C.int(zone), BoolToCInt(nad83)).Err()
}