Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when displaying highways #913

Open
Etheonor opened this issue Mar 17, 2023 · 1 comment
Open

Error when displaying highways #913

Etheonor opened this issue Mar 17, 2023 · 1 comment

Comments

@Etheonor
Copy link

Hello,

I have an issue with my Tegola server that works well with my node layers (city/town), but have issues with my highways layer.

Here the error :
2023-03-17 11:21:45 [ERROR] handle_map_layer_zxy.go:175: error marshalling tile: error Getting VTileLayer: unsupported type for value(map[highway:motorway_link oneway:yes]) with key(tags) in tags for feature {Feature: 426430156, GEO: MULTILINESTRING ((1904 2825,1904 2825,1904 2825)), Tags: map[tags:map[highway:motorway_link oneway:yes] way_id:426430156]}.

I don't know if it's an issue with my import. To create the map I used osmium to first filter the osm.pbf and then osm2pgsql to import everything in my database.

Here is the import config from my .lua :

tables.highways = osm2pgsql.define_way_table('highways', { { column = 'tags', type = 'jsonb' }, { column = 'rel_refs', type = 'text' }, -- for the refs from the relations { column = 'rel_ids', sql_type = 'int8[]' }, -- array with integers (for relation IDs) { column = 'geom', type = 'linestring', not_null = true }, { column = 'source', type = 'int'}; { column = 'target', type = 'int'}; })

I tried to change the tegola config file to change the geometry_type, but without any success.

The database works well with pg_tileserv but I want to use Tegola as it seems way faster for my usecase.

@ARolek
Copy link
Member

ARolek commented Mar 17, 2023

@Etheonor what do your SQL look like? Is the tags column a type of hstore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants