New ReferencedEnvelope.expandToInclude method with rounding
-----------------------------------------------------------

                 Key: GEOT-3009
                 URL: http://jira.codehaus.org/browse/GEOT-3009
             Project: GeoTools
          Issue Type: Improvement
            Reporter: Michael Bedward
            Assignee: Jody Garnett
         Attachments: refenv-rounding.patch

The attached patch adds the ability to expand a ReferencedEnvelope's bounds to 
include another envelope such that the resulting bounding coordinates are 
multiples of a specified resolution.

This would be useful when creating bounds for rasterized features for example...
ReferencedEnvelope featureBounds = ...
double gridCellWidth = ...
ReferencedEnvelope rasterBounds = new ReferencedEnvelope();
rasterBounds.expandToInclude( featureBounds, gridCellWidth );

If useful, it would be nice to have this in 2.6 and 2.7

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to