Questions tagged [cartography]

127 questions
1
vote
1 answer

Setting extent to plot a certain country in Cartopy package, Python

I am getting started with package Cartopy for Python. I would like to display the map of Hungary with the help of package Cartopy. I'm using the following code. import cartopy.crs as ccrs import cartopy.feature as cfeature import matplotlib.pyplot…
1
vote
1 answer

Head/tail breaks classification algorithm in R

I am trying to implement the head/tail breaks classification algorithm in R (see here). This relatively new algorithm is a less computationally expensive alternative to other classification methods used in Cartography for highly skewed data. So…
Mau
  • 131
  • 10
1
vote
1 answer

interference on R map with geojson file

I downloaded the GeoJSON file from this link : https://public.opendatasoft.com/explore/dataset/contours-iris/export/ and I plot it, but I have an interference polygone interference_polygon_picture but on the web site, it shows the polygons and there…
Bok Ette
  • 11
  • 1
1
vote
0 answers

D3 script failing to create points in the canvas after a certain limit

I am trying to draw check in information in a d3 canvas. I'm using this popular script to create the map and draw the points. I can draw roughly 12000 points, after that the script refuses to draw anything on the canvas. Could someone point out what…
Buggy Coder
  • 383
  • 5
  • 17
1
vote
1 answer

d3.scaleSequential is not a function

Following Mike Bostock's great tutorial on command-line cartography, when trying to produce a choropleth, I receive a TypeError saying that d3.scaleSequential is not a function. I imagine it is just not being exposed? But I don't know how to deal…
David Hagan
  • 1,156
  • 12
  • 23
1
vote
0 answers

R, "readOGR" function not found

I am on this site from some days for a work in R I am doing (on R-Studio), but I could not find the answer to my problem yet (it's the 3rd day I use R). The error is what follows: Error in readOGR(getwd(), "myfile") : could not find function…
Bruno
  • 11
  • 2
1
vote
0 answers

Mike Bostock's ndjson-split discards data?

I've gone through Mike Bostock's excellent tutorials on Command-Line Cartography and I'm confused by his use of his ndjson-split utility. That program is used to split up an array of objects in a json file, putting each object in the array on a…
Timothy Barmann
  • 598
  • 7
  • 17
1
vote
1 answer

Issue with Plotting Counties Using spmap

I am trying to plot the counties in the continental U.S. by a value that the counties have associated with them. I am using the spmap package. My shape files comes from: https://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html. I am using…
bill999
  • 2,147
  • 8
  • 51
  • 103
1
vote
1 answer

odoo install failed on CentOS 6.7 (command "pip install pyopenssl")

Good afternoon, Im trying to install odoo CRM into a CentOS 6.7 minimal VM (RamNode). The guide I'm following is: https://odootricks.wordpress.com/2014/09/30/installing-odoo-8-on-centos-6-with-virtual-python-install/ So python 2.7 will be installed…
1
vote
0 answers

Attach markers to a bezier line and then "Pull" it straight with Inkscape

I have a bezier curve that I've used to trace the curve of a stream on a map. At points along the stream I have objects that mark the location of data. Is there anyway to attach the objects to the stream-curve and then straighten the curve? I'd…
equant
  • 121
  • 1
  • 6
1
vote
1 answer

Successful CartoDB Python API call doesn't update map?

Using urllib to make my API call to CartdoDB (per Andrew Hill's example here). I'm getting a successful '200' in response, and can get the script to print out my JSON response, but my problem is the map doesn't update after making this SELECT…
bdkauff
  • 225
  • 3
  • 13
1
vote
0 answers

Position road labels above lines with cartocss in Tilemill

I am styling a map in Tilemill and am attempting to place all my road labels above the road lines. By setting (text-dy: 10;) the label should be placed above the line. Unfortunately sometimes the label is placed 10px below the line instead. How…
easinewe
  • 51
  • 3
1
vote
1 answer

Strange Fill Effect When Rendering Railroad Data in d3

I am getting strange results from using d3 to render a GeoJSON of railroad data. The file is very large, 38M, so I include one piece of it: https://gist.github.com/amiri/8202105. Here is my code: https://gist.github.com/amiri/8202126 Of course the…
1
vote
1 answer

cartodb: cannot import csv with geojson column working with cartodb

I uploaded a shape file to cartodb then I exported it as a csv Now I want to load it from the csv file (I'm studying how to generate a csv like that from other sources) I have a geojson strng column with all the info of the geometry (a polygon) then…
opensas
  • 60,462
  • 79
  • 252
  • 386
1
vote
1 answer

shp to topojson conversion : no output

Topojson's doc states: You can specify ESRI shapefiles as input: topojson -o output.json input.shp My .shp file is valid, npm and topojson are installed, and I'am in the input file's directory (cd). This topojson command simply doesn't work on my…
Hugolpz
  • 17,296
  • 26
  • 100
  • 187
1 2 3
8 9