On Tue, Jan 10, 2012 at 8:19 AM, <[email protected]> wrote:
> hi,
> i have a problem with Styles.
>
> There is a Layer with several line-strings.
> Some line-strings form Routes (are grouped).
> Each Route has one or many Logos.
>
> So if i write an Rule to display a Route i use following code:
> <Rule>
> <ogc:Filter>
> ...
> </ogc:Filter>
> <LineSymbolizer>
> <Stroke><CssParameter
> name="stroke">#630A7B</CssParameter><CssParameter
> name="stroke-width">6</CssParameter></Stroke>
> </LineSymbolizer>
> <TextSymbolizer>
> <Label>.</Label>
> <Font><CssParameter name="font-size">0</CssParameter></Font>
> <Graphic>
> <ExternalGraphic>
> <OnlineResource xlink:type="simple"
> xlink:href="logo/logo1.png"
> xmlns:xlink="http://www.w3.org/1999/xlink <#134c67c7acd2b1e3_>" />
> <Format>image/png</Format>
> </ExternalGraphic>
> <Size>15</Size>
> </Graphic>
> <VendorOption name="followLine">yes</VendorOption>
> <VendorOption name="repeat">200</VendorOption>
> <VendorOption name="maxAngleDelta">50</VendorOption>
> <VendorOption name="group">yes</VendorOption>
> </TextSymbolizer>
> </Rule>
>
> But how can i display multiple Logos as shilds onto one Line, that each
> Logo is following the Line.
>
> I have tried to use "Spaced graphic symbols" but then the shilds would
> overlap with others.
>
The current code allows for only a single road plate, to make it work in
your case you'd
have to build a png file for each possible logo combination.
Changing the code to allow for multiple logos is going to be possible, but
not trivial,
multiple bits of code in GeoTools need to be modified: the classes
representing the
styles, the style parser and encoder, the classes representing the styles
in the
internal, awt optimized format, and the label painter.
If you are interested I can point you to the relevant bits, or you can look
at geoserver.org
for the commercial support option and have some core developer do the work
for you.
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users