|
From: David Z. <dz...@re...> - 2004-10-05 15:32:55
|
Hi John, My first inclination is to make a sub-class of GeometryAttributeType in VPF, and then you can look for this GeometryAttributeType in your renderer. This would allow VPF to continue to produce both geometrys and textGeometrys. I'm going to point you to the org.geotools.feature.AttributeType and org.geotools.feature.GeometryAttributeType. Hope this helps you get started, David On Tue, 2004-10-05 at 08:13, John Meagher wrote: > I'm working on the VPF implementation and am running into a problem with > the VPF Text Primitives. These are "features" defined a point, line, or > line and control points that define where some text should be drawn. As > a quick hack I wrote something that would take these points and return > them as a LineString geometry. The text that should be drawn is > available as an attribute of the feature. This definitely feels very > hackish. > > 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. > > This problem is compounded for me because I'm allowing any DataStore to > be used (using DataStoreFinder) and then using my own rendering code. > In that rendering code I need a way to determine in some automatic way > that this is a text feature. > > So any thoughts on some general indicator signifying that the geometry > is really the text that should be drawn and the feature's geometry > should be used as a guideline for how to draw it. This could be an > attribute (text_geomtry) containing the text that should be displayed or > indicating the attribute name used to get the text. > > > > > ------------------------------------------------------- > 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 |