Examples of toWKT()


Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

    System.out.println(phone);
}

private void wkt() {
    CoordinateReferenceSystem crs = DefaultGeographicCRS.WGS84;
    System.out.println(crs.toWKT());
}

private void exampleRange() {
    // exampleRange start
    // simple range of one value
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

            + "PARAMETER[\"false_easting\", 500000.0], " + "PARAMETER[\"false_northing\", 0.0], "
            + "UNIT[\"metre\",1.0], " + "AXIS[\"x\",EAST], " + "AXIS[\"y\",NORTH]]";
   
    CoordinateReferenceSystem crs = crsFactory.createFromWKT(wkt);
    // creatCRSFromWKT end
    System.out.println("  CRS: " + crs.toWKT());
    System.out.println("Identified CRS object:");
    printIdentifierStuff(crs);
    System.out.println("Identified Datum object:");
    printIdentifierStuff(((ProjectedCRS) crs).getDatum());
    System.out.println("------------------------------------------");
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

    String code = "26910";
    CRSAuthorityFactory crsAuthorityFactory = ReferencingFactoryFinder.getCRSAuthorityFactory(
            "EPSG", null);
    CoordinateReferenceSystem crs = crsAuthorityFactory.createCoordinateReferenceSystem(code);
    // createFromEPSGCode2 end
    System.out.println("  CRS: " + crs.toWKT());
    System.out.println("Identified CRS object:");
    printIdentifierStuff(crs);
    System.out.println("------------------------------------------");
}
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

    System.out.println("------------------------------------------");
    System.out.println("Creating a CRS from an authority factory:");
    // createFromEPSGCode start
    CoordinateReferenceSystem crs = CRS.decode("EPSG:26910", false);
    // createFromEPSGCode end
    System.out.println("  CRS: " + crs.toWKT());
    System.out.println("Identified CRS object:");
    printIdentifierStuff(crs);
    System.out.println("------------------------------------------");
}
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

    // renderer
    map.clear();
    map.put("name", "Output Cartesian CS");
    CoordinateReferenceSystem geocentricCRS = crsFactory.createGeocentricCRS(map, wgs84Datum,
            worldCS);
    System.out.println("Geocentric CRS: " + geocentricCRS.toWKT());
   
    //
    // Create a geograyhic CRS for the Airy 1830 ellipsoid
    // map.clear();
    // map.put("name", "Airy 1830");
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

}

public void toWKT() throws Exception {
    // toWKT start
    CoordinateReferenceSystem crs = CRS.decode("EPSG:32735");
    String wkt = crs.toWKT();
    System.out.println("wkt for EPSG:32735");
    System.out.println( wkt );
    // toWKT end
}
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

        //have doubts about following line, was the commented out 2nd clause to condition doing anything - colin      
        if (bcrs.equals(wgs84crs)) {    // || bcrs.equals(CRSUtils.WGS84_PROJ)) {
        return dp;
      }
        //again, what does the follllowing achieve? - colin
      if (bcrs.toWKT().indexOf("WGS84") > -1) {
        return dp;
      }
      if (bcrs instanceof GeographicCRS) {
        if (((GeographicCRS) bcrs).getDatum().equals(wgs84crs.getDatum())) {
          return dp;
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

     */
    private void showCRS() {
        if (mapPane != null && mapPane.getMapContent() != null) {
            CoordinateReferenceSystem crs = mapPane.getMapContent().getCoordinateReferenceSystem();
            JTextReporter.showDialog("Coordinate reference system",
                    crs.toWKT(),
                    JTextReporter.FLAG_MODAL);
        }
    }
}
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

            st.setNull(index, Types.VARCHAR);
        }
        else {
            CoordinateReferenceSystem crs = (CoordinateReferenceSystem) value;
            try {
                st.setString(index, storeAsWKT ? crs.toWKT() : "EPSG:"+CRS.lookupEpsgCode(crs, true));
            }
            catch(Exception e) {
                throw new RuntimeException(e);
            }
        }
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem.toWKT()

            }
            catch (FactoryException e) {
                XStreamPersister.LOGGER.warning( "Could not determine epsg code of crs, encoding as WKT");
            }
           
            return crs.toWKT();
        }
       
        @Override
        public Object fromString(String str) {
            if ( str.toUpperCase().startsWith( "EPSG:") ) {
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.