Beispiel #1
0
Datei: osr.go Projekt: 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
}
Beispiel #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
	}
}
Beispiel #3
0
// Set EPSG authority info if possible
func (sr SpatialReference) AutoIdentifyEPSG() error {
	return C.OSRAutoIdentifyEPSG(sr.cval).Err()
}