Example #1
0
File: osr.go Project: kikht/gdal
// Copy geographic CS from another spatial reference
func (sr SpatialReference) CopyGeographicCSFrom(other SpatialReference) error {
	err := C.OSRCopyGeogCSFrom(sr.cval, other.cval)
	if err != 0 {
		return error(err)
	}

	return nil
}
Example #2
0
File: osr.go Project: sn-amber/gdal
// Copy geographic CS from another spatial reference
func (sr SpatialReference) CopyGeographicCSFrom(other SpatialReference) error {
	return C.OSRCopyGeogCSFrom(sr.cval, other.cval).Err()
}