@@ -54,6 +54,39 @@ If a valid elevation tag is found, the attributes `core.ele_m` and
5454` core.ele_ft ` are added and contain the elevation in meters and feet,
5555respectively, as a number, rounded to the nearest integer.
5656
57+ ## Topic 'extract'
58+
59+ ### Description
60+
61+ Restrict imported data to a bounding box or polygon using the Locator feature
62+ of osm2pgsql. Use this topic * before* any other topics you want to restrict.
63+ Objects intersecting the locator area are kept, all others are discarded. For
64+ closed ways the area of the polygon is used for intersection, for unclosed ways
65+ the linestring. For relations that can be turned into multipolygons, the
66+ multipolygon is used, otherwise all node and way members of the polygon are
67+ checked as point and linestring features, respectively.
68+
69+ Geometries are * not* clipped to the locator area.
70+
71+ This only works in osm2pgsql version 2.2.0 and above.
72+
73+ ### Tables
74+
75+ This topic doesn't add any output tables.
76+
77+ ### Configuration
78+
79+ * ` locator ` : Set to an existing osm2pgsql.Locator (optional, if not set, a new
80+ locator will be created).
81+ * ` bbox ` : A table with the bounding box to be added to the locator. The table
82+ must contain four elements, in that order: min lon, min lat, max lon, max
83+ lat.
84+
85+ ### Attributes
86+
87+ No attributes are added.
88+
89+
5790## Topic 'layer'
5891
5992### Description
0 commit comments