spatial.setFeatureAttributes
Procedure Deprecated
Sets the feature attributes of the given layer
This procedure is deprecated by: feature attributes are now automatically discovered when a new node is added to the index |
Signature
spatial.setFeatureAttributes(name :: STRING, attributeNames :: LIST<STRING>) :: (node :: NODE)
Input parameters
Name | Type | Default | Description |
---|---|---|---|
name |
STRING |
null |
The name of the layer |
attributeNames |
LIST<STRING> |
null |
The attributes to set |
Examples
Get the feature attributes of a layer
CALL spatial.addWKTLayer('geom','wkt')
node |
---|
|
CALL spatial.getFeatureAttributes('geom')
Result
No results
CALL spatial.setFeatureAttributes('geom',['name','type','color'])
node |
---|
|
CALL spatial.getFeatureAttributes('geom')
className | name |
---|---|
java.lang.String |
color |
java.lang.String |
name |
java.lang.String |
type |