-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line Features pick #2701
Comments
Don't forget the answer the questions in the Issue Template. |
Hi! While inside the OGR Feature definition I have the following line to enable pickability: Nevertheless, I'm not tagging my drawables, what is that about? I'm applying the feature through a shapefile that contains different segments, each segment has a unique attribute called segment_id. Thank you again for the support. |
Since you're using an earth file, there is no tagging required; that's an API thing. You may need to tell osgEarth that you want your <OGRFeatures>
<fid_attribute>segment_id</fid_attribute>
.... |
You probably forget to register the geometry in objectid pool before trying to pick (i did it also), otherwise it would work. |
Hello everyone!
I'm trying to implement a pointer function that allows the user to pick features from the map.
Here is how it looks like:
Now, this code works perfectly fine for Point Features but it doesn't for Line Features.
In particular, the pick function is called while hovering a custom map cursor over a feature.
With Point Features, I can correctly retrieve the ObjectID for the feature while with Line Features, the ObjectID that gets retrieved is always equal to 0, meaning that the feature is not recognized.
Would anyone have a solution for this or any hint that could possibly put me on the right track?
Thank you very much.
Best Regards
The text was updated successfully, but these errors were encountered: