Package com.vividsolutions.jts.io

Examples of com.vividsolutions.jts.io.OutputStreamOutStream


        try {
            WKBWriter w = new WKBWriter();
           
            //write the geometry
            ByteArrayOutputStream bytes = new ByteArrayOutputStream();
            w.write( g , new OutputStreamOutStream( bytes ) );
  
            //supplement it with the srid
            int srid = g.getSRID();
            bytes.write( (byte)(srid >>> 24) );
            bytes.write( (byte)(srid >> 16 & 0xff) );
View Full Code Here


        write(g, bout);
        return  bout.toByteArray();
    }

    public void write(Geometry g, OutputStream out) throws IOException {
        write(g, new OutputStreamOutStream(out));
        out.flush();
    }
View Full Code Here

TOP

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

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.