GithubHelp home page GithubHelp logo

test-visualizacion's Introduction

README

Setup pruebas

Mapbox with D3

D3 sobre un mapa de mapbox. Se grafican polígonos de un topoJSON.

Abrir el archivo montando un servidor local. Una forma sencilla de hacerlo es con http-server en node. Pre-requisito: instalar node.

npm install http-server -g
cd ../mapbox_with_D3
http-server

Luego en el navegador ir a localhost:8080 y seleccionar el archivo html.

  1. Generar grilla con /tools/geoJson_grid

    abrir index.html

    Se genera el arvhivo grid.json en formato geoJSON.

  2. Recortar grilla con máscara del predio POR HACER... usar esto

  3. Convertir geoJSON a topoJSON

    npm install topojson-server -g
    geo2topo geojson-grid.json > topojson-grid.json

Por hacer

  • Cargar mapa de mapbox
  • Overlay de D3
  • Graficar puntos con D3
  • Convertir topoJSON a geoJSON
  • Cargar polígonos de un geoJSON
  • Generar topoJSON con valor de temperatura por celda
  • Mostrar valor de temperatura por celda en color
  • Mostrar simbología
  • Desplegar valor onHover
  • Desplegar ventana con valor secundario onClick
  • Poder mostrar puntos y áreas de forma simultánea

Herramientas

Se encuentran en la carpeta ./tools

  • shapefile: librería para convertir .shp a geoJSON
  • geoJSON-grid: versión de geojson-grid que modifiqué con la que se puede crear una grilla en formato geoJSON.

Notas

  • The d3.geoInterpolate() method creates a function that accepts input between 0 and 1 and interpolates between two [lon, lat] locations. Fuente

test-visualizacion's People

Contributors

benjavides avatar rmsolari avatar

Watchers

 avatar  avatar

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.