Package gistoolkit.features

Examples of gistoolkit.features.Point


        setEasting(400000);
        setNorthing(100000);
    }
       
    public Object[] degreeToSquare(double lat, double lon) {
        Point tempPoint = new Point(lon, lat);
        projectForward(tempPoint);
        int easting = (int) (tempPoint.getX() + 0.5);
        int northing = (int) (tempPoint.getY() + 0.5);
        int posx = easting / 500000;
        int posy = northing / 500000;
        String gridSquares = "VWXYZQRSTULMNOPFGHJKABCDE";
        StringBuffer returnSquare = new StringBuffer();
       
View Full Code Here


        }
       
        double lat = Double.parseDouble(arg[0]);
        double lon = Double.parseDouble(arg[1]);
       
        Point tempPoint = new Point(lon, lat);
        tempBNP.projectForward(tempPoint);
       
        System.out.println("latitude:          " + lat);
        System.out.println("longitude:         " + lon);
        System.out.println();
        System.out.println("full easting:      " + tempPoint.getX());
        System.out.println("full northing:     " + tempPoint.getY());
        System.out.println();
       
        Object[] square = tempBNP.degreeToSquare(lat, lon);
        System.out.println("square designator: " + square[0]);
        System.out.println("square easting:    " + square[1]);
View Full Code Here

        Ellipsoid tempToEllipsoid = EllipsoidFactory.getEllipsoid("WGS 84");
       
        // convert arc seconds to radians
        double rz = 0.554/(60*60);
        PositionVectorTransform myTransform = new PositionVectorTransform(tempFromEllipsoid, tempToEllipsoid, 0, 0, 4.5, 0, 0, rz, 0.219);
        Point tempPoint = new Point(4, 55);
        System.out.println("X = "+tempPoint.getX());
        System.out.println("Y = "+tempPoint.getY());
        myTransform.forward(tempPoint);
        System.out.println("X = "+tempPoint.getX());
        System.out.println("Y = "+tempPoint.getY());
        myTransform.reverse(tempPoint);
        System.out.println("X = "+tempPoint.getX());
        System.out.println("Y = "+tempPoint.getY());
    }
View Full Code Here

TOP

Related Classes of gistoolkit.features.Point

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.