All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.geolatte.geom.codec.Sfa110WkbDecoder Maven / Gradle / Ivy

Go to download

This geoLatte-geom library offers a geometry model that conforms to the OGC Simple Features for SQL specification.

The newest version!
package org.geolatte.geom.codec;

import org.geolatte.geom.ByteBuffer;
import org.geolatte.geom.Geometry;
import org.geolatte.geom.Position;
import org.geolatte.geom.crs.CoordinateReferenceSystem;

/**
 * A WKB decoder for the format specified in Simple Feature Access, version 1.1.0
 */
public class Sfa110WkbDecoder implements WkbDecoder {


    @Override
    public 

Geometry

decode(ByteBuffer byteBuffer, CoordinateReferenceSystem

crs) { BaseWkbParser

parser = new BaseWkbParser<>(Sfa110WkbDialect.INSTANCE, byteBuffer, crs); try { return parser.parse(); } catch( WkbDecodeException e) { throw e; } catch (Throwable e) { throw new WkbDecodeException(e); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy