// Import coordinate system from a URL func (sr SpatialReference) FromURL(url string) error { cURL := C.CString(url) defer C.free(unsafe.Pointer(cURL)) err := C.OSRImportFromXML(sr.cval, cURL) if err != 0 { return error(err) } return nil }
// Import coordinate system from XML format (GML only currently) func (sr SpatialReference) FromXML(xml string) error { cXml := C.CString(xml) defer C.free(unsafe.Pointer(cXml)) err := C.OSRImportFromXML(sr.cval, cXml) if err != 0 { return error(err) } return nil }
// Import coordinate system from a URL func (sr SpatialReference) FromURL(url string) error { cURL := C.CString(url) defer C.free(unsafe.Pointer(cURL)) return C.OSRImportFromXML(sr.cval, cURL).Err() }
// Import coordinate system from XML format (GML only currently) func (sr SpatialReference) FromXML(xml string) error { cXml := C.CString(xml) defer C.free(unsafe.Pointer(cXml)) return C.OSRImportFromXML(sr.cval, cXml).Err() }