utils
Class FeatureInfoUtils
java.lang.Object
utils.FeatureInfoUtils
public class FeatureInfoUtils
- extends java.lang.Object
Method Summary |
static org.codehaus.jackson.node.ObjectNode |
attributes(Layer layer)
|
static org.opengis.referencing.crs.CoordinateReferenceSystem |
checkAxisOrder(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
|
static java.util.List<play.libs.F.Promise<? extends java.util.Map<java.lang.String,FeatureInfoResponse>>> |
getFeatureInfo(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<Layer>>> servers,
FeatureInfoRequest request,
java.lang.Boolean ifBBox)
create list of promises for getting features |
static org.codehaus.jackson.node.ObjectNode |
parseAttributes(java.lang.String rtn)
parse xml file with layer attributes |
static java.util.Map<java.lang.String,FeatureInfoResponse> |
parseFeatureInfo(java.lang.String rtn,
java.util.Map<java.lang.String,java.lang.Long> typeNameLayerMap,
java.lang.Boolean ifBBox)
parse features received in gml2 format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureInfoUtils
public FeatureInfoUtils()
parseFeatureInfo
public static java.util.Map<java.lang.String,FeatureInfoResponse> parseFeatureInfo(java.lang.String rtn,
java.util.Map<java.lang.String,java.lang.Long> typeNameLayerMap,
java.lang.Boolean ifBBox)
throws java.lang.Exception
- parse features received in gml2 format
- Parameters:
rtn
- xml file stringtypeNameLayerMap
- map of typeName of layers involved in requestifBBox
- it is true if request contains bbox parameter otherwise it is false
- Returns:
- map of features where keys are layers typeName and values are features info
- Throws:
java.lang.Exception
- exception occurs if it can not parse features- See Also:
FeatureInfoResponse
checkAxisOrder
public static org.opengis.referencing.crs.CoordinateReferenceSystem checkAxisOrder(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
parseAttributes
public static org.codehaus.jackson.node.ObjectNode parseAttributes(java.lang.String rtn)
throws java.lang.Exception
- parse xml file with layer attributes
- Parameters:
rtn
- xml file string
- Returns:
- layer attributes
- Throws:
java.lang.Exception
- exception occurs if it can not parse xml- See Also:
ObjectNode
getFeatureInfo
public static java.util.List<play.libs.F.Promise<? extends java.util.Map<java.lang.String,FeatureInfoResponse>>> getFeatureInfo(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<Layer>>> servers,
FeatureInfoRequest request,
java.lang.Boolean ifBBox)
- create list of promises for getting features
- Parameters:
servers
- map where keys are servers url and values are map of requested layersrequest
- request parametersifBBox
- it is true if request contains bbox parameter otherwise it is false
- Returns:
- list of promises
- See Also:
FeatureInfoResponse
,
FeatureInfoRequest
,
F.Promise
attributes
public static org.codehaus.jackson.node.ObjectNode attributes(Layer layer)
- Parameters:
layer
- Layer object
- Returns:
- attributes of layer
- See Also:
ObjectNode