You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
osgEarth: 3.1
The text was updated successfully, but these errors were encountered:
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
changed the title
How render point features with FeatureImageLayer?
Feature Request: render point features with FeatureImageLayer
Oct 20, 2023
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:
I wanted to know how to render the point features with FeatureImageLayer. Please help me.
I only wanted this map like this after rendered.
osgEarth: 3.1
The text was updated successfully, but these errors were encountered: