Examples of WKTWriter


Examples of com.vividsolutions.jts.io.WKTWriter

        return null;
    }


    private Object geomToText() {
        WKTWriter writer = new WKTWriter();
        String text = writer.write(geom);
        text = text.replaceAll("[\\n\\r\\t]", " ");
        return text;
    }
View Full Code Here

Examples of com.vividsolutions.jts.io.WKTWriter

*/
public class StSPARQLSerializer extends AbstractSerializer
{
    @Override
    public TypedLiteral toLiteral(final Geometry geo) {
        final WKTWriter writer = new WKTWriter();
        return LiteralFactory.createTypedLiteralWithoutLazyLiteralWithoutException(writer.write(geo), "<" + GeoHelper.stWktDataTypeURI + ">");
    }
View Full Code Here

Examples of com.vividsolutions.jts.io.WKTWriter

public class GeoSPARQLWktSerializer extends AbstractSerializer
{

    @Override
    public TypedLiteral toLiteral(final Geometry geo) {
        final WKTWriter writer = new WKTWriter();
        return LiteralFactory.createTypedLiteralWithoutLazyLiteralWithoutException("\"" + writer.write(geo) + "\"", "<" + GeoHelper.geoSPARQLwktDataTypeURI + ">");
   }
View Full Code Here

Examples of com.vividsolutions.jts.io.WKTWriter

   *  Features Specification.
   *
   *@return    the Well-known Text representation of this <code>Geometry</code>
   */
  public String toText() {
    WKTWriter writer = new WKTWriter();
    return writer.write(this);
  }
View Full Code Here

Examples of com.vividsolutions.jts.io.WKTWriter

   *  Features Specification.
   *
   *@return    the Well-known Text representation of this <code>Geometry</code>
   */
  public String toText() {
    WKTWriter writer = new WKTWriter();
    return writer.write(this);
  }
View Full Code Here

Examples of com.vividsolutions.jts.io.WKTWriter

    super(resultPropertyName);
 

  @Override 
  protected GeoPipeFlow process(GeoPipeFlow flow) {
    WKTWriter wktWriter = new WKTWriter();
    setProperty(flow, wktWriter.write(flow.getGeometry()));
    return flow;
 
View Full Code Here

Examples of com.vividsolutions.jts.io.WKTWriter

  public String toLongString() {
    return geometry.toText();
  }

  public String toFormattedString() {
    WKTWriter writer = new WKTWriter();
    return writer.writeFormatted(geometry);
  }
View Full Code Here

Examples of com.vividsolutions.jts.io.WKTWriter

    }
   
    @Override
    public void encodeGeometryValue(Geometry value, int dimension, int srid, StringBuffer sql) throws IOException {
        if (value != null) {
            sql.append("GeomFromText('") .append( new WKTWriter(dimension).write( value ) ).append( "',")
                    .append(srid).append(")");
        }
        else {
            sql.append("NULL");
        }
View Full Code Here

Examples of com.vividsolutions.jts.io.WKTWriter

            if (!it.hasNext())
                throw new IllegalArgumentException("The provided FeatureCollection<SimpleFeatureType, SimpleFeature>  or empty, it's impossible to create an index!");

            footprintWriter = new FileWriter(footprintSummaryFile);
            final BufferedWriter writer = new BufferedWriter(footprintWriter);
            final WKTWriter geometryWriter = new WKTWriter();

            // Scan the index shapefile to get granules location
            while (it.hasNext()) {
                final SimpleFeature feature = it.next();
                final String location = (String) feature.getAttribute("location");
View Full Code Here

Examples of com.vividsolutions.jts.io.WKTWriter

      sql.append("null");
      return;
    }
    sql.append(MessageFormat.format(pattern,
        new Object[]{       
        new WKTWriter().write(value),
        Integer.toString(srid)}));   
 
  }
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.