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

Unknown WKB type 49 #16

Closed
divya1c opened this issue Feb 19, 2016 · 1 comment
Closed

Unknown WKB type 49 #16

divya1c opened this issue Feb 19, 2016 · 1 comment

Comments

@divya1c
Copy link

divya1c commented Feb 19, 2016

Hi!

I get this error and backtrace when I try requesting tiles from my mapzen tile server.

127.0.0.1 - - [19/Feb/2016 15:13:17] "GET /all/15/9644/12322.json HTTP/1.1" 500 -
Traceback (most recent call last):
File "/Users/divya/Documents/oneconcern/Vector-tile-server/Mapzen/tileserver/tileserver/init.py", line 187, in call
response = self.handle_request(request)
File "/Users/divya/Documents/oneconcern/Vector-tile-server/Mapzen/tileserver/tileserver/init.py", line 283, in handle_request
[])
File "/usr/local/lib/python2.7/site-packages/tilequeue-0.7.1-py2.7.egg/tilequeue/process.py", line 323, in process_coord
feature_layers = _preprocess_data(feature_layers, shape_padded_bounds)
File "/usr/local/lib/python2.7/site-packages/tilequeue-0.7.1-py2.7.egg/tilequeue/process.py", line 26, in _preprocess_data
shape = loads(wkb)
File "/usr/local/lib/python2.7/site-packages/shapely/wkb.py", line 16, in loads
return reader.read(data)
File "/usr/local/lib/python2.7/site-packages/shapely/geos.py", line 427, in read
raise ReadingError("Could not create geometry because of errors "
ReadingError: Could not create geometry because of errors while reading input.
ParseException: Unknown WKB type 49

Why am I getting this? Does this mean something is wrong with my data? I am using psql (PostgreSQL) 9.5.0 as my db.
Thanks!

@divya1c
Copy link
Author

divya1c commented Feb 20, 2016

Fixed it by selecting ST_AsBinary(geom) in the query.

@divya1c divya1c closed this as completed Feb 20, 2016
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

1 participant