Andrea Aime wrote: > > > I think this is the problem. The style builder is meant to whip > up a style very quickly, it's not a factory that gives you > back empty objects, if you don't tell it what to do it fill in the > blanks. > In particular this will return a graphic with the default mark > inside, which is a gray square. > Since it can be rendered, the alternative graphics you're adding > after it won't even be considered (as per SLD rules, the first > mark/external that renders is used, usually the setup is > the opposite, first an external graphics that may fail to > be retrieved, then a Mark that will always render as a fallback). > > > Try graphic.graphicalSymbolols().clear and then add your external > graphic. > >
Oh, thank a lot to all of you guys, now its finaly worked! Specialy thanks Andrea for your explanations! Another one question about setting size of the image. I use graphic.setSize(filterFactory.literal(*some value*)) - its worked. But what meaning of the value passed to this method? Looks like height of the image in pixels, is it right? Thanks, Michael Grain -- View this message in context: http://n2.nabble.com/ExternalGraphics-gray-squares-instead-images-tp4914506p4917250.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
