public class EditFeature extends Object
| Constructor and Description |
|---|
EditFeature() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
editFeature(String json)
Edits an existing feature or adds a new one
|
String |
getFeature(String fid,
String gegevensBronId)
Retrieves all the attributes and values for the given feature
|
String |
getFeatureByWkt(String gegevensBronId,
String wkt,
Double distance)
Get features given a WKT and a distance from a Gegevensbron.
|
String |
getFeatureType(Integer gegevensBronId)
Retrieves the featuretype of a given Gegevensbron.
|
Boolean |
removeFeature(String json)
Remove a feature
|
public String getFeatureType(Integer gegevensBronId) throws org.json.JSONException
gegevensBronId - org.json.JSONExceptionpublic String getFeatureByWkt(String gegevensBronId, String wkt, Double distance) throws org.json.JSONException
gegevensBronId - The id of the Gegevensbronwkt - The Well Known Text of the clicking pointdistance - The Distance for which the wkt must be buffered.
Important for scale dependend retrieval of featuresorg.json.JSONExceptionpublic String getFeature(String fid, String gegevensBronId) throws org.json.JSONException
fid - The featureId for which the attributes and values must be
retrieved.gegevensBronId - The id for the Gegevensbron in which the feature
whichfid - residesorg.json.JSONExceptionpublic Boolean editFeature(String json) throws org.json.JSONException
json - The details of the feature which must be editted: consists of
a jsonobject in the form: { fid: fid, gegevensbronId: gbId, geom:
geometry, mode: String [new|edit], columns :{ col1: val1, col2: val2 } }org.json.JSONExceptionpublic Boolean removeFeature(String json) throws org.json.JSONException
json - The identification of the feature(s) to be deleted. Use the
format: { fid: the featureId, gegevensbronId: id (integer) of the
gegevensbron from which the feature must be deleted }org.json.JSONExceptionCopyright © 2016. All rights reserved.