Skip to content

Commit

Permalink
don't override m_coordId to 0 if it is already set in the case of 'au…
Browse files Browse the repository at this point in the history
…to' being true
  • Loading branch information
hobu committed Nov 1, 2024
1 parent 1f7b059 commit 33f217f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions io/BpfWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ void BpfWriter::readyFile(const std::string& filename,

if (m_coordId.m_auto)
{
m_header.m_coordId = 0;
if (m_header.trySetSpatialReference(srs))
m_header.m_coordType = Utils::toNative(BpfCoordType::UTM);
if (!m_header.m_coordId)
{
if (m_header.trySetSpatialReference(srs))
m_header.m_coordType = Utils::toNative(BpfCoordType::UTM);
}
}

// We will re-write the header and dimensions to account for the point
Expand Down

0 comments on commit 33f217f

Please sign in to comment.