Skip to content

Commit

Permalink
Allow cesium builds to use laszip as their primary output.
Browse files Browse the repository at this point in the history
  • Loading branch information
connormanning committed Jul 12, 2017
1 parent 2c6408c commit da88b83
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
1 change: 0 additions & 1 deletion config/cesium-truncated.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"absolute": true,
"reprojection": {
"out": "EPSG:4978"
},
Expand Down
1 change: 0 additions & 1 deletion config/cesium.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"absolute": true,
"reprojection": {
"out": "EPSG:4978"
},
Expand Down
22 changes: 18 additions & 4 deletions entwine/formats/cesium/tile-builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,27 @@ void TileBuilder::push(std::size_t rawTick, const Cell& cell)
const std::size_t tick(rawTick / m_divisor);
auto& selected(m_data.at(tick));

const auto delta(m_metadata.delta());

for (const auto& single : cell)
{
m_table.setPoint(single);
selected.points.emplace_back(
cell.point().x,
cell.point().y,
cell.point().z);
if (delta)

{
selected.points.emplace_back(
Point::unscale(
cell.point(),
delta->scale(),
delta->offset()));
}
else
{
selected.points.emplace_back(
cell.point().x,
cell.point().y,
cell.point().z);
}

if (m_hasColor)
{
Expand Down
1 change: 0 additions & 1 deletion entwine/tree/config-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ std::unique_ptr<Builder> ConfigParser::getBuilder(

if (cesiumSettings)
{
absolute = true;
json["reprojection"]["out"] = "EPSG:4978";
}

Expand Down

0 comments on commit da88b83

Please sign in to comment.