I am mostly proposing a different point of integration :-)

Here is a link to the scalebar code used in udig:
- 
http://svn.refractions.net/udig/udig/trunk/plugins/net.refractions.udig.mapgraphic/src/net/refractions/udig/mapgraphic/scalebar/

What I am actually proposing is picking up this code and making it a
GeoTools MapLayer; in a manner similar to the WMSLayer demo.

Compare:
- 
http://svn.osgeo.org/geotools/trunk/modules/library/render/src/main/java/org/geotools/map/MapLayer.java
- 
http://svn.osgeo.org/geotools/trunk/demo/mappane-use/src/main/java/org/geotools/demo/mappane/WMSMapLayer.java

Michael and I have talked about this one before...
Jody

On Tue, Mar 24, 2009 at 9:54 AM, David Winslow <[email protected]> wrote:
> I am always happy to let someone else write my code for me :)
>
> Could you point me at the source so I can copy it over and see how well
> it works with my module?
>
> thanks!
> -d
>
> On Tue, 2009-03-24 at 07:45 +1100, Jody Garnett wrote:
>> Hi David;
>>
>> I have some code for scalebar in uDig that you can grab that is well
>> tested. I have been thinking about moving it to GeoTools (as another
>> kind of layer you can add to a map context).
>>
>> Let me know if this approach has any appeal for you.
>>
>> Jody
>>
>> On Tue, Mar 24, 2009 at 2:22 AM, David Winslow <[email protected]> wrote:
>> > Hi all,
>> >
>> > For a project I'm working on, I would like to be able to request a
>> > single PNG image from GeoServer that includes not only rendered map
>> > features, but also some overlays like a scale bar and a legend graphic.
>> > I have done some work on generalizing the already-present watermark
>> > code; in particular:
>> > * separating out the layout from the rendering logic (so now the
>> > watermark painter receives just a rectangle within the viewport and
>> > draws itself into that.)
>> > * adding a parameter to the paint method so that overlay providers can
>> > do context-sensitive things (like scale bars and geographically correct
>> > compasses)
>> >
>> > Additionally, I redid the layout code a bit to support offsets and
>> > multiple overlays in the same image request.  (Attached is a demo image
>> > featuring everyone's favorite cactus monster [1]).
>> >
>> > The request is a standard WMS request specifying
>> > format=png-decorated&format_options=layout:mylayout where layout is a
>> > named configuration (currently the layout code doesn't actually read the
>> > configuration; it's just hard-coded for the demo above).  I am currently
>> > thinking the configuration should have a 1:1 relationship with xml files
>> > in ${GEOSERVER_DATA_DIR}/layouts/; a sample configuration file in the
>> > format I am currently imagining is also attached.  I'd be very
>> > interested in feedback on the configuration.
>> >
>> > So that's what I'm trying to accomplish.  Ideally, I'd like to get this
>> > into the next release, but I don't think I will be able to deal with
>> > backward compatibility with the current watermark configuration, a
>> > stable configuration file, the user requirements for promotion, etc. in
>> > time.
>> >
>> > In the meantime, I have three questions:
>> > 1) May I commit this code as a community module?
>> > 2) Where on the wiki should this be documented while this feature is
>> > still under development?
>> > 3) What's wrong with the configuration file?
>> >
>> > --
>> > David Winslow
>> > OpenGeo - http://opengeo.org/
>> >
>> > [1] http://en.wikipedia.org/wiki/Monsters_of_Final_Fantasy#Cactuar
>> >
>> > ------------------------------------------------------------------------------
>> > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
>> > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
>> > easily build your RIAs with Flex Builder, the Eclipse(TM)based development
>> > software that enables intelligent coding and step-through debugging.
>> > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
>> > _______________________________________________
>> > Geoserver-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>> >
>> >
>
>

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to