StyleSheet for Outdoors Rendering

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

StyleSheet for Outdoors Rendering

Graham Jones-2
Hi,
I haven't done much with OSM for a few years, so I think I will be behind the times, so wondered if someone could point me in the right direction please?

I want to produce some large (A3 sized at least) printable maps for outdoors use.   It is actually to show the route of a cross country race, so I want to show fences, gates stiles, embankments, steps, as well as land cover and contour lines / hill shading (but not distractions like admin boundaries)

Is there a published carto style available that will show these sort of things available that I could use as a basis for this, rather than start from scratch?   (maybe free-map.org.uk, but I'm not sure if that shows field boundaries etc?) 

Last time I did this sort of thing I used a simple python script called generate_image.py - is that still the best thing to use or has something else taken its place?

Thanks!

Graham.

--
Graham Jones 
Hartlepool, UK.

_______________________________________________
Talk-GB mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/talk-gb
Reply | Threaded
Open this post in threaded view
|

Re: StyleSheet for Outdoors Rendering

Andy Townsend
On 19/03/2017 21:09, Graham Jones wrote:
I want to produce some large (A3 sized at least) printable maps for outdoors use.  

I create a map style designed among other things for England-and-Wales not-very-mountainous outdoor use.  You're welcome to use or copy and modify that.

It is actually to show the route of a cross country race, so I want to show fences, gates stiles, embankments, steps, as well as land cover

... yes to all of those I think.

and contour lines / hill shading
... but no to those, although I'm sure there's documentation out there of how to add that.

(but not distractions like admin boundaries)
... and no admin boundaries.


Is there a published carto style available that will show these sort of things available that I could use as a basis for this, rather than start from scratch?   (maybe free-map.org.uk, but I'm not sure if that shows field boundaries etc?)

Here's what it looks like
https://map.atownsend.org.uk/maps/map/map.html#zoom=16&lat=53.08519&lon=-1.71258

There are two bits to the style - a lua tag transform:
https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua

and the map style itself:
https://github.com/SomeoneElseOSM/openstreetmap-carto-AJT

instructions:
https://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1604_tileserver_load
(you probably won't need to bother with all of that - things like "Updating your database as people edit OpenStreetMap" won't be needed I guess)



Last time I did this sort of thing I used a simple python script called generate_image.py - is that still the best thing to use or has something else taken its place?

That should still work - from memory one thing you'll have to watch out for is that if there are references to fonts in the carto style that you don't have installed it'll complain, and you'll need to edit some style references out of the carto style.

Best Regards,

Andy


_______________________________________________
Talk-GB mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/talk-gb
Reply | Threaded
Open this post in threaded view
|

Re: StyleSheet for Outdoors Rendering

Gregrs
In reply to this post by Graham Jones-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Graham,

>I want to produce some large (A3 sized at least) printable maps for
>outdoors use. It is actually to show the route of a cross country race,
>so I want to show fences, gates stiles, embankments, steps, as well as
>land cover and contour lines / hill shading (but not distractions like
>admin boundaries)
>
>Is there a published carto style available that will show these sort
>of things available that I could use as a basis for this, rather than
>start from scratch? (maybe free-map.org.uk, but I'm not sure if that
>shows field boundaries etc?)

I made a start on a carto style for outdoor use in GB at 1:25k scale but
there is still some way to go. You're welcome to have a look, though:

https://github.com/gregrs-uk/gb-leisure-carto

If nothing else, it might give you some ideas about adding contour lines
using OS Terrain 50 data and perhaps grid lines using Charles Roper's
1km grid shapefile.

>Last time I did this sort of thing I used a simple python script
>called generate_image.py - is that still the best thing to use or has
>something else taken its place?

I find Nik4 (https://github.com/Zverik/Nik4) useful, and if you
don't want to integrate contours and grid lines using Mapnik, you
might also be interested to know that QGIS can add the latter
with some flexibility. I also wrote the print-osgb.py script (see
https://github.com/gregrs-uk/gb-leisure-carto) which you may find useful
if you're using the OSGB projection.

Best wishes,
Greg

- --
Twitter: @gregrs_uk
http://gregrs.dev.openstreetmap.org
PGP key ID: 64907C8A
Fingerprint: EBD1 077F CCDD 841E A505 3FAA D2E8 592E 6490 7C8A

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJY2pXpAAoJEB7WhxSLszZlKJwH/1P1N/dIJYBmMzTyWFMFzTaj
dUpJlV14g7laLoQWyaEJZ4I/1s+o5E5NhIljbsP9MH7MCboCXr4x2zJvrdBNXlck
T+hKbj9GIFYR5Cme2r8RxRWxb3uI1RdsUMHSs5mp4T3dtSuqIKG3MC43J+iON4Vn
aDymYQdTo4yoyk1Je8xVMyHJH3nVJNK6YXBkThoy0UiV3MhqCoLhG3opER8QnmIf
wVj0BfZF1x52AYrtuzmA1qE71DvX3HgeILlltIpr5xfLLgxCqQQ3CfxgDUDHVlNS
T8vu1x6Fuohlhp9ecEUjSnQ7gZJs+sOwjKtesj+queLhMtCNQadM/xdHzMs13tY=
=kIdV
-----END PGP SIGNATURE-----

_______________________________________________
Talk-GB mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/talk-gb
Reply | Threaded
Open this post in threaded view
|

Re: StyleSheet for Outdoors Rendering

Graham Jones-2
Thank you all for your suggestions.
It is all coming back to me slowly now....

I decided to have a go at a large scale monochrome outdoor map.  Two reasons for this:
  1. I want to use it as a background to show the route of a race, so I can show the route as a coloured overlay and it will show up nicely.
  2. I am colourblind and struggle if he difference between features is colour, so I want the difference to be line weight or pattern instead - I can imagine using this for a printed outdoor map for me to use.
Have based it on Greg's work (because it is easier to start out simple so I understand what I am doing, and he has got the OS projection working nicely), adding in features as I realise I need them, plagiarising Andy's code when necessary (I will update the credits in the README)

It is stored here if anyone is interested:
https://github.com/jones139/gb-leisure-carto   (mine are the style files with the '-mono' suffix - it is now so different to Greg's that I should maybe change its name, unless Greg would like a mono map too?)

you can see what it looks like here:
(this gives a scale of about 1:12500 when printed on A4.

The style currently does the area I was interested in ok (although I am minded to make walls and hedges use a pattern rather than a simple line), but I am sure there are important features missing when I look at a different area, so it is a long way of finished.

Thanks again for your help.

Graham.

_______________________________________________
Talk-GB mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/talk-gb
Reply | Threaded
Open this post in threaded view
|

Re: StyleSheet for Outdoors Rendering

Graham Jones-2
One more thing.  Does anyone have a way of generating a map key from a carto style?  Otherwise I might have to write something.

Cheers


Graham 

On 2 Apr 2017 17:21, "Graham Jones" <[hidden email]> wrote:
Thank you all for your suggestions.
It is all coming back to me slowly now....

I decided to have a go at a large scale monochrome outdoor map.  Two reasons for this:
  1. I want to use it as a background to show the route of a race, so I can show the route as a coloured overlay and it will show up nicely.
  2. I am colourblind and struggle if he difference between features is colour, so I want the difference to be line weight or pattern instead - I can imagine using this for a printed outdoor map for me to use.
Have based it on Greg's work (because it is easier to start out simple so I understand what I am doing, and he has got the OS projection working nicely), adding in features as I realise I need them, plagiarising Andy's code when necessary (I will update the credits in the README)

It is stored here if anyone is interested:
https://github.com/jones139/gb-leisure-carto   (mine are the style files with the '-mono' suffix - it is now so different to Greg's that I should maybe change its name, unless Greg would like a mono map too?)

you can see what it looks like here:
(this gives a scale of about 1:12500 when printed on A4.

The style currently does the area I was interested in ok (although I am minded to make walls and hedges use a pattern rather than a simple line), but I am sure there are important features missing when I look at a different area, so it is a long way of finished.

Thanks again for your help.

Graham.

_______________________________________________
Talk-GB mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/talk-gb
Reply | Threaded
Open this post in threaded view
|

Re: StyleSheet for Outdoors Rendering

Andy Townsend
On 03/04/2017 18:08, Graham Jones wrote:
> One more thing.  Does anyone have a way of generating a map key from a
> carto style?  Otherwise I might have to write something.

You might want to start with
https://github.com/gravitystorm/mapnik-legendary .  Not sure how far
that progressed, or what work it'd need to do to take it forward from today.

Best Regards,

Andy (not the author of that repository!)


_______________________________________________
Talk-GB mailing list
[hidden email]
https://lists.openstreetmap.org/listinfo/talk-gb