Documentation
¶
Index ¶
- Variables
- func ImportChangeset(db *database.PostGIS, limitTo *LimitTo, seq replication.Sequence) (err error)
- func ImportDiff(db *database.PostGIS, limitTo *LimitTo, seq replication.Sequence) error
- func ImportPBF(config *Config, pbfFilename string) error
- func Run(config *Config) error
- type Config
- type LimitTo
- type Schemas
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ InitialHistory: config.MinutesInterval{Duration: 2 * time.Hour}, DiffUrl: "https://planet.openstreetmap.org/replication/minute/", DiffInterval: config.MinutesInterval{Duration: time.Minute}, ChangesetUrl: "https://planet.openstreetmap.org/replication/changesets/", ChangesetInterval: config.MinutesInterval{Duration: time.Minute}, Schemas: Schemas{Changes: "changes"}, }
View Source
var Version string
Functions ¶
func ImportChangeset ¶
func ImportDiff ¶
Types ¶
type Config ¶
type Config struct { Connection string `json:"connection"` Schemas Schemas `json:"schemas"` LimitTo *LimitTo `json:"changes_bbox"` DiffDir string `json:"diffdir"` ChangesDir string `json:"changesdir"` DiffFromDiffDir bool `json:"replication_from_diffdir"` DiffUrl string `json:"replication_url"` DiffInterval config.MinutesInterval `json:"replication_interval"` ChangesetUrl string `json:"changeset_url"` ChangesetInterval config.MinutesInterval `json:"changeset_interval"` ChangesetFromChangesDir bool `json:"changeset_from_changesdir"` InitialHistory config.MinutesInterval `json:"initial_history"` }
func LoadConfig ¶
type LimitTo ¶
type LimitTo [4]float64
func (*LimitTo) Contains ¶
Contains checks whether the given point is inside the LimitTo. Returns true if LimitTo is nil.
func (*LimitTo) Intersects ¶
Intersects checks whether the bbox intersects with the LimitTo. Returns true if LimitTo is nil or if o is zero.
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
Package log provides a simple framework for reporting messages and the import progress.
|
Package log provides a simple framework for reporting messages and the import progress. |
Package test provides system tests for Imposm3.
|
Package test provides system tests for Imposm3. |
Click to show internal directories.
Click to hide internal directories.