These are chat archives for fieldpapers/fieldpapers

12th
Oct 2015
Matthew Cengia
@mattcen
Oct 12 2015 02:46
Hi folks! I like the fact that Fieldpapers can display gridlines, and would like to use similar functionality for an idea I've got for a Mapbox TileMill style, so want to understand how Fieldpapers does it. Whereabouts in the source do I need to look to find this?
Alan McConchie
@almccon
Oct 12 2015 02:49
You're referring to the UTM grid?
The UTM grid isn't generated in the Fieldpapers code. It's a separate pre-generated tileset that FP adds as an overlay.
Matthew Cengia
@mattcen
Oct 12 2015 02:51
Yes, that's what I'm referring to. Right, so I'd need to find out where those tiles are hosted and whether I can use them...
Alan McConchie
@almccon
Oct 12 2015 02:53
They're hosted by Stamen. The URL is in the code (https://github.com/fieldpapers/fp-web/blob/master/app/models/atlas.rb#L50) so it's not exactly a secret, but nor do we publicize it widely.
Feel free to use that tile URL if you're just doing a small project or an experiment. If you plan to build an app that depends on them, please check back with us at Stamen so we can make sure they will support your level of use.
Matthew Cengia
@mattcen
Oct 12 2015 02:57
Yeah, fair enough. Ideally I'd like to generate my own, but I've no idea what'd be involved or whether it's worth the effort. It's just a pet project currently. (The overall goal is to be able to generate printable topographic-style maps that contain (a) UTM grid (b) contour lines (c) legend, and are a slightly higher resolution than those generated by FP; I've not found a service that does all of the above yet).
Thanks :)
Alan McConchie
@almccon
Oct 12 2015 02:58
I don't actually know how we generate those UTM tiles, actually. I'm not sure if we made them all at one point and then cached them, or if we're running a service that generates new ones as needed. If the latter, then there must be code somewhere that you could look at to see how we do it. If the former, then whatever code generated them in the first place might be harder to find. @mojodna would know for sure.
Out of curiosity, are you generating your own contour lines, or are you using the ones in the Mapbox vector tiles? If you're making your own, you might be interested in one of our other fine projects (in progress): https://github.com/openterrain/openterrain
Matthew Cengia
@mattcen
Oct 12 2015 03:09
I've not looked into exactly how to deal with contours yet, but a friend of mine (https://github.com/stevage/cycletour.org) generates his own I think for http://cycletour.org. I'll take a look at that though, thanks :)
For the record, I'm a scout leader and linux sysadmin who loves maps but doesn't have a mapping or geospatial background; I'm still working out how everything fits together. I finally got a working TileMill/PostGIS installation working on the weekend after months of trying in my little free time, which is good because I'm giving an "intro to TileMill talk" in about 2 weeks, right after I finish learning the basics :-/!
Alan McConchie
@almccon
Oct 12 2015 03:21
Great, good luck!
Matthew Cengia
@mattcen
Oct 12 2015 03:25
Thanks!
Seth Fitzsimmons
@mojodna
Oct 12 2015 17:57
@mattcen: the UTM grids are generated programatically by http://tilestache.org/doc/TileStache.Goodies.Providers.Grid.html
it may be possible to find a shapefile layer to use in tilemill