filosganga / geogson

GeoJSON support for Google gson library
Apache License 2.0
68 stars 29 forks source link

AbstractJtsCodec with custom GeometryFactory #21

Closed thorsten-k closed 9 years ago

thorsten-k commented 10 years ago

Currently the GeometryFactory is created this way in AbstractJtsCodec:

protected final GeometryFactory geometryFactory = new GeometryFactory();

This results in a default PrecisionModel and SRID. It would be great, if a GeometryFactory can be (optionally) provided to the JtsAdapterFactory:

PrecisionModel pm = new PrecisionModel(PrecisionModel.FLOATING);
GeometryFactory gf = new GeometryFactory(pm,4326);
JtsAdapterFactory jaf = new JtsAdapterFactory(gf);
filosganga commented 10 years ago

It is somethingI have to address soon, top priority at the moment.

filosganga commented 9 years ago

It has been addressed in #28