Skip to content

maptime-ams/maptime-ams.github.io

This branch is 41 commits ahead of, 7 commits behind waagsociety/maptimeAMS:gh-pages.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5ea87c6 ยท Oct 5, 2023

History

59 Commits
Aug 28, 2023
Dec 17, 2014
May 13, 2015
Aug 29, 2023
Oct 28, 2014
Dec 17, 2014
Aug 28, 2023
Feb 24, 2015
Dec 17, 2014
Oct 21, 2014
Feb 3, 2020
Aug 28, 2023
Oct 28, 2014
Oct 21, 2014
Oct 5, 2023

Repository files navigation

Maptime Amsterdam

Want to learn how to make beautiful maps? Let's do it together! Beginners very welcome!

This repository contains the website for Maptime Amsterdam. Resources, tutorials and presentations can be found in Maptime Amsterdam's GitHub organization.

For more information about Maptime, see Maptime HQ's website.

Maptime Amsterdam is hosted by Waag , and is supported by FIWARE and Smart City SDK.

maptimeAMS

Buildings GeoJSON

To create the GeoJSON file containing buildings data, do the following:

  • Download BAG data file (1.3 GB)
  • Import data into PostgreSQL/PostGIS database with NLExtract's Bag-extract
  • Create buildings table:
CREATE SCHEMA bert; -- Yes, you need this schema ๐Ÿ˜‘

CREATE TABLE bert.panden_amsterdam AS SELECT
  DISTINCT ON (p.identificatie)
  p.identificatie::bigint, bouwjaar::int,
  ST_ForceRHR(ST_Force2D(ST_Transform(p.geovlak, 4326))) AS geom,
  openbareruimtenaam, huisnummer, huisletter, huisnummertoevoeging, postcode,
  wp.woonplaatsnaam AS plaatsnaam
FROM verblijfsobjectactueelbestaand v
JOIN verblijfsobjectpandactueel vp
  ON vp.identificatie = v.identificatie
JOIN pandactueelbestaand p
  ON vp.gerelateerdpand = p.identificatie
JOIN nummeraanduidingactueelbestaand na
  ON v.hoofdadres = na.identificatie
JOIN openbareruimteactueelbestaand obr
  ON na.gerelateerdeopenbareruimte = obr.identificatie
JOIN woonplaatsactueelbestaand wp
  ON obr.gerelateerdewoonplaats = wp.identificatie
 WHERE wp.identificatie = 3594
  • Run ruby buildings.rb

Save a single building as SVG from PostgreSQL

SELECT
  ST_AsSVG(ST_Scale(ST_Translate(ST_Transform(geom, 28992), -121849, -487326), 2, 2))
FROM
  bert.panden_amsterdam
WHERE
  openbareruimtenaam = 'Nieuwmarkt' AND huisnummer = 4
LIMIT 1

Releases

No releases published

Packages

No packages published

Languages

  • HTML 34.6%
  • JavaScript 31.7%
  • CSS 25.0%
  • Ruby 8.7%