
org.geolatte.geom.codec.Sfa110WktDecoder Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy