Re: [OSM-dev-fr] osm2psql, problème de fichier.

2013-03-23 Thread Lucas Nussbaum
On 23/03/13 at 01:17 +0100, Philippe Verdy wrote:
 Je ne vois pas comment un memory mapping en 32-bits peut mapper la
 totalité d'un fichier qui ne tient pas dans un seul segment mémoire
 virtuel 32 bits.

je ne vois pas pourquoi tu parles de memory mapping. C'est open() qui
échoue.

Lucas

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


Re: [Potlatch-dev] [OpenStreetMap] #3860: Potlatch 2.2 does not discard a way's first point when Undo-ing it

2013-03-23 Thread OpenStreetMap
#3860: Potlatch 2.2 does not discard a way's first point when Undo-ing it
+
  Reporter:  Pepou  |  Owner:  potlatch-dev@…
  Type:  defect | Status:  reopened
  Priority:  major  |  Milestone:
 Component:  potlatch2  |Version:  2.0
Resolution: |   Keywords:
+

Comment (by malenki):

 #4406 seems a duplicate of this big.

-- 
Ticket URL: https://trac.openstreetmap.org/ticket/3860#comment:6
OpenStreetMap http://www.openstreetmap.org/
OpenStreetMap is a free editable map of the whole world

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


[OSM-dev] Chicago Hack Weekend

2013-03-23 Thread Ian Dees
Hi list-goers,

Knight-Mozilla OpenNews and myself are hosting a hack weekend April 27th
and 28th in the heart of downtown Chicago.

These sorts of hack weekends are a chance for the OSM developer community
to get together and work on projects to improve and grow the software
behind OSM. If you don't have anything specific to work on and are
well-versed in Rails or JavaScript, Python or Java, there's plenty for you
to help with.

We'll have food and beverages along with some great socializing after long
days of coding or discussing features we'd like to see in OSM.

For more detailed information, please visit the wiki page here:
http://wiki.openstreetmap.org/w/index.php?title=Chicago_Hack_Weekend_April_2013

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


[OSM-dev] Pluggable storage backends for mod_tile / renderd

2013-03-23 Thread Kai Krueger

Hello everyone,

I just wanted to let you know that I have committed a new feature to 
mod_tile / renderd that might be of interest to some.


So far both mod_tile and renderd had the assumption that (meta)tiles 
would be stored on a posix filesystem deeply baked into their 
architecture. While the posix file system it self is a rather flexible 
pluggable storage system with many different backends you can choose 
from, (e.g. from temporary memory based filesystem, over traditional 
local filesystems to network filesystems to cluster filesystems to 
arbitrary usermode filesystems) with growing diversity in osm based 
tileserver setups, this might not be enough.


I have therefore refactored the code of mod_tile and renderd to cleanly 
separate out all storage access routines into a separate API[0], which 
can then easily be implemented by various different storage backends and 
methods.


In the initial commit I have implemented 3 different backends so far.

1) Posix file system storage backend: This backend is equivalent to how 
mod_tile and renderd have so far worked. It uses any posix compliant 
file system to store metatiles.


2) RADOS ( Reliable Autonomic Distributed Object Storage) [1]: Rados is 
a cluster based large scale distributed and redundant object storage, 
which is part of the ceph project. It allows to store objects across 
many servers allowing it to scale up to many terrabyte of data to very 
high performance on commodity hardware.


3) memcached: Memcached is a pure memory based storage system which 
allows for very high performance. As it can also cluster many servers 
together, it can create a large scale memory storage.




I very much suspect that the majority of single server tileserver setups 
will continue to use the posix filesystem backend as it is the easiest 
to use, most robust and for local setups possibly also the fastest 
thanks to built in OS level caching. However, for those setups that need 
to scale up to multi tileserver setups, be it for performance or for 
redundancy / high availability reasons other backends like the cluster 
based rados backend might be preferable.


Renderd has supported multi-server distributed rendering for a long time 
now, in which a central renderd performs queueing and request 
de-duplication and then passing those requests on to an arbitrary number 
of slave renderers who do the actual rendering. Recently mod_tile has 
gained the ability to talk to renderd via a tcp socket (previously it 
was limited to a unix domain socket), so mod_tile and renderd can now 
also live on different servers than renderd and multiple mod_tile 
servers can connect to the dirstributed renderd infrastructure. This 
should make all components of the tile rendering stack arbitrarily and 
separately scalable and redundant, allowing for very large scale 
deployments of many thousand requests per second using mod_tile. 
However, the setup requires all components to have a shared view to the 
storage backend. While this was previously already possible using 
cluster based posix filesystems like glusterFS or using central network 
attached storage, hooking more directly into a cluster storage like 
rados might be beneficial.


In the future hopefully further backends will be implemented. I can 
think of a couple of potential interesting candidates. For example one 
could implement a MBTiles[2] backend, or a backend that stores tiles on 
Amazon S3, or a backend that combines the various other backends in a 
hierarchical way like a combination of memcached for local caching and 
Amazon S3 for large scale storage.


To remain compatible with tirex, I hope to port over this feature to 
tirex as well, at least to the mapnik render backend.


For the moment the rados and memcached backends should still be 
considered somewhat experimental until more thorough testing can be 
conducted, but they should already be fully functional.



Any comments, suggestions, improvements or bug reports are welcome.

Kai

[0] https://github.com/openstreetmap/mod_tile/blob/master/store.h
[1] http://ceph.com/docs/master/rados/
[2] http://mapbox.com/developers/mbtiles/



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


Re: [OSM-dev] mod_tile in other projections?

2013-03-23 Thread Kai Krueger

On 03/07/2013 08:36 AM, Jason Lee wrote:

Hi all,
It might seem an odd question but I'll give it a shot - would 
mod_tile/renderd support the dynamic generation of map tiles in a map 
projection other than web mercator? If not, then would it be 
possible/how difficult would it be to modify the code to support it?
If by dynamic you mean you want to be able to select a different 
projection on every request, then that is currently not possible. 
However I am working on making mod_tile more configurable / 
paramerizable which can possibly be used for different projections per 
request as well. It is initially intended to make seting up rendering of 
multi-lingual maps like [1] easier, but it is basically just an 
extension to be able to pass in an arbitrary string parameter to renderd 
that can then parameterize the mapnik map object in various ways.  With 
this you could have URLs like http://yourtileserver.org/tiles/srs 
27700/0/0/0.png using mod_tile and renderd.


If you mean dynamic generation of tiles that are always in the same 
projection albeit a different one than web mercator, then that should 
probably be doable with little modifications. The main issue I see with 
that is the tile numbering schema. I presume not all projections have 
the same numbering schema of (z^2) x (z^2) tiles per zoom level. At the 
moment there are a number of sanity checks in mod_tile and renderd that 
filter out requests that don't adhere to this restriction. However, it 
should be fairly trivial to modify those checks to reference the 
appropriate checks for the projection you wish.  There are a few other 
minor modifications you would likely need in renderd, but from a quick 
glance over the code, they should be rather easily doable.


Kai


The only other thing I can think of is using MapProxy with Mapnik 
backend but I'm not sure the scalabilty/performance compared to mod_tile.


Thanks and regards,
Jason


[1] http://mlm.jochentopf.com/


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