Re: [OSM-dev] having a regularly updated OSM database?

2012-04-10 Thread Paul Norman
> -Original Message-
> From: Ákos Maróy [mailto:a...@maroy.hu]
> Sent: Tuesday, April 10, 2012 11:22 PM
> To: dev@openstreetmap.org
> Subject: [OSM-dev] having a regularly updated OSM database?
> 
> Hi,
> 
> I wonder what is the best way to have a regularly updated, up-to-date
> OSM database? By regularly, I mean an update about say once a month.

It depends what you want to do with the data. There's pgsnapshot databases,
osm2pgsql databases, apidb databases and plenty of others. 

> Previously I experimented with osm2pgsql, but that took me 5 days to
> import, and the 'update' process was on the same order of magnitude.
> (this is on an i7 3.2GHz system with 12GB RAM).

I expect this is limited by your disks, not by your CPU.
 
> Is there any way that allows for faster updates down the line?

If you're updating it may be easier to keep it continually up to date with
minutely replication diffs.

You might also have some more success turning off slim mode and re-importing
a new planet file each month.

> My understanding is that the osm2pgsql import will import all metadata
> as well, like changeset ids, etc. actually I only need the data itself,
> but such metadata. what might also help (?) is that I don't need all map
> features, but basically just natural features and a limited number of
> man-made features, such as roads between cities, large roads inside
> cities, city & national boundaries, railroads, railway stations, &
> churches.

If you're using osm2pgsql you could edit the style to only include the
features you want.

> is there an efficient way of achieving an update of such data each month
> within a reasonable amount of time, say below 8 hours?

http://wiki.openstreetmap.org/wiki/SotM_2010_session:Tuning_the_Mapnik_Rende
ring_Chain has some information about import times from 2010. The database
is bigger since then but it should be applicable. Make sure you tune your
postgresql configuration.


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] (reverse) GeoCoding on Android

2012-04-10 Thread Graham Jones
Hi All,
I am trying to put together a little android application that works out
where it is, and sends the info on a text message to someone (it is for
someone who can not talk well).
The location finding and SMS bits are working now, but the location is
lat/lon, which is not very friendly for the recipient - I would like an
address.

I could use an internet service for this, but I would really like it to
work without an internet connection, so am thinking of including an OSM
data extract on the phone sd card and trying to use that first, before
falling back to an internet service.

I wondered if anyone knows of any ready made code to process and search OSM
data on Android/java before I write something?   I guess Vespuccii must
have all the parsing stuff in it, but I will be needing to handle more data
that you would have in an editor - can anyone give me any pointers to the
best way to do this on a low powered mobile device?

Thanks

Graham.

-- 
Graham Jones
Hartlepool, UK.
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] having a regularly updated OSM database?

2012-04-10 Thread Ákos Maróy
Hi,

I wonder what is the best way to have a regularly updated, up-to-date
OSM database? By regularly, I mean an update about say once a month.

Previously I experimented with osm2pgsql, but that took me 5 days to
import, and the 'update' process was on the same order of magnitude.
(this is on an i7 3.2GHz system with 12GB RAM).

Is there any way that allows for faster updates down the line?

My understanding is that the osm2pgsql import will import all metadata
as well, like changeset ids, etc. actually I only need the data itself,
but such metadata. what might also help (?) is that I don't need all map
features, but basically just natural features and a limited number of
man-made features, such as roads between cities, large roads inside
cities, city & national boundaries, railroads, railway stations, & churches.

is there an efficient way of achieving an update of such data each month
within a reasonable amount of time, say below 8 hours?


Akos

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Ian Dees
On Tue, Apr 10, 2012 at 5:06 PM, Mike Dupont  wrote:

>
>
> On Tue, Apr 10, 2012 at 11:32 PM, Sven Geggus  > wrote:
>
>> Cartinus  wrote:
>>
>> > That would already be achieved with GPL. You don't need AGPL for that.
>>
>> You might be right. Given that the analogy is as follows:
>> (mapnik=compiler, stylefile=sourcecode, tile=binary)
>>
>> Distributing tiles without stylefile would be like distributing
>> binaries without sourcecode.
>>
>
> The source code of the map is the map data itself. Only rarely do the
> styles *add* information to the map itself.  and that information added is
> even more rarely something that cannot be easily replaced or rewritten. The
> map data itself is a totally different story, it cannot be replaced easily.
>
> The styles are more like inline functions that are expanded in the
> compilation stage.
> Here is a discussion on the linux kernel that covers clever and expressive
> inline functions  http://news.ycombinator.com/item?id=2338142
> and here
> http://linux.slashdot.org/story/11/03/20/1529238/rms-on-header-files-and-derivative-works
>
>
> """That's not the FSF's view. Our view is that just using structure
> definitions, typedefs, enumeration constants, macros with simple
> bodies, etc., is NOT enough to make a derivative work. It would take
> a substantial amount of code (coming from inline functions or macros
> with substantial bodies) to do that. """
> http://lkml.indiana.edu/hypermail/linux/kernel/0301.1/0362.html
>
> Of course the color and layout of the map might be considered a creative
> expression itself and i did not cover that in my previous posting.
> see this post on the issue of copying style :
> http://www.concurringopinions.com/archives/2008/11/post_35.html
>
> and this on the copyright of css :
> http://b0x0rz.deviantart.com/journal/Is-CSS-Copyrightable-214148624
> *"""First, a short answer to a question (for the impatient ones): "Is CSS
> Copyrightable?"*
> No. Absolutely NOT. (note: This is valid only for the CSS code itself not
> any images it may reference.)"""
>

Hi. This is a development mailing list, not a license discussion mailing
list.

Please stay on topic.

Thanks!
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Mike Dupont
On Tue, Apr 10, 2012 at 11:32 PM, Sven Geggus
wrote:

> Cartinus  wrote:
>
> > That would already be achieved with GPL. You don't need AGPL for that.
>
> You might be right. Given that the analogy is as follows:
> (mapnik=compiler, stylefile=sourcecode, tile=binary)
>
> Distributing tiles without stylefile would be like distributing
> binaries without sourcecode.
>

The source code of the map is the map data itself. Only rarely do the
styles *add* information to the map itself.  and that information added is
even more rarely something that cannot be easily replaced or rewritten. The
map data itself is a totally different story, it cannot be replaced easily.

The styles are more like inline functions that are expanded in the
compilation stage.
Here is a discussion on the linux kernel that covers clever and expressive
inline functions  http://news.ycombinator.com/item?id=2338142
and here
http://linux.slashdot.org/story/11/03/20/1529238/rms-on-header-files-and-derivative-works


"""That's not the FSF's view. Our view is that just using structure
definitions, typedefs, enumeration constants, macros with simple
bodies, etc., is NOT enough to make a derivative work. It would take
a substantial amount of code (coming from inline functions or macros
with substantial bodies) to do that. """
http://lkml.indiana.edu/hypermail/linux/kernel/0301.1/0362.html

Of course the color and layout of the map might be considered a creative
expression itself and i did not cover that in my previous posting.
see this post on the issue of copying style :
http://www.concurringopinions.com/archives/2008/11/post_35.html

and this on the copyright of css :
http://b0x0rz.deviantart.com/journal/Is-CSS-Copyrightable-214148624
*"""First, a short answer to a question (for the impatient ones): "Is CSS
Copyrightable?"*
No. Absolutely NOT. (note: This is valid only for the CSS code itself not
any images it may reference.)"""

thanks

mike


> --

James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Mike Dupont
On Tue, Apr 10, 2012 at 11:06 PM, Cartinus  wrote:

> That would already be achieved with GPL. You don't need AGPL for that.


Well AGPL http://www.gnu.org/licenses/agpl-3.0.html covers public propagation
and network interaction, the GPL does not. Under the gpl you would be able
to create modified styles on your own server and not publish them.

"""To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for infringement
under applicable copyright law, except executing it on a computer or
modifying a private copy. 

The issue here of style sheets is that they are not conveyed to the users
via the tiles. The stylesheets are not contained directly in the tiles only
indirectly, and the user does not interact with them directly only
indirectly.

I think that you can execute a private copy of a style without incurring
any copyright issues at all, except for constants contained in those styles
that are copied into the resulting map.

It is a question of the tiles are even a derived work of the styles
exactly,

lets think about this longer, but lets say, the color red is contained in
the style to show that a street is under construction. This color red is
displayed on a tile.

The color of the pixels contains data that is copied from the style, but
the rules to select that style are not, the definition of the style is not
conveyed, only the effect of that style is.
For example if were to copy trademarked strings, top secret information etc
that would be an issue. The copyright issues of styles are limited to that
which is copied into the map.  So symbols, string literals, trademarked
strings etc would all be issues to look at deeply.

Now if you are to distribute these styles in a mapcss that would be a
different issue, but I am talking here about mapnik rendering with no user
interaction with the rendering process.

This is similar to the issue of providing the output of a modified gcc
compiler that compiles the users source code, you would also not have to
provide your private modications to the compiler, I guess if the compiler
was licensed under the agpl you could not make a public webservice .

The same thing would be with providing an online web service that would
render on demand for users, maybe that in theory could fall under
propagation of a style sheet if you were provide an interactive service
that needs to use an AGPLed styles.
I am still not clear on how much interaction here would be an issue, if
your software itself is interacted with and you only read the agpled styles
as data we might have a very weak case for AGPLd protection.

mike

-- 
James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Sven Geggus
Cartinus  wrote:

> That would already be achieved with GPL. You don't need AGPL for that.

You might be right. Given that the analogy is as follows:
(mapnik=compiler, stylefile=sourcecode, tile=binary)

Distributing tiles without stylefile would be like distributing
binaries without sourcecode.

Sven

-- 
"Remember, democracy never lasts long. It soon wastes itself,
exhausts and murders itself. There never was a democracy yet
that did not commit suicide." (John Quincy Adams)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Cartinus
On 04/10/2012 04:06 PM, Sven Geggus wrote:
> If somebody takes the style and runs a derived style on his own
> tileserver his changes should be contributed back to the project (IMO).

That would already be achieved with GPL. You don't need AGPL for that.

---
m.v.g.,
Cartinus

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Frederik Ramm

Hi,

On 04/10/2012 06:56 PM, Paul Hartmann wrote:

On 04/10/2012 05:31 PM, Sven Geggus wrote:

People are already doing bussiness using proprietary styles (e.g.
http://francetopo.fr/) [...]


There are also businesses publishing styles under permissive license (MIT):
https://github.com/MapQuest/MapQuest-Mapnik-Style


If I am not mistaken, many of the Stamen and Development Seed/Mapbox 
styles are open too.


Bye
Frederik

--
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Paul Hartmann
On 04/10/2012 05:31 PM, Sven Geggus wrote:
> People are already doing bussiness using proprietary styles (e.g.
> http://francetopo.fr/) [...]

There are also businesses publishing styles under permissive license (MIT):
https://github.com/MapQuest/MapQuest-Mapnik-Style

Paul

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Paul Hartmann
2012/4/10 Mike  Dupont :
> On Tue, Apr 10, 2012 at 4:43 PM, Komяpa  wrote:
>>
>> If mapnik sytlesheet will become AGPL we'll have to get rid of our
>> local instance
>
> or keep the old version that has a different license, which is unknown.

There is no such thing as a different unknown old license. At the
moment there simply seems to be an informal understanding, that the
authors of the OSM-Mapnik style don't sue their users, especially OSM.
:)

But if any author insists, you'll have to remove their contributions
from your local copy or stop using the style.

Paul

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Sven Geggus
Komяpa  wrote:

> If mapnik sytlesheet will become AGPL we'll have to get rid of our
> local instance, just to make sure our stylesheet won't be affected.

I have not been talking about changing the (unknown) licence of the original
mapnik stylesheet but of our germanstyle which is a derivative.

I'm certainly not willing to invest any time in some public domain thing
which anybody could just use and fork into a proprietary version.

Probably there is a better copyleft type licence than AGPL for this kind of
stuff.

> Too viral licenses are hard to deal with and should really be avoided
> unless you've got a really really good reason.

Hm, I did not intend to start a BSD vs. GPL Flamewar :(

People are already doing bussiness using proprietary styles (e.g.
http://francetopo.fr/) which is fine for me as long as they do not include
my own work.

Sven

-- 
Das Internet ist kein rechtsfreier Raum, das Internet ist aber auch
kein bürgerrechtsfreier Raum. (Wolfgang Wieland Bündnis 90/Die Grünen)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Mike Dupont
On Tue, Apr 10, 2012 at 4:43 PM, Komяpa  wrote:

> If mapnik sytlesheet will become AGPL we'll have to get rid of our
> local instance
>

or keep the old version that has a different license, which is unknown.
mike


-- 
James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Komяpa
> If somebody takes the style and runs a derived style on his own
> tileserver his changes should be contributed back to the project (IMO).

If mapnik sytlesheet will become AGPL we'll have to get rid of our
local instance, just to make sure our stylesheet won't be affected.
Too viral licenses are hard to deal with and should really be avoided
unless you've got a really really good reason.


-- 
Darafei "Komяpa" Praliaskouski
OSM BY Team - http://openstreetmap.by/
xmpp:m...@komzpa.net mailto:m...@komzpa.net

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Sven Geggus
Richard Fairhurst  wrote:

> The shields are mine, and I think the core highway colours (motorway, trunk,
> primary, secondary) might be too, and I'm happy to see them go under WTFPL.
> (But, AGPL, ugh.)

The reason why I have been thinking about AGPL ist that Mapnik stuff is
usually deployed as a webservice and what I would like to achieve is the
following:

If somebody takes the style and runs a derived style on his own
tileserver his changes should be contributed back to the project (IMO).


Regards

Sven

-- 
If you can spend five minutes on the Internet and do not run Linux,
you're a genius. (Dirk Hohndel)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Richard Fairhurst
Paul Hartmann wrote:
> I've started emailing the authors some time ago. The main 
> contributors (Steve Chilton and Lennard) would license their 
> work under the terms of CC0. So do the following 
> committers: artem, nick, spaetz, tomhughes. A few people 
> I haven't contacted so far.

The shields are mine, and I think the core highway colours (motorway, trunk,
primary, secondary) might be too, and I'm happy to see them go under WTFPL.
(But, AGPL, ugh.)

cheers
Richard



--
View this message in context: 
http://gis.19327.n5.nabble.com/Licence-of-the-Mapnik-style-tp5629768p5629893.html
Sent from the Developer Discussion mailing list archive at Nabble.com.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Paul Hartmann
On 04/10/2012 02:28 PM, Sven Geggus wrote:
> Hello altogether,
> 
> with the upcoming adoption of the ODBL for OSM data the licence of common
> Mapnik styles will definitely get more important!

I've started emailing the authors some time ago. The main contributors
(Steve Chilton and Lennard) would license their work under the terms of
CC0. So do the following committers: artem, nick, spaetz, tomhughes. A
few people I haven't contacted so far.

> I strongly feel the need of a decent map style to be distributed under a
> copyleft style licence (IMO Affero GPL would be best suited, but IANAL) to
> make shure that any future enhancements will also be freely available.

Copyleft vs. PD is a religious debate, so it's not much use to argue
here. Let me just point out, that I've started the licensing in order to
ship a Mapnik style[1] with JOSM, which won't be possible with AGPL.

Also the authors obviously have the last word on this.

[1]


Paul

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] Licence of the Mapnik style?

2012-04-10 Thread Sven Geggus
Hello altogether,

with the upcoming adoption of the ODBL for OSM data the licence of common
Mapnik styles will definitely get more important!

I strongly feel the need of a decent map style to be distributed under a
copyleft style licence (IMO Affero GPL would be best suited, but IANAL) to
make shure that any future enhancements will also be freely available.

Currently the licence of a lot of stuff hosted at
http://svn.openstreetmap.org/ including the current mapnik style seems to be
unclear.

The reason why I come up with this question now is that I recently took over
maintenance of the german style (converting it to mapnik2) which started as
a derivative of the international style. Starting from the changes I made I
would like to distribute this style under the terms of the Affero GPL, but I
can not do this without knowledge about the licence of the international
style.


Regards

Sven

-- 
"The term "any key" does not refer to a particular key on the keyboard. It
simply means to strike any one of the keys on your keyboard or handheld
screen." (Compaq FAQ Entry 2859)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev