Beispiel #1
0
Datei: osr.go Projekt: 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
}
Beispiel #2
0
// 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()
}