Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flex-config/generic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ local delete_keys = {
'dcgis:gis_id',
-- Building Identification Number (New York, US)
'nycdoitt:bin',
-- Chicago Building Inport (US)
-- Chicago Building Import (US)
'chicago:building_id',
-- Louisville, Kentucky/Building Outlines Import (US)
'lojic:bgnum',
Expand Down
2 changes: 1 addition & 1 deletion flex-config/labelpoint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ local function add(tags, geom)
-- factor when calculating the result. This can make sense, because
-- labels are usually written horizontally so you need more space in
-- that direction. (Use a value > 1 to stretch horizontally or values
-- between 0 and 1 to stretch vertically. The value 0 ist not allowed.)
-- between 0 and 1 to stretch vertically. The value 0 is not allowed.)
poi2 = geom:pole_of_inaccessibility({ stretch = 3 }),
})
end
Expand Down
6 changes: 3 additions & 3 deletions scripts/osm2pgsql-test-style
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def execute_osm2pgsql(context, output):

if context.table:
assert not any('<' in h for h in context.table.headings), \
"Substition in the first line of a table are not supported."
"Substitutions in the first line of a table are not supported."
cmdline.extend(_template(h) for h in context.table.headings if h)
for row in context.table:
cmdline.extend(_template(c) for c in row if c)
Expand Down Expand Up @@ -525,7 +525,7 @@ def execute_osm2pgsql_expire(context):

if context.table:
assert not any('<' in h for h in context.table.headings), \
"Substition in the first line of a table are not supported."
"Substitutions in the first line of a table are not supported."
cmdline.extend(_template(h) for h in context.table.headings if h)
for row in context.table:
cmdline.extend(_template(c) for c in row if c)
Expand Down Expand Up @@ -623,7 +623,7 @@ def execute_osm2pgsql_replication(context):

if context.table:
assert not any('<' in h for h in context.table.headings), \
"Substition in the first line of a table are not supported."
"Substitutions in the first line of a table are not supported."
cmdline.extend(_template(h) for h in context.table.headings if h)
for row in context.table:
cmdline.extend(_template(c) for c in row if c)
Expand Down
4 changes: 2 additions & 2 deletions src/db-copy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class db_deleter_by_id_t
{
/**
* There is a trade-off here between sending as few DELETE SQL as
* possible and keeping the size of the deletable vector managable.
* possible and keeping the size of the deletable vector manageable.
*/
static constexpr std::size_t MAX_ENTRIES = 1000000;

Expand All @@ -111,7 +111,7 @@ class db_deleter_by_type_and_id_t
{
/**
* There is a trade-off here between sending as few DELETE SQL as
* possible and keeping the size of the deletable vector managable.
* possible and keeping the size of the deletable vector manageable.
*/
static constexpr std::size_t MAX_ENTRIES = 1000000;

Expand Down
2 changes: 1 addition & 1 deletion src/expire-config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct expire_config_t
double buffer = 0.1;

/**
* Maximum width/heigth of bbox of a (multi)polygon before hybrid mode
* Maximum width/height of bbox of a (multi)polygon before hybrid mode
* expiry switches from full-area to boundary-only expire.
*/
double full_area_limit = 0.0;
Expand Down
2 changes: 1 addition & 1 deletion src/expire-output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class expire_output_t

/**
* Access to the m_tiles collection of expired tiles must go through
* this mutex, because it can happend from several threads at the same
* this mutex, because it can happen from several threads at the same
* time. Mutex is wrapped in a shared_ptr to make this class movable so
* we can store instances in std::vector.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/gen/gen-discrete-isolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void gen_di_t::process()
// input: unique id of the feature
uint64_t id;

// input: importance of the feature (positive, larger is more imporant)
// input: importance of the feature (positive, larger is more important)
double importance;

// input: x/y coordinate of the feature
Expand Down
2 changes: 1 addition & 1 deletion src/geom-functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ void line_merge(geometry_t *output, geometry_t const &input)

std::sort(endpoints.begin(), endpoints.end());

// Now fill the connection list based on the sorted enpoints list.
// Now fill the connection list based on the sorted endpoints list.
for (auto it = std::adjacent_find(endpoints.cbegin(), endpoints.cend());
it != endpoints.cend();
it = std::adjacent_find(it + 2, endpoints.cend())) {
Expand Down
2 changes: 1 addition & 1 deletion src/options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ struct options_t

bool enable_hstore_index = false; ///< add an index on the hstore column

/// Output multi-geometries intead of several simple geometries
/// Output multi-geometries instead of several simple geometries
bool enable_multi = false;

bool reproject_area = false;
Expand Down
2 changes: 1 addition & 1 deletion src/ordered-index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* * To conserve memory, the id and offset in the second level blocks are 32
* bit unsigned integers relative to the id and offset of the first id of a
* block which is stored in the first level entry. Compared to the 64 bit
* integers we would need without the two-level design, this halfs the
* integers we would need without the two-level design, this halves the
* memory use.
*/
class ordered_index_t
Expand Down
2 changes: 1 addition & 1 deletion src/osmdata.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct options_t;

/**
* This class guides the processing of the OSM data through its multiple
* stages. It calls upon the the middle and the output to do their work.
* stages. It calls upon the middle and the output to do their work.
*
* It also does the dependency management, keeping track of the dependencies
* between OSM objects (nodes in ways and members of relations).
Expand Down
2 changes: 1 addition & 1 deletion src/output-flex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class output_flex_t : public output_t
void call_lua_function(prepared_lua_function_t func,
osmium::OSMObject const &object);

/// Aquire the lua_mutex and then call `call_lua_function()`.
/// Acquire the lua_mutex and then call `call_lua_function()`.
void get_mutex_and_call_lua_function(prepared_lua_function_t func);

void get_mutex_and_call_lua_function(prepared_lua_function_t func,
Expand Down
2 changes: 1 addition & 1 deletion src/output-pgsql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void output_pgsql_t::delete_from_output_and_expire(osmid_t id)
}
}

/* Seperated out because we use it elsewhere */
/* Separated out because we use it elsewhere */
void output_pgsql_t::pgsql_delete_way_from_output(osmid_t osm_id)
{
/* Optimisation: we only need this is slim mode */
Expand Down
2 changes: 1 addition & 1 deletion src/pgsql.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class pg_conn_t
* Run the named prepared SQL statement and return the results.
*
* \param stmt The name of the prepared statement.
* \param result_as_binary Ask for the resuls to be returned in binary
* \param result_as_binary Ask for the results to be returned in binary
* format.
* \param params Any number of arguments (will be converted to strings
* if necessary).
Expand Down
2 changes: 1 addition & 1 deletion src/tagtransform-c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ bool c_tagtransform_t::filter_rel_member_tags(taglist_t const &rel_tags,
/* Boundaries will get converted into multiple geometries:
- Linear features will end up in the line and roads tables (useful for admin boundaries)
- Polygon features also go into the polygon table (useful for national_forests)
The edges of the polygon also get treated as linear fetaures allowing these to be rendered seperately. */
The edges of the polygon also get treated as linear features allowing these to be rendered separately. */
*make_boundary = true;
} else if (is_multipolygon) {
*make_polygon = true;
Expand Down
2 changes: 1 addition & 1 deletion src/tile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class tile_t
/**
* Get bounding box from tile with margin on all sides. The margin is
* specified as a fraction of the tile extent. So margin==0.5 (50%) makes
* the bounding box twice as wide and twice as heigh.
* the bounding box twice as wide and twice as high.
*
* The bounding box is clamped to the extent of the earth, so there will
* be no coordinates smaller than -HALF_EARTH_CIRCUMFERENCE or larger than
Expand Down