com.github.filosganga.geogson.jts.LinearRingCodec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geogson-jts Show documentation
Show all versions of geogson-jts Show documentation
GeoJSON support for Google Gson - JTS
package com.github.filosganga.geogson.jts;
import com.github.filosganga.geogson.model.LinearRing;
import com.vividsolutions.jts.geom.GeometryFactory;
/**
* @author Filippo De Luca - [email protected]
*/
public class LinearRingCodec extends AbstractJtsCodec {
/**
* Create a codec for a {@link com.vividsolutions.jts.geom.LinearRing JTS
* LinearRing} with a given {@link GeometryFactory}
*
* @param geometryFactory
* a {@link GeometryFactory} defining a PrecisionModel and a SRID
*/
public LinearRingCodec(GeometryFactory geometryFactory) {
super(geometryFactory);
}
@Override
public LinearRing toGeometry(com.vividsolutions.jts.geom.LinearRing src) {
return fromJtsLinearRing(src);
}
@Override
public com.vividsolutions.jts.geom.LinearRing fromGeometry(LinearRing src) {
return toJtsLinearRing(src);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy