Examples of toWKT()


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

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

    String result = null;

    try {
      CoordinateReferenceSystem crs = SpatialReferenceManager.wkidToCRS(
          wkid, false);
      String wkt = crs.toWKT();

      // Various out format
      if ("json".equals(f)) {
        result = this.generateJSONResult(wkid, wkt);
      } else if ("html".equals(f)) {
View Full Code Here

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

      long startTime = System.currentTimeMillis(), endTime = startTime, debugInterval = 60000, nextDebugTime = startTime + debugInterval;
      int featureCount = 0;

      reader = dataStore.getFeatureReader();
      CoordinateReferenceSystem projection = schema.getCoordinateReferenceSystem(); // may be null
      String projectionWKT = projection == null ? null : projection.toWKT();
     
      while (reader.hasNext())
      {
        endTime = System.currentTimeMillis();
        if (GeometryStreamConverter.debugTime && endTime > nextDebugTime)
View Full Code Here

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

            } else {
                final String wkt;
                if (crs instanceof Formattable) {
                    wkt = ((Formattable) crs).toWKT(Formattable.SINGLE_LINE);
                } else {
                    wkt = crs.toWKT();
                }
                data.writeBoolean(false);
                data.writeUTF(wkt);
            }
        }
View Full Code Here

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

                } else {
                    final String wkt;
                    if (crs instanceof Formattable) {
                        wkt = ((Formattable) crs).toWKT(Formattable.SINGLE_LINE);
                    } else {
                        wkt = crs.toWKT();
                    }
                    data.writeBoolean(false);
                    data.writeUTF(wkt);
                }
            }
View Full Code Here

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

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

      }
      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

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

        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

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

        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

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

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