Skip to content

Instantly share code, notes, and snippets.

View FrieseWoudloper's full-sized avatar

Willy Tadema FrieseWoudloper

View GitHub Profile
@FrieseWoudloper
FrieseWoudloper / code_met_sqlalchemy.py
Last active July 29, 2019 11:18
SQLite cursus Udemy
# https://towardsdatascience.com/sqlalchemy-python-tutorial-79a577141a91
# https://medium.com/@JasonWyatt/squeezing-performance-from-sqlite-indexes-indexes-c4e175f3c346
# https://medium.com/@JasonWyatt/squeezing-performance-from-sqlite-insertions-971aff98eef2
# https://medium.com/analytics-vidhya/programming-with-databases-in-python-using-sqlite-4cecbef51ab9
import sqlalchemy as db
import pandas as pd
# engine = db.create_engine('sqlite:///c:/Temp/Udemy/customer.db')
# connection = engine.connect()
# metadata = db.MetaData()
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
license: gpl-3.0
height: 400
scrolling: no
border: no
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@FrieseWoudloper
FrieseWoudloper / README.md
Last active May 17, 2019 12:22
Groninger gemeenten

This is a TopoJSON file of municipalities in the north of The Netherlands visualized with D3.js. The TopoJSON file was created using Mapshaper.org.

@FrieseWoudloper
FrieseWoudloper / README.md
Last active May 26, 2019 06:09
Groninger gemeenten

This gist consists of the following files:

  • gemeenten.json, a TopoJSON file of municipalities in the north of The Netherlands including a bounding box.
  • gemeenten_without_bb.json, a TopoJSON file of municipalities in the north of the Netherlands without bounding box.
  • gemeenten_qp_1000000.json, a TopoJSON file without bounding box and the quantization parameter set to 1000000.
  • gemeenten_rhr.json, a TopoJSON file with bounding box and Orientator transformer in FME Desktop set to right hand rule.
  • index.html, containting D3 JavaScript code to visualize the files mentioned above.

Because of the mixed winding orders of polygons, I get a rectangle when I visualize the municipalities with D3.js. The TopoJSON files were created using FME Desktop 2019.

@FrieseWoudloper
FrieseWoudloper / .block
Last active May 17, 2019 12:27
Groninger gemeenten
license: gpl-3.0
height: 600
scrolling: no
border: no
@FrieseWoudloper
FrieseWoudloper / README.md
Last active May 6, 2019 08:21
met wfs en geojson als output formaat

In dit voorbeeld GeoJSON (EPSG:4326) opgevraagd bij WFS + reverse winding order in FME + wegschrijven naar TopoJSON

@FrieseWoudloper
FrieseWoudloper / .block
Last active May 16, 2019 11:26
Groninger gemeenten
license: gpl-3.0
height: 400
scrolling: no
border: no
@FrieseWoudloper
FrieseWoudloper / .block
Last active May 16, 2019 11:25
Groninger gemeenten
license: gpl-3.0
height: 400
scrolling: no
border: no