Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tilemill documentation #2143

Closed
wants to merge 8 commits into from

Conversation

Ircama
Copy link
Contributor

@Ircama Ircama commented Jun 4, 2016

Contributing to OpenStreetMap-Carto through Tilemill with Windows.

Added documentation about contributing to OpenStreetMap-Carto through Tilemill with Windows.

This procedure allows implementing a working installation on Win32 and Win64, as well as contributing to OpenStreetMap-Carto via GitHub.

There are still unclear aspects through a Windows PC (32 and 64 bit OS):

  • how to install Kosmtik with Windows, including the latest version of Mapnik
  • how to upgrade Tilemill, downloading the latest drop from GitHub, after the first Windows installation is performed through the EXE setup
  • how to upgrade the Mapnik version of Tilemill with Windows to the latest one found in GitHub
  • where to find the latest Windows executable files of Mapnik (e.g., 3.5.13 for Win32 and for win64).

None of them currently succeed with Windows, neither with Cygwin.

Ircama added 6 commits May 30, 2016 13:18
Revised min zoom visibility for some elements
Revert "Revised min zoom visibility for some elements"
Added documentation about contributing to OpenStreetMap-Carto through Tilemill with Windows.

The procedure allows implementing a working installation on Win32 and Win64, as well as contributing to OpenStreetMap-Carto via GitHub.

There are still unclear aspects through a Windows PC (32 and 64 bit OS):
- how to install Kosmtik with Windows, including the latest version of Mapnik
- how to upgrade Tilemill, downloading the latest drop from GitHub, after the first Windows installation is performed through the EXE setup
- how to upgrade the Mapnik version of Tilemill with Windows to the latest one found in GitHub
- where to find the latest Windows executable files of Mapnik (e.g., 3.5.13 for Win32 and for win64).

None of them currently succeed with Windows, neither with Cygwin.

Use osm2pgsql to import an OSM extract into the Postgres database.

Notice that the configuration of db tables/columns used by osm2pgsql is defined in `openstreetmap-carto.style`. Modifying `openstreetmap-carto.style` requires reloading the production database. Do not change this file if some columns you need are missing; use instead *hstore* (check �Retrieve data from an HSTORE column�; example: `tags->'<column name>'::text AS <tag>`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not have hstore available as part of this style.

@Ircama
Copy link
Contributor Author

Ircama commented Jun 5, 2016

I was wrong in creating this branch from an incorrect commit.
I then tried in many ways to rebase/reset, unsuccessfully.
Maybe it is better that I newly recreate it after all revisions have been done (it is just one file that I added, together with an update to another).
BTW, If anyone would like to suggest rephrasing, is welcomed of course; this guide is just a collection of quick notes I jotted down while finding a way to manage openstreetmap-carto with Windows.

This doesn't seem tilemill specific

If you are referring to the need of “Guidelines to edit the stilesheets” inside this guide, I just wanted to avoid that Windows users, after following all these long steps, forget to study the main documentation pages of this project.

We do not have hstore available as part of this style.

Do you feel we will have to wait for long to have hstore merged?

@matkoniecz
Copy link
Contributor

matkoniecz commented Jun 6, 2016

I then tried in many ways to rebase/reset, unsuccessfully.

According to my test

g rebase -i master

followed by squashing all commits in one

pick d1b9f47 Branch reset to master
s 22cdbb2 Revised min zoom visibility for some elements
s 5c5aadf (revised comment)
s 3a2644e Revert "Revised min zoom visibility for some elements"
s e0b3c43 Contributing to OpenStreetMap-Carto through Tilemill with Windows

and editing comment to drop unneded parts resulted in https://github.com/matkoniecz/openstreetmap-carto/commits/test with all content merged in one commit (matkoniecz@15975ec)

Note that pushing to remote repository afte rebase requires --force argument.

@matkoniecz
Copy link
Contributor

Do you feel we will have to wait for long to have hstore merged?

It would be better to rephrase it and mention hstore once it is merged (work on it is ongoing for a realy long time).

@pnorman
Copy link
Collaborator

pnorman commented Jun 7, 2016

We intentionally keep the scope of our installation instructions small and refer to other sources like switch2osm for detailed instructions. We should be doing the same here.

@matthijsmelissen
Copy link
Collaborator

@pnorman So what concrete actions do need to be taken?

@pnorman
Copy link
Collaborator

pnorman commented Jul 25, 2016

Removing instructions for installing Tilemill. The only instructions should be ones for OpenStreetMap Carto.

@kocio-pl
Copy link
Collaborator

kocio-pl commented Aug 4, 2016

So I guess this PR should only change few lines about Linux in INSTALL.md
(without https://github.com/gravitystorm/openstreetmap-carto/pull/2143/files#diff-7d442b7eb49f5fc377f51e74b291cfc1R7)? This ticket should be renamed then.

@Ircama
Copy link
Contributor Author

Ircama commented Aug 4, 2016

OK, I can move these instructions to switch2osm and update them, closing this PR then.
Is there a GitHub repository and some guidelines to update switch2osm?

@SomeoneElseOSM
Copy link
Contributor

https://switch2osm.org was set up by Richard Fairhurst ( @systemed ) though a few other people (including me) have access. There's also https://switch2osm.github.io , which I think is an initiative of @pnorman , but that's not quite complete yet.

If you want other people to see https://github.com/Ircama/openstreetmap-carto/blob/d22064b02d7bc7c8dada7ec460ab13592c7ac635/TILEMILL.md and maybe provide feedback on it, perhaps write an OSM diary entry or mailing list post referencing it? I'd also post an answer to https://help.openstreetmap.org/questions/11715/easiest-way-of-importing-osm-data-into-tilemill-using-windows .

Also does it definitely work with current "OSM carto". Someone reported at https://help.openstreetmap.org/questions/49645/problem-loading-openstreetmap-carto-project-into-tile-mill a problem with highway shields.

Ircama added a commit to Ircama/switch2osm.github.io that referenced this pull request Aug 13, 2016
Installing Tilemill and OpenStreetMap-Carto on Windows

Ref. to gravitystorm/openstreetmap-carto#2143
@Ircama
Copy link
Contributor Author

Ircama commented Aug 13, 2016

@SomeoneElseOSM: thanks for your post. At the end I provided an updated version at https://github.com/Ircama/switch2osm.github.io/blob/tilemill-osm-carto/tilemill-osm-carto.md

You are free to publish it to https://switch2osm.org.

There's also https://switch2osm.github.io , which I think is an initiative of @pnorman , but that's not quite complete yet.

I made a PR to that initiative.

I'd also post an answer to https://help.openstreetmap.org/questions/11715/easiest-way-of-importing-osm-data-into-tilemill-using-windows .

I checked that question and I think that the link in the answer is missing some information which should be included in my description.

Also does it definitely work with current "OSM carto". Someone reported at https://help.openstreetmap.org/questions/49645/problem-loading-openstreetmap-carto-project-into-tile-mill a problem with highway shields.

Yes it works at the moment.

@Ircama Ircama closed this Aug 13, 2016
@matthijsmelissen
Copy link
Collaborator

@pnorman I notice we have both https://switch2osm.org/ and http://switch2osm.github.io/. What is the difference between both websites?

@matthijsmelissen
Copy link
Collaborator

Is somebody else working on documentation at the moment? I seem to remember another ticket, but can't find it right now.

@Ircama
Copy link
Contributor Author

Ircama commented Sep 18, 2016

Is somebody else working on documentation at the moment? I seem to remember another ticket, but can't find it right now.

Some other references (none merged):

Besides I'm maintaining some rather updated document here (at least until I don't get bored).

@matthijsmelissen
Copy link
Collaborator

Thanks!

@systemed
Copy link
Contributor

@math1985 switch2osm.org is the live Wordpress-hosted site, switch2osm.github.io is an in-progress Github-hosted rewrite.

@matthijsmelissen
Copy link
Collaborator

@systemed And how does this relate to the draft at https://hackpad.com/TileMill-I6rxRVszKMv ? Has this draft already been merged in one of the other projects, of is it an independent 'branch'?

@systemed
Copy link
Contributor

@math1985 I think that's largely outdated given that most people use Kosmtik these days, not Tilemill.

@matthijsmelissen
Copy link
Collaborator

@systemed Do you still maintain https://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/? Osm2pgsql now uses cmake instead of autogen, so the described method of installing will not work.

In 16.04, the packages libtiff4-dev and postgresql-9.3-postgis-2.1 (now postgresql-9.5-postgis-2.2) do not exist anymore. Apart from that, I expect not much has changed.

@Ircama Ircama deleted the Tilemill-Documentation branch July 8, 2017 10:41
@kocio-pl
Copy link
Collaborator

TileMill might be back some day: I was able to open our project from master and this PR is already merged:

tilemill-project/tilemill#2614

however there is still a problem with saving:

tilemill-project/tilemill#2615

I also try to make a Mapnik build for Windows (see mapbox/windows-builds#104 (comment)) to allow the new release (macOS build is still ahead):

tilemill-project/tilemill#2567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants