Feature

  • A GeoJSON feature object is defined by having "Feature" as its "type", a geometry field, and a properties field.

  • The GeoJSON feature object's geometry and properties are represented using the Value format, containing either a Struct or a NullValue.

  • The "type" field of a GeoJSON feature object is always the string "Feature".

A GeoJSON feature object (see RFC 7946) containing the string "Feature" in a field named "type", the geometry in a field named "geometry", and key/value properties in a field named "properties".

JSON representation
 { 
 "type" 
 : 
 string 
 , 
 "geometry" 
 : 
 value 
 , 
 "properties" 
 : 
 value 
 } 
Fields
type

string

This string is always present and equal to "Feature".

geometry

value ( Value format)

The geometry of the feature. This will contain a google.protobuf.Struct if geometry is present for this feature. Otherwise, it will hold a google.protobuf.NullValue .

properties

value ( Value format)

The properties of the feature. This will contain a google.protobuf.Struct if properties are present for this feature. Otherwise, it will hold a google.protobuf.NullValue .

Create a Mobile Website
View Site in Mobile | Classic
Share by: