com.supermap.services
Class Feature
- java.lang.Object
-
- com.supermap.services.Feature
-
public class Feature extends java.lang.ObjectThe Feature class contains geometry and attribute information. It is used to operate the Geometry object of specified record while uploading data service acdtion to server.
-
-
Constructor Summary
Constructors Constructor and Description Feature(java.lang.String[] fieldNames, java.lang.String[] fieldValues, Geometry geo)Initialize a new Geometry object with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]getFieldNames()Get attribute name array.java.lang.String[]getFieldValues()Get attribute value array.GeometrygetGeometry()Gets the geometric object.java.lang.StringtoJson()Convert objects to Json string.
-
-
-
Constructor Detail
-
Feature
public Feature(java.lang.String[] fieldNames, java.lang.String[] fieldValues, Geometry geo)Initialize a new Geometry object with the specified parameters.- Parameters:
fieldNames- specified array of attribute names.fieldValues- specified array of attribute value. *If the field value is the Date type, with the format "yyyy/MM/dd HH:mm:ss" or "yyyy-MM-dd HH:mm:ss". In addition, if there is only date and no specific time, for example, "2014/10/16", the default specific time would be 00:00:00 after uploading; if there is no date, the passed in value would be null string "".
geo- specified Geometry object.
-
-
Method Detail
-
toJson
public java.lang.String toJson()
Convert objects to Json string.- Returns:
- class objects converted to Json string.
-
getGeometry
public Geometry getGeometry()
Gets the geometric object.- Returns:
- got the Geometry objects.
-
getFieldNames
public java.lang.String[] getFieldNames()
Get attribute name array.- Returns:
- got the array of attribute name.
-
getFieldValues
public java.lang.String[] getFieldValues()
Get attribute value array.- Returns:
- got the array of attribute values.
-
-