Documentation
¶
Index ¶
- type Feature
- type FeatureCollection
- func (fc *FeatureCollection) AddMapTileFeature(features ...maptile.Feature) *FeatureCollection
- func (fc *FeatureCollection) MarshalJSON() ([]byte, error)
- func (fc FeatureCollection) MarshalText() ([]byte, error)
- func (fc *FeatureCollection) SetCoordsTransform(coordsTransform *coordstransform.CoordsTransform)
- func (fc *FeatureCollection) ToJSON() ([]byte, error)
- func (fc *FeatureCollection) UnmarshalText(data []byte) error
- type Geometry
- func (g *Geometry) IsCollection() bool
- func (g *Geometry) IsLineString() bool
- func (g *Geometry) IsMultiLineString() bool
- func (g *Geometry) IsMultiPoint() bool
- func (g *Geometry) IsMultiPolygon() bool
- func (g *Geometry) IsPoint() bool
- func (g *Geometry) IsPolygon() bool
- func (g *Geometry) MarshalJSON() ([]byte, error)
- func (g Geometry) MarshalText() ([]byte, error)
- func (g *Geometry) UnmarshalJSON(data []byte) error
- func (g *Geometry) UnmarshalText(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct { ID interface{} `json:"id,omitempty"` Type string `json:"type"` Geometry *Geometry `json:"geometry"` Properties map[string]interface{} `json:"properties"` CRS map[string]interface{} `json:"crs,omitempty"` }
func (*Feature) MarshalJSON ¶
func (Feature) MarshalText ¶
func (*Feature) UnmarshalText ¶
type FeatureCollection ¶
type FeatureCollection struct { Type string `json:"type"` Features []*Feature `json:"features"` CRS map[string]interface{} `json:"crs,omitempty"` // contains filtered or unexported fields }
func (*FeatureCollection) AddMapTileFeature ¶
func (fc *FeatureCollection) AddMapTileFeature(features ...maptile.Feature) *FeatureCollection
func (*FeatureCollection) MarshalJSON ¶
func (fc *FeatureCollection) MarshalJSON() ([]byte, error)
MarshalJSON
func (FeatureCollection) MarshalText ¶
func (fc FeatureCollection) MarshalText() ([]byte, error)
func (*FeatureCollection) SetCoordsTransform ¶
func (fc *FeatureCollection) SetCoordsTransform(coordsTransform *coordstransform.CoordsTransform)
func (*FeatureCollection) ToJSON ¶
func (fc *FeatureCollection) ToJSON() ([]byte, error)
func (*FeatureCollection) UnmarshalText ¶
func (fc *FeatureCollection) UnmarshalText(data []byte) error
type Geometry ¶
type Geometry struct { Type string `json:"type"` Point *geography.Point MultiPoint *geography.MultiPoint LineString *geography.LineString MultiLineString *geography.MultiLineString Polygon *geography.Polygon MultiPolygon *geography.MultiPolygon Geometries []*Geometry CRS map[string]interface{} `json:"crs,omitempty"` }
几何体关联对象
func (*Geometry) IsCollection ¶
func (*Geometry) IsLineString ¶
func (*Geometry) IsMultiLineString ¶
func (*Geometry) IsMultiPoint ¶
func (*Geometry) IsMultiPolygon ¶
func (*Geometry) MarshalJSON ¶
func (Geometry) MarshalText ¶
func (*Geometry) UnmarshalJSON ¶
func (*Geometry) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.