Tag Info

New answers tagged

0

You can draw lines using decimal degrees as follow: svg.append("path") .datum({type: "LineString", coordinates: [[-5, 40], [-5, 50], [10, 50], [10, 40], [-5, 40]] // points in decimal degrees }) .attr("d", path) .style({'fill': '#B10000', 'fill-opacity': 0.3}) .style({'stroke-width': 1, 'stroke': '#B10000', 'stroke-linejoin': 'round'});


1

Everything is ok in your code except this statement: "select month, damage as magnitude from tor group by month order by month asc" At first glance, this SQL query seems ok, but it isn't. Your browser already told you that the code have the following error: {"error":["column \"tor.damage\" must appear in the GROUP BY clause or be used in an aggregate ...


1

I ran into this exact problem because I hadn't extracted the zip file into the working directory. I was rushing to get the files converted and when I checked to make sure they were there, the "preview" that I got when I double-clicked on the zipped file tricked me into thinking they were available for conversion. Even if this wasn't the solution to your ...


0

In case you work with d3 (as your tag suggests) here is an alternative using topojson. For a tsv file "attributes.tsv" in the following format: id attribute 112 A 114 B 123 C 211 D 442 E 343 F ... Convert to topojson: topojson -o topojson.json haiti_communes.geo.json -p Join: topojson -o final.json -e attributes.tsv --id-property=+id_com,+id -p -- ...


3

I would download and install QGIS, and then open the geojson file by clicking Add vector layer button: After that you should be able to see you geojson file in QGIS: And right click the layer's name in the left hand layer list, and click "Properties"; then go to the "Joins" tab, and click the green plus icon on the left bottom corner to open "Add ...



Top 50 recent answers are included