|
From: James M. <jma...@gm...> - 2004-10-05 17:33:28
|
FeatureTypeStylers can have a FeatureType for which they apply. We have primative support for feature type inheritance but it should be possible to set all features returned from a VPF feature source as VPFFeature. More genericaly, you could define a TextFeature type that could, in theory, be returned from any Data Store... I'm afraid using Feature Types to drive styling is rather new teritory, but it is a road we should be heading down. James On Tue, 5 Oct 2004 13:01:27 -0400, John Meagher <joh...@so...> wrote: > OK, I see how the TextSymbolizer fits in now. This still doesn't answer > the question of when it's needed. I'm trying to avoid an "if ( > dataStore instanceof VPFDataStore )..." code block. It's looking like > that's unaviodable without pushing all the work of determining how to > render things to a user. > > > > I've taken a look at the examples and have seen the > > TextSymbolizer, but > > > this appears to draw the text in addition to the geometry > > feature that's > > > drawn. For VPF the text should be drawn instead of the geometry. > > > > The examples use a TextSymbolizer AND a LineSymbolizer which is why > > both show up, if just a TextSymbolizer is used then only the text will > > be displayed. > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Geotools-devel mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-devel > |