gdal.FeatureDefnFields
An encapsulation of a FeatureDefn's fields.
Table of Contents
Methods
count
		()
		
			Integer
		
	Returns the number of fields.
Returns:
						Integer
			
		forEach
		
			(
	- 
						
callback 
Iterates through all field definitions using a callback function.
Parameters:
- 
						
callbackFunctionThe callback to be called with each FieldDefn
 
Example:
featureDefn.forEach(function(field, i) { ... });`
			Returns a field definition.
Parameters:
- 
						
keyString | IntegerField name or index
 
Returns:
getNames
		()
		
			Array
		
	Returns a list of field names.
Returns:
						Array:
					
		List of field names.
indexOf
		
			(
		
			Integer
		
	- 
						
name 
Returns the index of field definition.
Parameters:
- 
						
nameString 
Returns:
						Integer:
					
		Index or -1 if not found.
map
		
			(
	- 
						
callback 
Iterates through all field definitions using a callback function and builds an array of the returned values.
Parameters:
- 
						
callbackFunctionThe callback to be called with each FieldDefn
 
Example:
var result = dataset.layers.map(function(field, i) {
    return value;
});`
			remove
		
			(
	- 
						
key 
Removes a field definition.
Parameters:
- 
						
keyString | IntegerField name or index
 
reorder
		
			(
	- 
						
map 
Reorders the fields.
Parameters:
- 
						
mapArrayAn array representing the new field order.
 
Example:
// reverse fields:
featureDef.fields.reorder([2, 1, 0]);`