示例#1
0
文件: osr.go 项目: 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
}
示例#2
0
文件: osr.go 项目: 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()
}