Skip to content
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

Feature Request: render point features with FeatureImageLayer #1764

Open
GISerliang opened this issue Jul 29, 2021 · 1 comment
Open

Feature Request: render point features with FeatureImageLayer #1764

GISerliang opened this issue Jul 29, 2021 · 1 comment
Labels
request Someone asking for something

Comments

@GISerliang
Copy link

GISerliang commented Jul 29, 2021

I rendered one shapefile file of point type and I created a PointSymbol for it, but it did not show in the map.
Then I found the 'renderFeaturesForStyle' Function in FeatureImageLayer only support 'LineSymbol', 'PolygonSymbol' and 'CoverageSymbol' like this:


FeatureImageLayer::renderFeaturesForStyle(Session*           session,
                                          const Style&       style,
                                          const FeatureList& features,
                                          const GeoExtent&   imageExtent,
                                          osg::Image*        image) const
{
    OE_DEBUG << LC << "Rendering " << features.size() << " features for " << imageExtent.toString() << "\n";

    // A processing context to use with the filters:
    FilterContext context(session);
    context.setProfile(getFeatureSource()->getFeatureProfile());

    const LineSymbol*    masterLine = style.getSymbol<LineSymbol>();
    const PolygonSymbol* masterPoly = style.getSymbol<PolygonSymbol>();
    const CoverageSymbol* masterCov = style.getSymbol<CoverageSymbol>();
...

I wanted to know how to render the point features with FeatureImageLayer. Please help me.
I only wanted this map like this after rendered.
image

osgEarth: 3.1

@gwaldron gwaldron added the feature Approved feature - build it label Jul 29, 2021
@gwaldron gwaldron added this to the 3.3 milestone Jul 29, 2021
@gwaldron
Copy link
Owner

Thank you for catching this; I have tagged it for feature development.
Feel free to tackle it if you want to submit a PR; otherwise it is in the queue for 3.3.

@gwaldron gwaldron modified the milestones: 3.3, 3.4 Apr 5, 2022
@gwaldron gwaldron added request Someone asking for something and removed feature Approved feature - build it labels Oct 20, 2023
@gwaldron gwaldron changed the title How render point features with FeatureImageLayer? Feature Request: render point features with FeatureImageLayer Oct 20, 2023
@gwaldron gwaldron removed this from the 3.4 milestone Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Someone asking for something
Projects
None yet
Development

No branches or pull requests

2 participants