Skip to content

Commit

Permalink
Fix names of dimensions received from ept.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Apr 2, 2021
1 parent fdee1a5 commit b3bb575
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions io/private/ept/EptInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ void EptInfo::initialize()
double scale = element.value("scale", 1.0);
double offset = element.value("offset", 0);

name = Dimension::fixName(name);
Dimension::Id id = m_remoteLayout.registerOrAssignFixedDim(name, type);
m_dims[name] = DimType(id, type, scale, offset);
}
Expand Down
4 changes: 4 additions & 0 deletions io/private/ept/TileContents.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ class TileContents
{ return m_overlap.m_key; }
point_count_t nodeId() const
{ return m_overlap.m_nodeId; }
//ABELL - This is bad. We're assuming that the actual number of points we have matches
// what our index information told us. This may not be the case because of some
// issue. Downstream handling may depend on this being the actual number of points
// in the tile, rather than the number that were *supposed to be* in the tile.
point_count_t size() const
{ return m_overlap.m_count; }
const std::string& error() const
Expand Down

0 comments on commit b3bb575

Please sign in to comment.