Skip to content

Render with docker fails due to unknown Postgis function (need sfcgal support) #8

@Cubedsheep

Description

@Cubedsheep

When I try to render a map with the docker container, the python script fails with the following error:

Traceback (most recent call last):
  File "makeMap.py", line 52, in <module>
    make_map('OAM_20000.pdf', 20000, 617124,6400092)
  File "makeMap.py", line 34, in make_map
    load_map(m, mapnik_file)
RuntimeError: Postgis Plugin: ERROR:  function st_approximatemedialaxis(geometry) does not exist
LINE 1: ...ND name IS NOT NULL UNION ALL SELECT ST_LineMerge(ST_Approxi...
                                                             ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
in executeQuery Full sql was: 'SELECT * FROM ( SELECT way, waterway AS type, replace(name, 'Ruisseau', 'Rau') AS name FROM planet_osm_line WHERE waterway IN ('canal', 'river', 'stream') AND name IS NOT NULL UNION ALL SELECT ST_LineMerge(ST_ApproximateMedialAxis(ST_SimplifyPreserveTopology(ST_MakePolygon(ST_ExteriorRing(way)), 50))) AS way, water AS type, replace(replace(name, 'Etang', '\xc9tg'), '\xc9tang', '\xc9tg') AS name FROM planet_osm_polygon WHERE water IN ('pond', 'lake', 'basin', 'reservoir') AND name IS NOT NULL AND way_area > 10000 ) AS data LIMIT 0'
  encountered during parsing of layer 'waterway_label' in Layer of 'osm2pgsql/OpenArdenneMap.xml' 

I suspect the cause is an outdated Postgis version or a missing Plugin, but I'm not sure how to find and fix the broken component.

I also removed the layers concerning height contours and hillshades because I first wanted to try rendering just the osm data by removing the respective entries in the .mss stylesheets and projeckt-docker.mml sourcefile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions