public class FeatureToJson extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_FEATURES |
| Constructor and Description |
|---|
FeatureToJson(boolean arrays,
boolean edit) |
FeatureToJson(boolean arrays,
boolean edit,
boolean graph,
List<Long> attributesToInclude) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
getJSONFeatures(ApplicationLayer al,
SimpleFeatureType ft,
org.geotools.data.FeatureSource fs,
org.geotools.data.Query q,
String sort,
String dir)
Get the features as JSONArray with the given params
|
static org.opengis.filter.Filter |
reformatFilter(org.opengis.filter.Filter filter,
SimpleFeatureType ft) |
public static final int MAX_FEATURES
public org.json.JSONArray getJSONFeatures(ApplicationLayer al, SimpleFeatureType ft, org.geotools.data.FeatureSource fs, org.geotools.data.Query q, String sort, String dir) throws IOException, org.json.JSONException, Exception
al - The application layer(if there is a application layer)ft - The featuretype that must be used to get the featuresfs - The featureSourceq - The querysort - The attribute name that is used to sortdir - Sort direction (DESC or ASC)IOException - if anyorg.json.JSONException - if transforming to json failsException - if anypublic static org.opengis.filter.Filter reformatFilter(org.opengis.filter.Filter filter,
SimpleFeatureType ft)
throws Exception
ExceptionCopyright © 2017. All rights reserved.