filosganga / geogson

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

JTS example in README.md results in StackOverflowError #20

Closed thorsten-k closed 10 years ago

thorsten-k commented 10 years ago

Ordering of TypeAdapterFactories seems to be wrong. Correct ordering might be:

Gson gson = new GsonBuilder()
  .registerTypeAdapterFactory(new GeometryAdapterFactory())
  .registerTypeAdapterFactory(new JtsAdapterFactory())
  .create();
filosganga commented 10 years ago

There is actually a bug on GeometryAdapterFactory that causes the SOE.