Problem at loading images

classic Classic list List threaded Threaded
2 messages Options
Latha Latha
Reply | Threaded
Open this post in threaded view

Problem at loading images

Using gwaldron guidance to load textures i added wallstyle it is working fine,but the texture is not clear and top one layer as i inserted image  it is coming even i am not adding roofstyle.Is it polygon problem or code problem,can any body help me?

Style style;
ExtrusionSymbol* extrusion = style.getOrCreate<ExtrusionSymbol>();
extrusion->heightExpression() = NumericExpression("10 + (Math.random() * 21)"); extrusion->flatten() = true;
extrusion->wallStyleName() = "tree-wall";
extrusion->roofStyleName() = "tree-roof";
PolygonSymbol* poly = style.getOrCreate<PolygonSymbol>();
poly->fill()->color() = Color::White;
AltitudeSymbol* alt = style.getOrCreate<AltitudeSymbol>();
alt->clamping() = alt->CLAMP_TO_TERRAIN;

Style wallStyle;
SkinSymbol* wallSkin = wallStyle.getOrCreate<SkinSymbol>();
wallSkin->library() = "cochi_resources";
wallSkin->randomSeed() = 1;
StyleSheet* styleSheet = new StyleSheet();
ResourceLibrary* reslib = new ResourceLibrary("cochi_resources", RESOURCE_LIB_URL1);
FeatureDisplayLayout layout;
layout.tileSizeFactor() = 5.0f;
layout.addLevel(FeatureLevel(0.0f, 5000.0f, "parks"));
FeatureGeomModelOptions fgm_opt;
fgm_opt.featureOptions() = feature_opt;
fgm_opt.styles() = styleSheet;
map->addLayer(new ModelLayer("parks", fgm_opt));

gwaldron gwaldron
Reply | Threaded
Open this post in threaded view

Re: Problem at loading images

I'm sorry, I do not understand your question. Can you ask a different way?
Glenn Waldron / Pelican Mapping