public class FeaturesParser
extends java.lang.Object
| Constructor and Description |
|---|
FeaturesParser(MfClientHttpRequestFactory httpRequestFactory,
boolean forceLongitudeFirst)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
org.geotools.data.simple.SimpleFeatureCollection |
autoTreat(Template template,
java.lang.String features)
Get the features collection from a GeoJson inline string or URL.
|
org.geotools.data.simple.SimpleFeatureCollection |
treatStringAsGeoJson(java.lang.String geoJsonString)
Get the features collection from a GeoJson inline string.
|
org.geotools.data.simple.SimpleFeatureCollection |
treatStringAsURL(Template template,
java.lang.String geoJsonUrl)
Get the features collection from a GeoJson URL.
|
public FeaturesParser(MfClientHttpRequestFactory httpRequestFactory, boolean forceLongitudeFirst)
httpRequestFactory - the HTTP request factoryforceLongitudeFirst - if true then force longitude coordinate as first coordinatepublic final org.geotools.data.simple.SimpleFeatureCollection autoTreat(Template template, java.lang.String features) throws java.io.IOException
template - the templatefeatures - what to parsejava.io.IOExceptionpublic final org.geotools.data.simple.SimpleFeatureCollection treatStringAsURL(Template template, java.lang.String geoJsonUrl) throws java.io.IOException
template - the templategeoJsonUrl - what to parsejava.io.IOExceptionpublic final org.geotools.data.simple.SimpleFeatureCollection treatStringAsGeoJson(java.lang.String geoJsonString)
throws java.io.IOException
geoJsonString - what to parsejava.io.IOException