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

org.geolatte.geom.codec.Sfa110WktDecoder 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.Geometry;
import org.geolatte.geom.Position;
import org.geolatte.geom.codec.support.Holder;
import org.geolatte.geom.crs.CoordinateReferenceSystem;

public class Sfa110WktDecoder implements WktDecoder {

    @Override
    public 

Geometry

decode(String wkt, CoordinateReferenceSystem

crs) { return new Sfa110WktParser<>(wkt, crs).parse(); } } class Sfa110WktParser

extends BaseWktParser

{ private final static WktDialect dialect = new WktDialect(); Sfa110WktParser(String wkt, CoordinateReferenceSystem

crs) { super(dialect, wkt, crs); } @Override protected CoordinateReferenceSystem widenCrsToCoordinateDimension(CoordinateReferenceSystem crs) { //don't do this for this dialect return crs; } protected Holder matchesMultiPointList() { return matchesPositionList(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy