Esempio n. 1
0
File: osr.go Progetto: kikht/gdal
// Initialize SRS based on EPSG code, using EPSG lat/long ordering
func (sr SpatialReference) FromEPSGA(code int) error {
	err := C.OSRImportFromEPSGA(sr.cval, C.int(code))
	if err != 0 {
		return error(err)
	}

	return nil
}
Esempio n. 2
0
File: osr.go Progetto: sn-amber/gdal
// Initialize SRS based on EPSG code, using EPSG lat/long ordering
func (sr SpatialReference) FromEPSGA(code int) error {
	return C.OSRImportFromEPSGA(sr.cval, C.int(code)).Err()
}