Package org.opengis.referencing.crs

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


            }
            if (crs != null) {
                memento.putString(CRS, encode(crs.toWKT()));
            }
            if (reproject != null) {
                memento.putString(REPOJECT, encode(reproject.toWKT()));
            }
            if (handle != null) {
                memento.putString(HANDLE, encode(handle));
            }
            if (maxFeature != Integer.MAX_VALUE) {
View Full Code Here


            }
            if (crs != null) {
                memento.putString(CRS, encode(crs.toWKT()));
            }
            if (reproject != null) {
                memento.putString(REPOJECT, encode(reproject.toWKT()));
            }
            if (handle != null) {
                memento.putString(HANDLE, encode(handle));
            }
            if (maxFeature != Integer.MAX_VALUE) {
View Full Code Here

                });

                CoordinateReferenceSystem readCrs = crsChooser.getCrs();
                if (readCrs != null) {
                    BufferedWriter bWriter = new BufferedWriter(new FileWriter(projFile));
                    String crsString = readCrs.toWKT();
                    bWriter.write(crsString);
                    bWriter.close();
                } else {
                    return false;
                }
View Full Code Here

        st.setDouble(index + 2, box.getMaxX());
        st.setDouble(index + 3, box.getMaxY());

        if (box.getCoordinateReferenceSystem() != null) {
            CoordinateReferenceSystem crs = box.getCoordinateReferenceSystem();
            st.setBlob(index + 4, Hibernate.createBlob(crs.toWKT().getBytes()));
        } else {
            st.setBlob(index + 4, (Blob) null);
        }
    }
View Full Code Here

        assertFalse(window.isShown());
       
        tester.clickLink("form:crs:wkt", true);
        assertTrue(window.isShown());
       
        tester.assertModelValue("form:crs:popup:content:wkt", crs.toWKT());
    }
   
    public void testPopupWindowNoCRS() throws Exception {
        // see GEOS-3207
        tester.startPage( new CRSPanelTestPage() );
View Full Code Here

            }
            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

    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

      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

            } 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

                } 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

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.