How do I produce a GeoJSON with 1 point at a certain lon/lat?

المشرف العام

Administrator
طاقم الإدارة
I need to create a GeoJSON string, which contains exactly one point at lon/lat 132.159633, 43.350116.

I'm trying to use GeoTools 12-RC1 for that.

Let's say I have following method, which is supposed to generate GeoJSON with that point:

public String geoData() { final GeometryBuilder builder = new GeometryBuilder(); final Point point = builder.point(132.159633, 43.350116); return null; // Now I need to convert point to a GeoJSON string}How do I generate a GeoJSON string with point?



أكثر...
 
أعلى