Package com.vividsolutions.jts.geom.util

Examples of com.vividsolutions.jts.geom.util.AffineTransformation


            at = new AffineTransform();
        }
        ROIGeometry roiGeometry = roiCache.get(at);
        if (roiGeometry == null) {
            Geometry rescaled;
            AffineTransformation geometryAT = new AffineTransformation(at.getScaleX(), at.getShearX(), at
                    .getTranslateX(), at.getShearY(), at.getScaleY(), at.getTranslateY());
            if (inset > 0) {
                double scale = Math.min(Math.abs(at.getScaleX()), Math.abs(at.getScaleY()));
                double rescaledInset = scale * inset;
                if (rescaledInset < 1) {
View Full Code Here


        // wrap as a feature collection and return
    final SimpleFeatureType schema=CoverageUtilities.createFeatureType(gc2d,LineString.class);
        final SimpleFeatureBuilder builder = new SimpleFeatureBuilder(schema);
        int i=0;
        final ListFeatureCollection featureCollection= new ListFeatureCollection(schema);
        final AffineTransformation jtsTransformation=new AffineTransformation(
          mt2D.getScaleX(),
          mt2D.getShearX(),
          mt2D.getTranslateX(),
          mt2D.getShearY(),
          mt2D.getScaleY(),
View Full Code Here

        // wrap as a feature collection and return
    final SimpleFeatureType featureType=CoverageUtilities.createFeatureType(coverage,Polygon.class);
        final SimpleFeatureBuilder builder = new SimpleFeatureBuilder(featureType);
        int i=0;
        final ListFeatureCollection featureCollection= new ListFeatureCollection(featureType);
        final AffineTransformation jtsTransformation=new AffineTransformation(
          mt2D.getScaleX(),
          mt2D.getShearX(),
          mt2D.getTranslateX(),
          mt2D.getShearY(),
          mt2D.getScaleY(),
View Full Code Here

                //System.out.println(simplifiedGeometry.getEnvelopeInternal());
               
                // compensate for the jaitools range lookup poking the corner of the cells instead
                // of their center, this makes for odd results if the polygon is just slightly
                // misaligned with the coverage
                AffineTransformation at = new AffineTransformation();
               
                at.setToTranslation(-0.5, -0.5);
                simplifiedGeometry.apply(at);
               
                // build a shape using a fast point in polygon wrapper
                ROI roi = new ROIGeometry(simplifiedGeometry, false);
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.geom.util.AffineTransformation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.