use of org.geojson.Crs in project geojson-jackson by opendatalab-de.
the class CrsTest method itShouldSerializeCrsWithLink.
@Test
public void itShouldSerializeCrsWithLink() throws Exception {
Point point = new Point();
Crs crs = new Crs();
crs.setType(CrsType.link);
point.setCrs(crs);
String value = mapper.writeValueAsString(point);
assertEquals("{\"type\":\"Point\",\"crs\":{\"type\":\"link\",\"properties\":{}}}", value);
}