Giter Site home page Giter Site logo

openmap-local-svg-maps's Introduction

OpenMap Local SVG Maps

This repo contains the scripts I used to create an SVG map of SE London which I then plotted using an Axidraw. There's a blog post about it here.

It uses data from the OS OpenMap Local dataset.

An example of the SVG output can be seen here.

npm install
ruby script.rb

openmap-local-svg-maps's People

Contributors

crofty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openmap-local-svg-maps's Issues

Cannot find module '@mapbox/geo-viewport'

Hi crofty,

Thanks for providing this script. I'm new to scripting in general and am trying to get this working. Upon running ruby script.rb I get the error

module.js:471
    throw err;
    ^

Error: Cannot find module '@mapbox/geo-viewport'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at [eval]:1:19
    at ContextifyScript.Script.runInThisContext (vm.js:25:33)
    at Object.runInThisContext (vm.js:97:38)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:570:32)
    at Immediate.<anonymous> (bootstrap_node.js:358:29)
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in `new'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in `parse'

Do I need a ruby package?

I do see that there is something like this but I'm not sure what I'm supposed to do with it. I did try issuing the command npm install --save @mapbox/geo-viewpoint but it returns

npm ERR! code E404
npm ERR! 404 Not Found: @mapbox/geo-viewpoint@latest

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/myusername/.npm/_logs/2018-08-25T17_00_36_091Z-debug.log

I'm running Mac OS 10.11

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.