Package org.opengis.referencing.crs

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


        if (crs == null) {
            LOGGER.warning("Creating feature type " + qualifiedName
                    + ": the geometry attribute does not supply a coordinate reference system");
        } else {
            LOGGER.info("Creating the SeCoordRef object for CRS " + crs);
            WKT = crs.toWKT();
            coordref.setCoordSysByDescription(WKT);
        }

        SeExtent validCoordRange = null;
View Full Code Here


      }
      CoordinateReferenceSystem tempcrs = crsReader.getCoordinateReferenceSystem();
      if (tempcrs == null) {
        // use the default crs
        tempcrs = AbstractGridFormat.getDefaultCRS();
        LOGGER.log(Level.FINE,new StringBuilder("Unable to find a CRS for this coverage, using a default one: ").append(tempcrs.toWKT()).toString());
      }
      //
     
      //
      // Load properties file with information about levels and envelope
View Full Code Here

        GeographicCRS base = DefaultGeographicCRS.WGS84;
        MathTransform mt   = factory.createParameterizedTransform(parameters);
        CartesianCS cs = DefaultCartesianCS.PROJECTED;
        CoordinateReferenceSystem crs = new DefaultProjectedCRS("Lambert", base, mt, cs);

        final String wkt = crs.toWKT();
        assertTrue(wkt.contains("semi_major"));
        assertTrue(wkt.contains("semi_minor"));
        final Parser parser = new Parser();
        CoordinateReferenceSystem check = parser.parseCoordinateReferenceSystem(wkt);
        assertEquals(wkt, check.toWKT());
View Full Code Here

        final String wkt = crs.toWKT();
        assertTrue(wkt.contains("semi_major"));
        assertTrue(wkt.contains("semi_minor"));
        final Parser parser = new Parser();
        CoordinateReferenceSystem check = parser.parseCoordinateReferenceSystem(wkt);
        assertEquals(wkt, check.toWKT());
    }

    /**
     * Tests parsing of math transforms.
     */
 
View Full Code Here

          description.append(size.getSpan(0));
          description.append(", ");
          description.append(size.getSpan(1));
          description.append("\nCoordinate System is:\n");
          CoordinateReferenceSystem crs = reader.getCrs();
          description.append( crs.toWKT() );
         
          GeneralEnvelope bbox = reader.getOriginalEnvelope();         
          description.append("\nOrigion = ( ");
          DirectPosition lower = bbox.getLowerCorner();
         
View Full Code Here

    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

            + "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

    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

    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

    // 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

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.