Skip to content

Instantly share code, notes, and snippets.

[POP2000<25000]{polygon-fill:#33AD5C;}
[POP2000>25000][POP2000<100000]{polygon-fill:#FFFF19;}
[POP2000>100000][POP2000<500000]{polygon-fill:#FF7519;}
[POP2000>500000]{polygon-fill:#D11919;}
@langsdlc
langsdlc / sample.geojson
Created July 24, 2014 19:11
Sample for Recycling: Click on Raw for the text format
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@langsdlc
langsdlc / sample.geojson
Last active August 29, 2015 14:04
Sample for Recycling: Click on Raw for the text format
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"features" : [
{
"attributes" : {
"FID" : 0,
"Id" : 0
},
"geometry" : {
"paths" : [
[
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
FID X Y
0 -86.799492998399998 36.142709528600001
1 -86.799397926500006 36.142770948900001
2 -86.799170779500002 36.142734275800002
3 -86.798984363800002 36.142713367399999
4 -86.798333121300004 36.142667302200003
5 -86.798360752400001 36.142412395000001
6 -86.799003206899997 36.142474260999997
7 -86.799050217200005 36.142191627199999
8 -86.798394064899995 36.142126859699999
LOAD CSV WITH HEADERS FROM "https://gist.githubusercontent.com/langsdlc/950d18598d53833a4297/raw/87aeceb24df68a23a7badb4dcf53e9ab68b377d7/X_Y.csv" AS csvLine
CREATE (p:Place { id: toInt(csvLine.FID), long: toFloat(csvLine.X), lat: toFloat(csvLine.Y)})
FID X Y
0 -86.798991553600004 36.142707262800002
1 -86.799001071399999 36.142464557700002
2 -86.799034383899993 36.142169504599998
3 -86.799101008799994 36.141755478400000
4 -86.799153356900007 36.141312898599999
5 -86.799105767699999 36.141650782100001
6 -86.799191428300006 36.140989291899999
7 -86.799234258599995 36.140765622600000
8 -86.799096249800002 36.140760863700002
FROM TO DISTANCE
0 23 14.16517289
0 1 10.1619718
0 15 60.12109487
0 1 27.19481545
1 14 57.50009857
1 0 27.19481545
1 2 33.17750306
2 1 33.17750306
2 19 26.99382594
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/CliffordAnderson/campustour/Cloudant/routing/matchPTSaccNEW.csv" AS csvLine
MATCH (from:Place { name: toInt(csvLine.FROM)}), (to:Place { name: toInt(csvLine.TO)})
MERGE (from)-[:Path { distance: toFloat(csvLine.DISTANCE),accessible: STR(csvLine.ACCESS)}]->(to)