Skip to content

Tags: openmaptiles/openmaptiles-tools

Tags

v7.1.0

Toggle v7.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update Github Actions checkout and upload. (#444)

Update GitHub Actions checkout and upload-artifact from v3 to v4.

v7.0.0

Toggle v7.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add style-tools binary (#416)

Add style-tools binary
Add styleutils.py
Add spitezero to Dockerfile

v6.2.0

Toggle v6.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update bin/generate-tiles (#409)

- Remove implicit metadata update, as [discussed here](738a64d#comments).
- Add BBOX info to log output.
- Simplify `(set -x; ...)` syntax.

v6.1.4

Toggle v6.1.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Remove `STRICT` statement (#392)

Remove `STRICT` statement from `get_basic_names` and `get_latin_name` functions.

FIX openmaptiles/openmaptiles#1319

Concurrently with PR openmaptiles/openmaptiles#1320

v6.1.3

Toggle v6.1.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Use updated lake_centerlines.geojson. (#390)

v6.1.2

Toggle v6.1.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Revert to Python 3.9 (#389)

Tools in 6.0 used Python 3.8.  The 6.1 tried to upgrade to Python 3.10, but the [py-ascii-graph](https://github.com/kakwa/py-ascii-graph) is not compatible (used by the `test-perf` tool). Reverting to Python 3.9 should fix it for now.

v6.1.1

Toggle v6.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix auto-publish workflow build error (#388)

v6.1.0

Toggle v6.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Use docker --pull by default, bump to python 3.10 (#386)

Use docker build --pull by default, unless NO_REFRESH=1 is set
(this is the same param as in the primary OMT repo)

Also, upgrade to the latest stable Python ver 3.10

v6.0.1

Toggle v6.0.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix incorrect mode message in import-osm

Per @Falke-Design suggestion, fixing incorrect messaging

v6.0.0

Toggle v6.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add helpText to requires (#373)

Add `helpText` to `layer.requires` like discussed in openmaptiles/openmaptiles#1220

I had to change from `SELECT 'osm_ocean_polygon'::regclass;` to `PERFORM 'osm_ocean_polygon'::regclass;` because plpgsql needs a return value if `SELECT` is used.

Also added an error if a function has no arguments:
```
when invalid_text_representation then
        RAISE EXCEPTION '%! The arguments of the required function "osmFunc" of the layer "water" are missing. Example: "osmFunc(text)"', SQLERRM;
```

Example:
```
layer:
  id: "water"
  requires:
    helpText: 'This is a text with "quotes"'
    functions: "osmFunc"
    tables: "osm_ocean_polygon"
```

SQL:
```
-- Assert osm_ocean_polygon exists
do $$
begin
        PERFORM 'osm_ocean_polygon'::regclass;
exception when undefined_table then
        RAISE EXCEPTION '%! This is error text with "quotes"', SQLERRM;
end;
$$ language 'plpgsql';

-- Assert osmFunc exists
do $$
begin
        PERFORM 'osmFunc'::regprocedure;
exception when undefined_function then
        RAISE EXCEPTION '%! This is a text with "quotes"', SQLERRM;
when invalid_text_representation then
        RAISE EXCEPTION '%! The arguments of the required function "osmFunc" of the layer "water" are missing. Example: "osmFunc(text)"', SQLERRM;
end;
$$ language 'plpgsql';
```

Result of `make import-sql`:
> psql:/sql/parallel/water__waterway.sql:10: ERROR:  relation "osm_ocean_polygon2" does not exist! This is a text with "quotes"

Co-authored-by: Yuri Astrakhan <[email protected]>