Examples of GeometryJSON


Examples of org.geotools.geojson.geom.GeometryJSON

    super(resultPropertyName);
 

  @Override 
  protected GeoPipeFlow process(GeoPipeFlow flow) {
    GeometryJSON json = new GeometryJSON();
    setProperty(flow, json.toString(flow.getGeometry()));
    return flow;
 
View Full Code Here

Examples of org.geotools.geojson.geom.GeometryJSON

            super(Geometry.class);
        }

        @Override
        public void encode(Object value, OutputStream os) throws IOException {
            GeometryJSON json = new GeometryJSON();
            json.write((Geometry) value, os);
        }
View Full Code Here

Examples of org.geotools.geojson.geom.GeometryJSON

            json.write((Geometry) value, os);
        }

        @Override
        public Object decode(InputStream input) throws Exception {
            return new GeometryJSON().read(input);
        }
View Full Code Here

Examples of org.geotools.geojson.geom.GeometryJSON

            return new GeometryJSON().read(input);
        }

        @Override
        public Object decode(String input) throws Exception {
            return new GeometryJSON().read(input);
        }
View Full Code Here

Examples of org.geotools.geojson.geom.GeometryJSON

             "</wps:Execute>";
         
          MockHttpServletResponse response = postAsServletResponse( "wps", xml );
          // System.out.println(response.getOutputStreamContent());
          assertEquals("application/json", response.getContentType());
          Geometry g = new GeometryJSON().read(response.getOutputStreamContent());
          assertTrue(g instanceof Polygon);
  }
View Full Code Here

Examples of org.geotools.geojson.geom.GeometryJSON

        String geometry = form.getFirstValue("geometry");
        if (geometry == null) {
            return Filter.INCLUDE;
        } else {
            try {
                Geometry geom = new GeometryJSON().read(geometry);
                final double tolerance = getTolerance(form);
                return geometryFilter(schema, geom, tolerance);
            } catch (IOException e) {
                throw new RestletException("Could not parse the geometry geojson: "
                        + e.getMessage(), Status.CLIENT_ERROR_BAD_REQUEST);
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.