[Geoserver-users] gradicule

Is there a way to draw (and reproject) a gradicule with the WMS....short of
creating a feature dataset the mimics a gradicule?

Thanks Again,
Steve

Stephen Crawford
Center for Environmental Informatics
GeoVISTA Center
The Pennsylvania State University
814.865.9905
src176@anonymised.com

No, but there is some code that might get you started. It'd be great if we could just add a graticule layer in, and I think the basics are done, but no integration to geoserver. There's a JIRA at: http://jira.codehaus.org/browse/GEOT-600 that has the code to do it, and a user on the list included a sample on how to use it:

Here its the code for using the module:

          MapLayer ml = null;

         GraticuleFeatureCollection gfc = null;

         try
         {
             Groperties g = new
Groperties("org/geotools/graticule/graticule-spacer.properties");
             GraticuleSpacer gs = new
GraticuleSpacer(org.geotools.referencing.crs.DefaultGeographicCRS.WGS84, new
GraticuleSpacer.DdmSpacings(g).getSpacings());
             gfc = new GraticuleFeatureCollection(gs);
             gfc.setViewport(envelope);
             gfc.setDeviceSpace(rectangle);
             ml = new DefaultMapLayer(gfc.collection(), style);
             gfc = null;
             gs = null;
             g = null;
         }
         catch(Exception ex)
         {
             ex.printStackTrace();
         }

If you're interesting in integrating in to GeoServer let me know and I'll think on how we should go about doing so...

Chris

Stephen Crawford wrote:

Is there a way to draw (and reproject) a gradicule with the WMS....short of
creating a feature dataset the mimics a gradicule?

Thanks Again,
Steve

Stephen Crawford
Center for Environmental Informatics
GeoVISTA Center
The Pennsylvania State University
814.865.9905
src176@anonymised.com

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,44a197b8117131971556521!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org