Package com.vividsolutions.jts.io

Examples of com.vividsolutions.jts.io.ByteArrayInStream


    private Shape[] shapes;

    private CrsId crsId;

    public Geometry read(byte[] bytes) throws IOException {
        return read(new ByteArrayInStream(bytes));
    }
View Full Code Here


    public Geometry read(byte[] bytes) throws ParseException
    {
      // possibly reuse the ByteArrayInStream?
      // don't throw IOExceptions, since we are not doing any I/O
      try {
        return read(new ByteArrayInStream(bytes));
      }
      catch (IOException ex) {
        throw new RuntimeException("Unexpected IOException caught: " + ex.getMessage());
      }
    }
View Full Code Here

    ps = con.prepareStatement(GetWKBZTypes);
    rs = ps.executeQuery();
    rs.next();
    byte[] bytes = rs.getBytes(1);
    ByteOrderDataInStream dis = new ByteOrderDataInStream();
    dis.setInStream(new ByteArrayInStream(bytes));
    byte byteOrder = dis.readByte();
    // default is big endian
    if (byteOrder == WKBConstants.wkbNDR)
      dis.setOrder(ByteOrderValues.LITTLE_ENDIAN);
View Full Code Here

        this.gf = gf;
    }

    public Geometry read(byte[] bytes) throws IOException {
        this.binary = new SqlServerBinary();
        return read(new ByteArrayInStream(bytes));
    }
View Full Code Here

import com.vividsolutions.jts.io.WKBReader;

public class GeoPkgGeomReader {

    public Geometry read(byte[] bytes) throws IOException {
        return read(new ByteArrayInStream(bytes));
    }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.io.ByteArrayInStream

Copyright © 2018 www.massapicom. 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.