Documentation
¶
Overview ¶
Package geocsv is a library for read csv file with geospatial data.
Index ¶
- type GeoCSV
- type GeocsvEncoder
- func (e *GeocsvEncoder) Decode(s []byte) (space.Geometry, error)
- func (e *GeocsvEncoder) Encode(g space.Geometry) []byte
- func (e *GeocsvEncoder) Read(r io.Reader) (space.Geometry, error)
- func (e *GeocsvEncoder) ReadGeoJSON(r io.Reader) (*geojson.FeatureCollection, error)
- func (e *GeocsvEncoder) Write(w io.Writer, g space.Geometry) error
- func (e *GeocsvEncoder) WriteGeoJSON(w io.Writer, g *geojson.FeatureCollection) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeoCSV ¶
type GeoCSV struct {
// contains filtered or unexported fields
}
GeoCSV a extension of the CSV with geospatial data
func (*GeoCSV) ToGeoJSON ¶
func (gc *GeoCSV) ToGeoJSON() (features *geojson.FeatureCollection)
ToGeoJSON export geojson
type GeocsvEncoder ¶
type GeocsvEncoder struct {
geojson.BaseEncoder
}
func (*GeocsvEncoder) Decode ¶
func (e *GeocsvEncoder) Decode(s []byte) (space.Geometry, error)
Decode Returns geometry of that decode string by codeType.
func (*GeocsvEncoder) Encode ¶
func (e *GeocsvEncoder) Encode(g space.Geometry) []byte
Encode Returns string of that encode geometry by codeType.
func (*GeocsvEncoder) ReadGeoJSON ¶
func (e *GeocsvEncoder) ReadGeoJSON(r io.Reader) (*geojson.FeatureCollection, error)
ReadGeoJSON Returns geometry from reader .
func (*GeocsvEncoder) WriteGeoJSON ¶
func (e *GeocsvEncoder) WriteGeoJSON(w io.Writer, g *geojson.FeatureCollection) error
WriteGeoJSON write geometry to writer.
Click to show internal directories.
Click to hide internal directories.