Commit ae8ccf9c authored by Julien Osman's avatar Julien Osman

FIX: Remove dependency to GDAL3 methods. Add my email to .mailmap file.

parent d3501c26
Pipeline #4145 passed with stages
in 16 minutes and 44 seconds
......@@ -54,6 +54,7 @@ Julien Malik <julien.malik@c-s.fr> Julien Malik <julien.m
Julien Michel <julien.michel@cnes.fr>
Julien Michel <julien.michel@cnes.fr> Julien Michel <julien.michel@c-s.fr>
Julien Michel <julien.michel@cnes.fr> Julien Michel <julien.michel@orfeo-toolbox.org>
Julien Osman <julien.osman@c-s.fr>
Laurențiu Nicola <lnicola@dend.ro> Laurentiu Nicola <lnicola@dend.ro>
Laurențiu Nicola <lnicola@dend.ro> Laurențiu Nicola <grayshade@gmail.com>
Luc Hermitte <luc.hermitte@c-s.fr> Luc Hermitte <luc.hermitte@cnes.fr>
......
......@@ -176,11 +176,6 @@ public:
*/
static void UTMFromGeoPoint(double lon, double lat, unsigned int& zone, hemisphere& hem);
/**
* Returns the internal OGRSpatialReference
*/
OGRSpatialReference* getOGRSpatialReference();
private:
/// Constructor from wrapped type. ref will be cloned.
SpatialReference(const OGRSpatialReference* ref);
......
......@@ -294,11 +294,6 @@ void SpatialReference::UTMFromGeoPoint(double lon, double lat, unsigned int& zon
assert(zone <= 60);
}
OGRSpatialReference* SpatialReference::getOGRSpatialReference()
{
return m_SR.get();
}
#if GDAL_VERSION_NUM >= 3000000
void SpatialReference::SetAxisMappingStrategy(OSRAxisMappingStrategy strategy)
{
......
......@@ -1176,7 +1176,7 @@ void GDALImageIO::Write(const void* buffer)
if (m_epsgCode != 0)
{
auto spatialReference = SpatialReference::FromEPSG(m_epsgCode);
m_Dataset->GetDataSet()->SetSpatialRef(spatialReference.getOGRSpatialReference());
m_Dataset->GetDataSet()->SetProjection(spatialReference.ToWkt().c_str());
}
// Convert buffer from void * to unsigned char *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment