-
Notifications
You must be signed in to change notification settings - Fork 32
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
Make it clear in the readme that geojson option doesn't support GeometryCollection #104
Comments
This happens because We should add a note in the readme stating that geometry collections are an exception in the |
Thanks @mourner. I modified the GeoJson to MultiPolygon with OttawaMP.json and did a test. Now I am getting a Unsupported MBTiles format: undefined error. I checked the geojson and its working everywhere else. I am stumped. I will need to test again from scratch. I am not sure what I am doing wrong. |
@Monduiz . Were you able to solve this ? I am getting the same error. Not sure if you would still remember how you solved it though |
@Nerdyvedi It has been awhile but if I remember I decided to do it differently than with this library. Once you have geojsons, it was trivial to get what I needed. Basically, I wrote a script that extracted features I need from OSM and then made my calculations in R. I don't know if this will be useful to you but you can see the code and final project here: Honestly, today I probably would write a Django app with a backend that pulls all this in PostGIS. |
@Monduiz Thank you so much for your help. |
I am trying to calculate the number of buildings in a geometry.
When I run index.js, I get "error: geometry not implemented at Object.getTiles [as tiles]" in module 'tile-cover, index.js:84' .
I checked the GeoJson and it seems valid. It was created in QGIS and I have tested it in mapshaper.
I have tested and tried with different geojsons, all valid. I always get the same error from tile-cover.
The scripts are here.
Data is canada.mbtiles (not uploaded).
The text was updated successfully, but these errors were encountered: