GithubHelp home page GithubHelp logo

Comments (4)

mwichary avatar mwichary commented on June 12, 2024

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.

mlevans avatar mlevans commented on June 12, 2024

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.

mwichary avatar mwichary commented on June 12, 2024

Thanks, Michael!

from click_that_hood.

mwichary avatar mwichary commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.