can't have a MultiProvider with mvt tiles
See original GitHub issueI’m on an old Tilestache branch created by the now-defunct Mapzen, and things work fine. It used to be that their branch was the only one that created vector tiles.
When I try to upgrade to the current Tilestache, I can’t produce my vector tiles, because MultiProvider doesn’t work. I combine tiles to include multiple layers in my tiles.
There are many other functions named getTypeByExtension
that do handle mvt as an extension, but for some reason, the one in MultiProvider
does not.
If I try to just edit that function to return what I expect it would do, I get an error later on:
AttributeError: MultiProviderWithTileserverParameters instance has no attribute 'ignore_cached_sublayers'
This is the error trace (from the unedited code):
File "/opt/emp_eng/empower_engine/tilestache/TileServer.py", line 73, in __call__
response = self.tile_server.__call__(environ, start_response)
File "/home/ee/.virtualenvs/tiles/local/lib/python2.7/site-packages/TileStache/__init__.py", line 393, in __call__
status_code, headers, content = requestHandler2(self.config, path_info, query_string, script_name)
File "/home/ee/.virtualenvs/tiles/local/lib/python2.7/site-packages/TileStache/__init__.py", line 266, in requestHandler2
status_code, headers, content = layer.getTileResponse(coord, extension)
File "/home/ee/.virtualenvs/tiles/local/lib/python2.7/site-packages/TileStache/Core.py", line 375, in getTileResponse
mimetype, format = self.getTypeByExtension(extension)
File "/home/ee/.virtualenvs/tiles/local/lib/python2.7/site-packages/TileStache/Core.py", line 634, in getTypeByExtension
return self.provider.getTypeByExtension(extension)
File "/home/ee/.virtualenvs/tiles/local/lib/python2.7/site-packages/TileStache/Goodies/VecTiles/server.py", line 261, in getTypeByExtension
raise ValueError(extension)
ValueError: mvt
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Why Hero doesn't work with Multiprovider? - Stack Overflow
I have a list of cards. When I tap a card, the BoxViewPage opens. If I use Hero and Multiprovider together, I get...
Read more >Can't reference an MVT layer from Mapfile - GIS Stack Exchange
I'm trying to add an MVT layer to my Mapfile, but it doesn't work and I ... OGR CONNECTION "MVT:https://tiles.regrid.com/api/v1/parcels/{z}" ...
Read more >Python: module TileStache.Goodies.VecTiles.server
class MultiProvider. VecTiles provider to gather PostGIS tiles into a single multi-response. Returns a MultiResponse object for GeoJSON or TopoJSON requests ...
Read more >Vector tiles standards | Tilesets - Mapbox docs
This guide on vector tile standards explains how data is stored and encoded in vector tiles. Just as applications make assumptions about what...
Read more >CrunchyData/pg_tileserv: A very thin PostGIS-only tile server ...
Takes in HTTP tile requests, executes SQL, returns MVT tiles. ... Table layers are what they sound like: tables in the database that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@migurski Thanks in advance. I totally see why you’d use their code as a reference, not just merge it in. I look forward to hearing more later in the week.
FWIW, I am the one that opened the issue. I just accidentally did so on our generic company account instead of my own and don’t see how to swap it over.
I’m happy that worked, Julie! I see your email, thank you for sending it. I will attempt to integrate your changes.