|
Geomajas, Geomajas server: Main - commands 1.15.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geomajas.command.dto.SearchByLocationRequest
@Api(allMethods=true) public class SearchByLocationRequest
Request object for
SearchByLocationCommand.
| Field Summary | |
|---|---|
static String |
COMMAND
Command name for this request. |
static int |
QUERY_CONTAINS
Use contains query. |
static int |
QUERY_INTERSECTS
Use an intersects query. |
static int |
QUERY_TOUCHES
Use touches query. |
static int |
QUERY_WITHIN
Use within query. |
static int |
SEARCH_ALL_LAYERS
Search type in which all layers are searched for a result, and more than one result may be returned. |
static int |
SEARCH_FIRST_LAYER
Search type in which the layers are searched from the beginning to the end of the array until a result is found. |
| Constructor Summary | |
|---|---|
SearchByLocationRequest()
|
|
| Method Summary | |
|---|---|
void |
addLayerWithFilter(String resultTag,
String serverLayerId,
String filter)
Add a layer with an optional filter expression which should be applied on the given layer. |
double |
getBuffer()
Get the optional buffer that should be added around the location before executing the search. |
String |
getCrs()
Get the coordinate reference space which should be used for the returned geometries. |
int |
getFeatureIncludes()
Get which data should be included in the features. |
String |
getFilter()
Get the global filter expression which should be applied on all layers. |
String |
getFilter(String resultTag)
Get the filter expression which should be applied on the layer for the specified result tag (e.g. |
String[] |
getLayerIds()
Get the result tags for layer specific filtering (e.g. |
Geometry |
getLocation()
The geometric description of the location to search features at. |
int |
getQueryType()
Type of geometric query to be executed. |
float |
getRatio()
This option can only be used in case of an intersects query. |
int |
getSearchType()
Get the type of search. |
String |
getServerLayerId(String resultTag)
Get the server layer id for the specified result tag (e.g. |
void |
setBuffer(double buffer)
Set a buffer that should be added to the location before executing the search. |
void |
setCrs(String crs)
Set the coordinate reference space which should be used for the returned geometries. |
void |
setFeatureIncludes(int featureIncludes)
Set the data to include in the features which are returned. |
void |
setFilter(String filter)
Set the global filter expression which should be applied. |
void |
setFilter(String serverLayerId,
String filter)
Deprecated. use addLayerWithFilter(String, String, String). |
void |
setLayerIds(String[] serverLayerIds)
Set the server layer ids. |
void |
setLocation(Geometry location)
Set the geometry to use as search location. |
void |
setQueryType(int queryType)
Type of geometric query to be executed. |
void |
setRatio(float ratio)
This option can only be used in case of an intersects query. |
void |
setSearchType(int searchType)
Set a new type of search. |
String |
toString()
Build string representation of object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String COMMAND
public static final int SEARCH_FIRST_LAYER
public static final int SEARCH_ALL_LAYERS
public static final int QUERY_INTERSECTS
public static final int QUERY_TOUCHES
public static final int QUERY_WITHIN
public static final int QUERY_CONTAINS
| Constructor Detail |
|---|
public SearchByLocationRequest()
| Method Detail |
|---|
public Geometry getLocation()
public void setLocation(Geometry location)
location - locationpublic int getQueryType()
Type of geometric query to be executed. Default is "QUERY_INTERSECTS". All options are:
public void setQueryType(int queryType)
Type of geometric query to be executed. Default is "QUERY_INTERSECTS". All options are:
queryType - The new type of querypublic float getRatio()
public void setRatio(float ratio)
ratio - The new ratiopublic String getCrs()
public void setCrs(String crs)
crs - The map's coordinate reference system.public int getSearchType()
public void setSearchType(int searchType)
searchType - search typepublic double getBuffer()
public void setBuffer(double buffer)
buffer - buffer sizepublic int getFeatureIncludes()
VectorLayerService.
public void setFeatureIncludes(int featureIncludes)
VectorLayerService.
featureIncludes - what the include
public void addLayerWithFilter(String resultTag,
String serverLayerId,
String filter)
resultTag - tag to make the distinction in the response object between the
features for the same serverLayerId but a different filter
(e.g. client layer id)serverLayerId - server layerId layer to set this filter onfilter - filter expression for the specified layer, can be null (==true
filter)no client layer specific filtering
@Deprecated
public void setFilter(String serverLayerId,
String filter)
addLayerWithFilter(String, String, String).
serverLayerId - server layer to set this filter onfilter - filter expressionpublic String getFilter(String resultTag)
resultTag - result tag for the layer filter specification
public String getServerLayerId(String resultTag)
resultTag - result tag for the layer filter specification (e.g. client
layer id)
public String[] getLayerIds()
public void setLayerIds(String[] serverLayerIds)
addLayerWithFilter(String, String, String) to specify
filter expressions
serverLayerIds - server layer idspublic void setFilter(String filter)
setFilter(String layerId, String filter).
filter - filter expressionpublic String getFilter()
setFilter(String layerId, String filter).
public String toString()
toString in class Object
|
Geomajas, Geomajas server: Main - commands 1.15.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||