org.geolatte.geom.codec.Sfa110WktDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-geom Show documentation
Show all versions of geolatte-geom Show documentation
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();
}
}