Beispiel #1
0
Datei: osr.go Projekt: kikht/gdal
// Initialize SRS based on EPSG code
func (sr SpatialReference) FromEPSG(code int) error {
	err := C.OSRImportFromEPSG(sr.cval, C.int(code))
	if err != 0 {
		return error(err)
	}

	return nil
}
Beispiel #2
0
// Initialize SRS based on EPSG code
func (sr SpatialReference) FromEPSG(code int) error {
	return C.OSRImportFromEPSG(sr.cval, C.int(code)).Err()
}