[OSM-dev] [osm3d] rendering area data

2012-03-31 Thread Preet
Hey all,

There are quite a few devs working with OpenStreetMap data in 3d and
judging from screenshots, they've been able to do some pretty awesome
stuff so far. I'm trying to do something similar and wanted some
feedback, specifically for rendering area data, that is, anything that
falls under the 'area' primitive in terms of OpenStreetMap data --
buildings, borders, etc. I'm particularly interested in how to convert
area/relation information from *.osm xml data into polygons that can
be rendered (decomposed into triangles).

Starting from the osm area primitive info [1], it's possible to get
contours (ie node lists) for outer geometry and holes within the area.
This data can then be fed into something like poly2tri [2], which is a
lib that will triangulate simple polygons (holes can be specified
too). The triangulated data is a mesh that can be fed into any
renderer, like OpenGL. However, we can't assume all area data are
simple polys; [4] shows some building geometry that's not strictly
simple. So my main problem/question to devs that are rendering
buildings/area geometry in 3d is:

* How do you build the 3d geometry for areas that are potentially
complex polygons?

[1] http://wiki.openstreetmap.org/wiki/Relation:multipolygon#Usage
[2] http://code.google.com/p/poly2tri/
[3] http://i.stack.imgur.com/W8Uym.png


Regards,

Preet

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


Re: [OSM-dev] Training during read only database period

2012-03-31 Thread Mike Dupont
Hello, the servers my tools are hosted are on the ones I have availabe,
I would love to have a dev account on osm, can you please make me an
account and
I will install my tool there.
thanks
mike

On Sat, Mar 31, 2012 at 11:05 PM, Serge Wroclawski wrote:

> H.S.,
>
> It means that while the database is in transition, no additional
> uploads can be performed. This really isn't a dev question, so it
> should be going on the talk list.
>
> But I want to point out to you, like Toby has, that none of the
> services Mike Dupont has pointed you to will result in your data going
> to OpenStreetMap, but rather to OSM competitors.
>
> Mike, you should make it clear to a use who is asking about
> contributing to the project that these servers/services you're
> pointing out are *not* OpenStreetMap, but are in fact competitors to
> the OSM project.
>
> - Serge
>
> ___
> dev mailing list
> dev@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>



-- 
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] Training during read only database period

2012-03-31 Thread Serge Wroclawski
H.S.,

It means that while the database is in transition, no additional
uploads can be performed. This really isn't a dev question, so it
should be going on the talk list.

But I want to point out to you, like Toby has, that none of the
services Mike Dupont has pointed you to will result in your data going
to OpenStreetMap, but rather to OSM competitors.

Mike, you should make it clear to a use who is asking about
contributing to the project that these servers/services you're
pointing out are *not* OpenStreetMap, but are in fact competitors to
the OSM project.

- Serge

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


Re: [OSM-dev] Training during read only database period

2012-03-31 Thread Mike Dupont
For the record, I am working on code, programs people can run on their own.
my API server can be run on any linux server and you can connect and client
to it.

 > code is here https://github.com/h4ck3rm1k3/FOSM-Api, you can easily set
> it
> > up, requires no database, the only thing that is hardcoded is the path
> where
> > it writes the output, i will have to make that configurable.
>

Lets keep the discussion on dev to be technical, I am working on free
software that is usable for all people and not tied to a specific server.

if you need help to install this yourself, let me know.
I am working on tools to make osm totally decentralized so we dont need a
central big database server, and I hope that the osm project will benefit
from this.

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


Re: [OSM-dev] Training during read only database period

2012-03-31 Thread Toby Murray
On Sat, Mar 31, 2012 at 1:22 PM, Mike  Dupont
 wrote:
> Yes, we have the fosm.org server you can use commonmap.com
>
> and I have today implemented a test server with a fake oauth that allows you
> to edit with potlach, josm and merkaartor
> code is here https://github.com/h4ck3rm1k3/FOSM-Api, you can easily set it
> up, requires no database, the only thing that is hardcoded is the path where
> it writes the output, i will have to make that configurable.
>
> The potlatch is installed here you can try it.
> pine02.fosm.org/random.dev.openstreetmap.org/potlatch2/potlatch2.html
>
> the api root is here : you can configure your client to use it.
> pine02.fosm.org/FOSM-Api/OSM-API-Proxy/public/dispatch.cgi,
>
> the changesets are written here :
> http://pine02.fosm.org/FOSM-Api/OSM-API-Proxy/public/changesets/


For the record, none of these are OSM services. FOSM is a fork of OSM
data performed by a few people who were not happy with the license
change and decided to make their own OSM-like project that will remain
under a creative commons license. Also, last I knew they didn't do
live rendering of changes so that may not be as useful for your
purposes.

If you were planning on using JOSM, you should still be able to
download data and make changes locally. You just won't be able to
upload them. I'm not sure if Potlatch will be available at all or not.

One thing you could do is download data and edit it in JOSM and then
save it out to a file on disk and render it locally using, for
example, Maperitive. I have a blog post about using Maperitive if you
would like to investigate this more:
http://ksmapper.blogspot.com/2011/08/simple-openstreetmap-tile-rendering.html

Toby

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


Re: [OSM-dev] Training during read only database period

2012-03-31 Thread Mike Dupont
Yes, we have the fosm.org server you can use commonmap.com

and I have today implemented a test server with a fake oauth that allows
you to edit with potlach, josm and merkaartor
code is here https://github.com/h4ck3rm1k3/FOSM-Api, you can easily set it
up, requires no database, the only thing that is hardcoded is the path
where it writes the output, i will have to make that configurable.

The potlatch is installed here you can try it.
pine02.fosm.org/random.dev.openstreetmap.org/potlatch2/potlatch2.html

the api root is here : you can configure your client to use it.
pine02.fosm.org/FOSM-Api/OSM-API-Proxy/public/dispatch.cgi,

the changesets are written here :
http://pine02.fosm.org/FOSM-Api/OSM-API-Proxy/public/changesets/

let me know if you need any help.
mike


On Sat, Mar 31, 2012 at 8:15 PM, H.S.Rai  wrote:

> Can anyone help me on my comment:
>
> "We have also planned an event in which particpants from various
> country are involved during this period. This event can’t be
> rescheduled. May I know, if there is any way (some other server),
> where we can upload edits, user may see rendering their edits, which
> may be lost or may be added to database at the end of your migration.
> Any tip, help, alternate will be a big relief to us."
>
> at:
>
>
> http://blog.osmfoundation.org/2012/03/27/service-schedule-march-april-2012/comment-page-1/#comment-5609
>
> With regards,
>
> --
> H.S.Rai
>
> ___
> dev mailing list
> dev@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>



-- 
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


[OSM-dev] Training during read only database period

2012-03-31 Thread H.S.Rai
Can anyone help me on my comment:

"We have also planned an event in which particpants from various
country are involved during this period. This event can’t be
rescheduled. May I know, if there is any way (some other server),
where we can upload edits, user may see rendering their edits, which
may be lost or may be added to database at the end of your migration.
Any tip, help, alternate will be a big relief to us."

at:

http://blog.osmfoundation.org/2012/03/27/service-schedule-march-april-2012/comment-page-1/#comment-5609

With regards,

-- 
H.S.Rai

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


[OSM-dev] different rendering with mapnik based on area?

2012-03-31 Thread Sven Geggus
Hi there,

is it possible to have different rendering rules based on the area
where rendring takes place using an ordinary mapnik rendering stack
(osm2pgsql+mod_tile+tirex)?

What I would like to do (for now) is implementing a name rendering
logic for the german mapnik style:

name outside europe: coalesce("name:de",int_name,name) 
name inside europe:  coalesce("name:de",name,int_name)

A rough bounding box around europe would be good enough for this
purpose.

Sven

-- 
Das allgemeine Persönlichkeitsrecht (Art. 2 Abs.1 i.V.m. Art.1 Abs. 1GG)
umfasst das Grundrecht auf Gewährleistung der Vertraulichkeit und Integrität
informationstechnischer Systeme. (BVerfG, 1BvR 370/07)
/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] Osm2pgsql: 2 linestrings in a way?

2012-03-31 Thread Frederik Ramm

Hi,

On 03/31/2012 11:16 AM, Martin Koppenhoefer wrote:

negative IDs are from relations, so it is normal that there is more
than one linestring (e.g. in the case of a route-relation).


Normally a route relation would be combined into one linestring (unless 
it exceeds a certain length); in this case, the relation is a route that 
cannot be combined into one line:


http://www.openstreetmap.org/browse/relation/2000800

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] Osm2pgsql: 2 linestrings in a way?

2012-03-31 Thread Martin Koppenhoefer
Am 31. März 2012 10:59 schrieb yvecai :
> Hi,
> Is there a reason why a 'way' can contain more than one linestring in a
> osm2pgsql import to postgis?
>
> # select geometrytype(way) from planet_osm_line where osm_id = -2000800;


negative IDs are from relations, so it is normal that there is more
than one linestring (e.g. in the case of a route-relation).

cheers,
Martin

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


[OSM-dev] Osm2pgsql: 2 linestrings in a way?

2012-03-31 Thread yvecai

Hi,
Is there a reason why a 'way' can contain more than one linestring in a 
osm2pgsql import to postgis?


# select geometrytype(way) from planet_osm_line where osm_id = -2000800;
 geometrytype
--
 LINESTRING
 LINESTRING
 LINESTRING
 LINESTRING
 LINESTRING
(5 rows)

An additionnal question, is, what is the purpose of the -G option at import?

Yves


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