Comments (4)
Hints:
Load up in QGIS (via “Layer | Add Vector Layer…”), go to “Vector | Geometry Tools | Simplify geometries”, and then pick 0.0001 or 0.001 or whatever results in good optimization. Remember to check “Save to a new file” and point to a new shapefile. Remember that for names in UTF-8 it tends to mess things up, so double-check.
Also, saving GeoJSON from CartoDB results in a smaller file than saving GeoJSON from QGIS.
Some of the current files are too large, for example Mexico at 5.8M, San Diego at 5.2M, Lombardy at 4.5M. This is not only longer load times, but also slower drawing.
Perhaps a rule of the thumb should be for the size to never exceed 3M, or 1M, or for the size to never exceed NumberOfHoods * X.
from click_that_hood.
Matt Bloch's mapshaper - http://www.mapshaper.org + https://github.com/mbloch/mapshaper - would also be a good tool for this. It gives you a simple web or command-line interface for simplifying geometries.
from click_that_hood.
Thanks, Michael!
from click_that_hood.
I just used MapShaper to optimize US in 1810. It wasn’t smooth sailing (I needed to choose the middle mode, repair intersections, then export to shapefile, then convert to GeojSON in QGIS, then re-save in CartoDB), but it worked. :·)
from click_that_hood.
Related Issues (20)
- brazil_states.geojson HOT 1
- Misalignment between map and game HOT 1
- Error on Spain CCAA code HOT 1
- Don't register click on already answered area HOT 1
- Feature request: List incorrect guesses at the end
- Rename default "master" branch to "main" HOT 3
- Automated builds need to be reinstated (manual intervention needed) HOT 2
- Compile Less files as part of "npm run build"
- map tiles are gone? HOT 10
- Facebook share button is broken HOT 3
- lessc creates different css than less_middleware HOT 1
- Mouse over reveals answers on most hoods - option to turn that off?
- Chicago parks is not working HOT 3
- Mexico City and Santa Fe
- How do i add cities HOT 1
- For some cities only a square is displayed HOT 7
- FB share doesn't work because of fbclickid
- Switch to an excellent code formatting and linting tool HOT 1
- Consider switching to github's official workflow action for deploying to `gh-pages` HOT 1
- Missing Borough Berlin-Schlachtensee HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from click_that_hood.