Example #1
0
File: osr.go Project: kikht/gdal
// Set EPSG authority info if possible
func (sr SpatialReference) AutoIdentifyEPSG() error {
	err := C.OSRAutoIdentifyEPSG(sr.cval)
	if err != 0 {
		return error(err)
	}

	return nil
}
Example #2
0
// Set EPSG authority info if possible
func (sr SpatialReference) AutoIdentifyEPSG() error {
	errorCode := int(C.OSRAutoIdentifyEPSG(sr.cval))
	if errorCode != 0 {
		return fmt.Errorf("Error code %d", errorCode)
	} else {
		return nil
	}
}
Example #3
0
File: osr.go Project: sn-amber/gdal
// Set EPSG authority info if possible
func (sr SpatialReference) AutoIdentifyEPSG() error {
	return C.OSRAutoIdentifyEPSG(sr.cval).Err()
}