Skip to content

How to get the height of a building? #2607

Discussion options

You must be logged in to vote

In this case, the height is in the story_ht_ attribute, as you can see in the heightExpression.

osg::ref_ptr<FeatureCursor> cursor = data->createFeatureCursor();
while(cursor->hasMore()) {
    Feature* feature = cursor->nextFeature();
    auto height_in_stories = feature->getDouble("story_ht_");
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@luohuiiqng
Comment options

Comment options

You must be logged in to vote
1 reply
@luohuiiqng
Comment options

Answer selected by luohuiiqng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants