Examples of minY()


Examples of org.geotools.data.ogr.bridj.OGREnvelope.MinY()

                int code = OGR_L_GetExtent(layer, boundsPtr, 0);
                if (code == OGRERR_FAILURE) {
                    return null;
                } else {
                    OGREnvelope bounds = boundsPtr.get();
                    return new ReferencedEnvelope(bounds.MinX(), bounds.MaxX(), bounds.MinY(),
                            bounds.MaxY(), crs);
                }
            } finally {
                OGRUtils.releaseLayer(layer);
                OGRUtils.releaseDataSource(dataSource);
View Full Code Here

Examples of org.geotools.data.shapefile.shp.ShapefileHeader.minY()

        IndexFile shpIndex = new IndexFile(shpFiles, false);
        QuadTree tree = null;
        int cnt = 0;
        int numRecs = shpIndex.getRecordCount();
        ShapefileHeader header = reader.getHeader();
        Envelope bounds = new Envelope(header.minX(), header.maxX(), header
                .minY(), header.maxY());

        tree = new QuadTree(numRecs, max, bounds, shpIndex);
        try {
            Record rec = null;
View Full Code Here

Examples of org.geotools.data.shapefile.shp.ShapefileHeader.minY()

                header.read(buffer, true);

                SimpleFeatureType schema = getSchema();
                ReferencedEnvelope bounds = new ReferencedEnvelope(
                        schema.getCoordinateReferenceSystem());
                bounds.include(header.minX(), header.minY());
                bounds.include(header.minX(), header.minY());

                Envelope env = new Envelope(header.minX(), header.maxX(), header.minY(),
                        header.maxY());
View Full Code Here

Examples of org.geotools.data.shapefile.shp.ShapefileHeader.minY()

                SimpleFeatureType schema = getSchema();
                ReferencedEnvelope bounds = new ReferencedEnvelope(
                        schema.getCoordinateReferenceSystem());
                bounds.include(header.minX(), header.minY());
                bounds.include(header.minX(), header.minY());

                Envelope env = new Envelope(header.minX(), header.maxX(), header.minY(),
                        header.maxY());

                CoordinateReferenceSystem crs = null;
View Full Code Here

Examples of org.geotools.data.shapefile.shp.ShapefileHeader.minY()

                ReferencedEnvelope bounds = new ReferencedEnvelope(
                        schema.getCoordinateReferenceSystem());
                bounds.include(header.minX(), header.minY());
                bounds.include(header.minX(), header.minY());

                Envelope env = new Envelope(header.minX(), header.maxX(), header.minY(),
                        header.maxY());

                CoordinateReferenceSystem crs = null;
                if (schema != null) {
                    crs = schema.getCoordinateReferenceSystem();
View Full Code Here

Examples of org.geotools.geometry.jts.ReferencedEnvelope.minY()

        FeatureTypeInfo info = getCatalog()
                .getFeatureTypeByName(MockData.CITE_URI, "point_test_3d");

        ReferencedEnvelope b = info.getLatLonBoundingBox();
        String bbox = b.minX() + "," + b.minY() + "," + b.maxX() + "," + b.maxY()
                + "&srs=EPSG:4326";

        // first request against 2D dataset
        String layer2d = getLayerId(POINT_TEST_2D);
        String base2d = "wms?version=1.1.1&format=png&info_format=text/html&request=GetFeatureInfo&layers="
View Full Code Here

Examples of org.terasology.math.Rect2f.minY()

                textureMat.setFloat2("scale", scale);
                textureMat.setFloat2("offset",
                        absoluteRegion.minX(),
                        absoluteRegion.minY());

                textureMat.setFloat2("texOffset", textureArea.minX() + ux * textureArea.width(), textureArea.minY() + uy * textureArea.height());
                textureMat.setFloat2("texSize", uw * textureArea.width(), uh * textureArea.height());
                break;
            }
            case SCALE_FILL: {
                textureMat.setFloat2("offset", absoluteRegion.minX(), absoluteRegion.minY());
View Full Code Here

Examples of org.terasology.math.Rect2f.minY()

                float texBorderX = (scale.x - absoluteRegion.width()) / scale.x * uw;
                float texBorderY = (scale.y - absoluteRegion.height()) / scale.y * uh;

                textureMat.setFloat2("texOffset", textureArea.minX() + (ux + 0.5f * texBorderX) * textureArea.width()
                        , textureArea.minY() + (uy + 0.5f * texBorderY) * textureArea.height());
                textureMat.setFloat2("texSize", (uw - texBorderX) * textureArea.width(), (uh - texBorderY) * textureArea.height());
                break;
            }
            default: {
                textureMat.setFloat2("scale", scale);
View Full Code Here

Examples of org.terasology.math.Rect2f.minY()

                textureMat.setFloat2("scale", scale);
                textureMat.setFloat2("offset",
                        absoluteRegion.minX() + 0.5f * (absoluteRegion.width() - scale.x),
                        absoluteRegion.minY() + 0.5f * (absoluteRegion.height() - scale.y));

                textureMat.setFloat2("texOffset", textureArea.minX() + ux * textureArea.width(), textureArea.minY() + uy * textureArea.height());
                textureMat.setFloat2("texSize", uw * textureArea.width(), uh * textureArea.height());
                break;
            }
        }

View Full Code Here

Examples of org.terasology.math.Rect2f.minY()

        }
        textureMat.setFloat2("scale", region.width(), region.height());
        textureMat.setFloat2("offset", region.minX(), region.minY());

        Rect2f textureArea = texture.getRegion();
        textureMat.setFloat2("texOffset", textureArea.minX() + ux * textureArea.width(), textureArea.minY() + uy * textureArea.height());
        textureMat.setFloat2("texSize", uw * textureArea.width(), uh * textureArea.height());

        textureMat.setTexture("texture", texture.getTexture());
        textureMat.setFloat4("color", 1, 1, 1, alpha);
        textureMat.bindTextures();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.