theunsgis wrote:
> HI All
> Can somebody please point me in the right direction , or give some advice
>
> I would like to give a graphic to a point symbolizer , to be displayed on
> the map , this graphic is not stored locally in a jpg or png format , it is
> generated dynamically.
>
> The graphic is compiled dynamically in memory , according to certain
> parameters from a series of characters in a special font. The characters is
> overlaid over each other on a canvas to create the graphic dynamically ,
> almost like wingdings.
>   
This is a common request - I have get one like it each month:
Option 1: Java only solution
- beginner: make a dynamic URL that calls a webservice (recommended 
since you want to just get it done)
- advanced: make a dynamic URL using own URL format, URL connection can 
return the BufferedImage as the source. Straight forward; the rendering 
code just expects an Image to pop out of the URL connection so this is 
pretty easy to do (and is preferable to writing stuff out to disk). I 
assume that there is something about your feature (an attribute) that 
says which graphic to display.

Option 2: GeoTools only solution
- beginner: make a GeoTools function that generates an image
- advanced: the SLD specification allows for marks representing graphics 
that are "well known" to the renderer. They uses some examples like 
circle, square and so on  but... you could teach the GeoTools renderer 
about your graphics. This is the approach taken for MIL2525B symbols in 
GeoTools; the work was experimental at the time and released to the 
public. Myself (or several other consultants) could make this happen for 
you in short order.

Option 1 should make sense to you, Option 2 would involve reading the 
developers guide a bit (on how to add a new plugin) and diving in to the 
geotools render.

Cheers,
Jody


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to