Re: [OSM-dev-fr] Générer des fichiers SVG par script...

2012-03-06 Thread Christian Quest
Ca y est, deux fichiers SVG: régions et départements

Je les ai mis ici: http://www.openstreetmap.fr/contours-departements-et-regions


Et voici la requête qui va bien et surtout qui me sort des coordonnées
manipulables:


SELECT 
st_assvg(st_simplify(st_transscale(st_transform(st_linemerge(st_collect(linestring)),2154),-99050,-7123242,0.001,0.001),0.05),1,3)
as svg FROM (SELECT w.id, min(r.id) as r1, max(r.id) as r2
FROM relations r
JOIN relation_members m ON (m.relation_id=r.id)
JOIN ways w ON (w.id=m.member_id)
WHERE m.member_type='W'
AND r.tags ? 'type'
AND r.tags-'admin_level'='4'
AND r.tags-'boundary'='administrative'
AND r.tags-'type'='boundary'
AND r.tags-'ref_NUTS' LIKE 'FR%'
GROUP BY w.id) AS w JOIN ways ON (w.id=ways.id) GROUP BY r1,r2;


99050 et 7123242 sont les Xmin et Ymax des coordonnées Lambert de mes
objets que j'obtiens par une autre requête préalable avec un
min(ST_xmin(linestring)) et max(ST_Ymax(linestring)).

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


Re: [OSM-dev-fr] Générer des fichiers SVG par script...

2012-03-06 Thread sly (sylvain letuffe)
Le lundi 5 mars 2012 17:45:01, Christian Quest a écrit :
 Les solutions de type OSMarender, Mapnik ne sont malheureusement pas
 adaptées pour une réutilisation graphique.

C'est ce que j'avais fais il y a quelques années avec mapnik+cairo pour sortir 
du svg.
L'avantage, ou l'inconvénient (je ne saurais dire) c'est que je pouvais 
appliquer des styles plus dynamiquement (remplissage, bordure, texte, etc.)

Si tu veux te faire une idée, j'avais généré ça :
http://beta.letuffe.org/ressources/cartes/

J'avais aussi les régions et départements il me semble mais je ne sais plus où 
j'ai mis ça.

L'avantage pour moi d'utiliser mapnik c'est que je l'utilisais déjà pour 
générer des bitmap, j'avais donc juste un paramètre à changer pour avoir du 
svg, mais en effet, vu la solution simple que tu semble avoir trouvé, ça semble 
plus rapide

-- 
sly (sylvain letuffe)

___
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

2012-03-06 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:  closed
  Priority:  major  |   Milestone:
 Component:  potlatch2  | Version:  2.0   
Resolution:  fixed  |Keywords:
+---

Comment(by Pepou):

 Thanks, it was indeed a frequent nuisance.

-- 
Ticket URL: https://trac.openstreetmap.org/ticket/3860#comment:3
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


[Potlatch-dev] [OpenStreetMap] #4270: Usability: Potlatch2 + TrackPad Problems

2012-03-06 Thread OpenStreetMap
#4270: Usability: Potlatch2 + TrackPad Problems
---+
 Reporter:  petzlux|   Owner:  
potlatch-dev@…
 Type:  defect |  Status:  new  
 
 Priority:  minor  |   Milestone:   
 
Component:  potlatch2  | Version:  2.0  
 
 Keywords:  usability, feature, geometry, editing  |  
---+
 Having run another novice mapping party, one important observation was
 that using Potlatch2 with a trackpad introduces problems.

 For example, when creating a blank POI, the user would need to doubleclick
 to create the point.

 Now what happens with trackpads (especially Macbook ones where you have to
 physically depress the trackpad for a click), is that there would be a
 slight movement introduced between the two clicks.

 Problem:
 Potlatch2 doesnt seem to recognise a double-click to create a POI if  the
 mouseposition changes between clicks, instead going into line creation
 mode. This confuses especially novice users, who don't then know how to
 cancel this unwanted behaviour.

 Solution:
 Introduce a tolerance for position changes between clicks where a POI is
 still created.

-- 
Ticket URL: https://trac.openstreetmap.org/ticket/4270
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


Re: [OSM-dev] replicate-sequences tool bust?

2012-03-06 Thread Peter Körner

Hi

I'm currently switching to another mail-provider, sorry for the bounces.

In the toolserver the server running my cronjob went down during the 
last weeks and has not been fixed. I just ran the job and the database 
is up now. I activated the job on another server in the cluster, so that 
the database should stay updated now.


Peter

Am 03.03.2012 07:28, schrieb Stephan Knauss:

On 03.03.2012 03:32, Lynn W. Deffenbaugh (Mr) wrote:

I tried the contact the tool owner link (maz...@toolserver.org), but
my e-mail bounced.
Is this the place to report this issue or is there a better place?


I have an alternative Mail contact of Peter and forwarded the problem
description.

I also think he is active on this list. Guess he will answer soon...

Stephan

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



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


Re: [OSM-dev] Possible GSoC project: tag/area monitoring service

2012-03-06 Thread Josh Doe
On Mon, Mar 5, 2012 at 10:58 PM, Michael Daines mich...@mdaines.com wrote:
 Hi everyone,

 I'm writing to seek opinions about a possible Google Summer of Code project. 
 I did GSoC in 2010, and I'd like to apply again this year. My project in 2010 
 was a simplified, web-based map editor.

 Since the wiki page for project ideas mentions that proposals for the 
 development of existing OSM infrastructure would be preferred, I was having a 
 look at the API v0.7 page, and noticed some interest in a monitoring feature.

 My proposal is to build a monitoring service to augment the existing API, 
 similar to the Twitter streaming API [1]. Users would request to receive map 
 updates matching tags or which involve elements in some area, and updates 
 would be sent either over a persistent connection (as Twitter does) or 
 possibly by making requests to an endpoint specified by the user. My general 
 idea for the architecture is basically to grab diffs and then send the 
 relevant parts to clients depending on what they've asked to receive.

 Clients of such a monitoring service could do things like send daily email 
 updates on map activity to users interested in a specific area or tag, 
 invalidate tiles in custom-rendered maps, or assemble a subset of available 
 OSM data for fast, up-to-date querying within that subset (a single city, for 
 example) without worrying about making lots of requests to the OSM API. That 
 third application would be useful for solving one of the problems I ran into 
 with my 2010 project -- I was optimistically loading map data with bbox 
 queries as the user panned the map, which was too slow on the production API 
 to be practical (and probably isn't what that part of the API is really meant 
 for).

 Another project idea might be to work directly on a service which would 
 provide fast querying on tag or area subsets. However, the project as I've 
 proposed it above seems to me to be sort of a generalization of that, and 
 also seems like it would require less bandwidth and disk space.

I wouldn't worry about monitoring area changes, as we have OWL[0]
(supposedly being integrated with the Rails port), Changepipe[1],
and possibly others that do this already. I'd suggest you consider
focusing on the idea of monitoring for changes based on tags and
object IDs. I've been interested in changes to some large relations,
and other widely dispersed objects, which isn't addressed by any of
the current tools. Integration with Rails would be great, so we can
Watch any object directly from the website. Of course performance
would have to be considered before implementing such a service went
live, but I don't think that's terribly important for a GSoC project.

-Josh

[0]: http://wiki.openstreetmap.org/wiki/OWL_%28OpenStreetMap_Watch_List%29
[1]: https://github.com/migurski/Changepipe

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


Re: [OSM-dev] OSM StreetDensityMap

2012-03-06 Thread npl

 Cool. I've been wanting to give hadoop / map/reduce a try with OSM data
 but the wiki does not offer much. It would be nice if someone with some
 experience would create a wiki page. I'm sure it would be interesting
 for the community as well as GIScience folks to have a place to start.

If I've some time I'll create a wiki page for osm on hadoop (and post 
it here).


 It gives also a sort-of osm activity map.

 Well, it does and it doesn't. You'd have to compare it to a reference
 road network density map to appreciate the activity of the OSM community
 in representing reality in OSM.

That's right.

 I see a lot of potential for this beyond 'simple' visualisation. Systems
 like TagInfo and OWL could benefit, maybe? Does your framework lend
 itself for (near) real time processing of OSM data, or does it only work
 with snapshot data?

MapReduce itself is a programming model. It allows you to process data 
by defining map- and reduce-functions (and is thus quite easy to learn).


It's implemented as a distributed batch processing framework and allows 
you to process TBs of data on a cluster of up to hundreds of nodes. The 
real benefit of using such a system is that it scales linearly (well, 
you could say between O(n) and O(nlogn)) and single systems (like 
relational DBs) can't scale that high.


Our cluster was around 10 nodes, and it took us about 3-4 hours to 
create the map and store it on HBase (although the cluster was not busy 
the whole time) [where the uncompressed planet-file is about 200GB].


That said, you can run small jobs on hadoop/mapreduce in a few minutes 
(= near realtime) and it would be be possible to

  * process the planet-file once and store the results in a DB
  * process the planet-file diffs (e.g. hourly) and update the DB

TagInfo-like systems (aggregating big data and creating statistics) 
could definitely be built using hadoop/mapreduce.



- npl

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


Re: [OSM-dev] OSM StreetDensityMap

2012-03-06 Thread Jochen Topf
On Tue, Mar 06, 2012 at 01:31:31PM +0100, npl wrote:
 TagInfo-like systems (aggregating big data and creating statistics)
 could definitely be built using hadoop/mapreduce.

Or you can do what Taginfo does and just write it cleverly, so it just uses one
host for an hour instead of 10 hosts for several hours. :-) I do agree that
there are many use-cases for Hadoop  Co. But they also create a lot of
overhead...

Reminds me a bit of the Osmarender/Tiles@Home story: First we write a renderer
thats horribly slow and inefficient. So we have to distribute the work load
which makes it even more inefficient. Then to keep it going we invent more
and more technology around it. Oh well, I liked Osmarender, spent quite a
lot of time improving it and rendering maps with it. Sometimes its not about
being efficient. :-)

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.remote.org/jochen/  +49-721-388298


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


Re: [OSM-dev] Possible GSoC project: tag/area monitoring service

2012-03-06 Thread Serge Wroclawski
One of the larger criticisms of GSoC is that the projects are often
abandoned after the summer.

Therefore I'd suggest that if you're going to work on something, you
work on adding a feature to an existing OSM project, rather than going
off and creating a new project.

As Josh points out, there are several similar projects out there that
monitor areas, so why not add the features you want to one of the
existing projects.

- Serge

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


Re: [OSM-dev] generate image failed

2012-03-06 Thread Peter Körner

Am 02.02.2012 10:56, schrieb Anwar Azulfa:

It's not working on me,

what repository which i must add to install mapnik2 or libmapnik2 ?


Because this question was not answered in that thread I'd like to point 
to my tutorial which includes installing mapnik2 from the testing-repo 
under ubuntu and debian:


https://github.com/MaZderMind/osm-history-renderer/blob/master/TUTORIAL.md

Peter

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


Re: [OSM-dev] producing historical snapshots for an area

2012-03-06 Thread Peter Körner

Am 04.02.2012 17:35, schrieb Martijn van Exel:

Hi,

I want to create historical snapshots of small (county-sized) areas
from the full history planet for analysis purposes. Say, one file for
every three months since 2007. My current approach is to first create
the full planet snapshots from the full history planet using osmium,


Which tool are you using for this?


and then creating the smaller files from that using osmhistorysplitter
(I'm thinking of using the hierarchical splitting feature to first
create state-sized files and county-sized files from that).

But: how hard would it be to adapt osmhistorysplitter to do this all
in one go? Or maybe there already is a smarter way to do this that I
don't know about. My C++ skills are all but nonexistant, but I'm not
afraid of python and only a little of perl.


It's of course possible to do that in C++ but I tend to use a higher 
level programming language for those not-so-critical tasks. You may take 
a look at split-all-clipbounds.py, which is a script that takes all 
clipbounds from the clipbounds folder ans tries to sort them in order to 
call the splitter and generate extracts in a hierarchical manner.


[1] 
https://github.com/MaZderMind/osm-history-splitter/blob/master/split-all-clipbounds.py


Peter

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


Re: [OSM-dev] OSM StreetDensityMap

2012-03-06 Thread Martijn van Exel
Hi,

On Tue, Mar 6, 2012 at 7:42 AM, Jochen Topf joc...@remote.org wrote:

 On Tue, Mar 06, 2012 at 01:31:31PM +0100, npl wrote:
  TagInfo-like systems (aggregating big data and creating statistics)
  could definitely be built using hadoop/mapreduce.

 Or you can do what Taginfo does and just write it cleverly, so it just
 uses one
 host for an hour instead of 10 hosts for several hours. :-) I do agree that
 there are many use-cases for Hadoop  Co. But they also create a lot of
 overhead...


Just one host for an hour a day? Wow. That's not very much processing time
at all for what it provides. Awesome.

-- 
martijn van exel
geospatial omnivore
1109 1st ave #2
salt lake city, ut 84103
801-550-5815
http://oegeo.wordpress.com
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[Potlatch-dev] [OpenStreetMap] #4274: Issues adding points in Potlatch 2

2012-03-06 Thread OpenStreetMap
#4274: Issues adding points in Potlatch 2
-+--
 Reporter:  techlady |   Owner:  potlatch-dev@…
 Type:  defect   |  Status:  new   
 Priority:  major|   Milestone:  OSM 1.0   
Component:  potlatch2| Version:  2.0   
 Keywords:  Potlatch 2 edit  |  
-+--
 Hello bug team,

 I've been having some weird issues when I try to edit. I'm unable
 to edit ways in Potlatch 2. It seems to be similar to the problems
 reported by 4267 on March 4.
 For example, when I try to select a way, it lights up, but I am
 unable to add points. Also, after I do try to add a point, all ways no
 longer light up when I try to select them.
 In addition, when I first open OSM and click on Edit, not all of
 the street data loads. Sometimes the name of a residential street is
 displayed, but the white line for the street is missing. Also, where there
 is a turning circle, sometimes only the dot for the turning circle is
 visible, but the white line for the short street leading to it is not
 visible.
 I have tried to edit on two different computers and have gotten
 the same result. On one computer I recently installed a new version of
 Flash, but I'm not sure if the Flash update has been installed on the
 other computer. I use Firefox.
 This happened since the update to the interface that changed the
 look of the first page.
 Anyone else experiencing this? Anyone know what's going on?
 Thanks for your help.

 Best,

 Charlotte Wolter

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

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


Re: [Potlatch-dev] [OpenStreetMap] #4274: Issues adding points in Potlatch 2

2012-03-06 Thread OpenStreetMap
#4274: Issues adding points in Potlatch 2
-+--
 Reporter:  techlady |   Owner:  potlatch-dev@…
 Type:  defect   |  Status:  new   
 Priority:  major|   Milestone:  OSM 1.0   
Component:  potlatch2| Version:  2.0   
 Keywords:  Potlatch 2 edit  |  
-+--

Comment(by Richard):

 Could you point to the area you're having difficulty with (i.e. copy and
 paste URL from the address bar), and say what road you're clicking on?

 There appears to be a data-specific issue introduced recently.

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

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


Re: [OSM-dev] OSM StreetDensityMap

2012-03-06 Thread Jochen Topf
On Tue, Mar 06, 2012 at 10:44:45AM -0600, Martijn van Exel wrote:
 On Tue, Mar 6, 2012 at 7:42 AM, Jochen Topf joc...@remote.org wrote:
 
  On Tue, Mar 06, 2012 at 01:31:31PM +0100, npl wrote:
   TagInfo-like systems (aggregating big data and creating statistics)
   could definitely be built using hadoop/mapreduce.
 
  Or you can do what Taginfo does and just write it cleverly, so it just
  uses one
  host for an hour instead of 10 hosts for several hours. :-) I do agree that
  there are many use-cases for Hadoop  Co. But they also create a lot of
  overhead...
 
 
 Just one host for an hour a day? Wow. That's not very much processing time
 at all for what it provides. Awesome.

I just had a look and currently its at about 2h for the main statistics
generation. So thats gone up from the 1h it used to have. Thats because
people keep asking for more features. :-)

It takes about another hour for crawling the wiki etc.

Most days it takes about another 1.5h for updating the planet files, but on
some days thats considerably slower. I should probably try to figure out why
thats the case. Maybe something else runs in parallel on the machine.

All of that on a 800MHz machine using about 6GB RAM. The OSM processing is
mostly CPU bound so on a modern machine it would be faster. One relatively
easy optimization would be to run the planet update and statistics gathering
in one step. But for now I am lazy and let Osmosis do the planet update
first.

Jochen
-- 
Jochen Topf  joc...@remote.org  http://www.remote.org/jochen/  +49-721-388298


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


Re: [Potlatch-dev] [OpenStreetMap] #4274: Issues adding points in Potlatch 2

2012-03-06 Thread OpenStreetMap
#4274: Issues adding points in Potlatch 2
+---
  Reporter:  techlady   |   Owner:  potlatch-dev@…
  Type:  defect |  Status:  closed
  Priority:  major  |   Milestone:  OSM 1.0   
 Component:  potlatch2  | Version:  2.0   
Resolution:  fixed  |Keywords:  Potlatch 2 edit   
+---
Changes (by Richard):

  * status:  new = closed
  * resolution:  = fixed


Comment:

 Actually, don't worry, I've just spotted what the problem is. Fix
 committed, will hopefully be live soon.

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

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


[Potlatch-dev] [OpenStreetMap] #4275: Issues adding points in Potlatch 2 -- Correction of similar bug #

2012-03-06 Thread OpenStreetMap
#4275: Issues adding points in Potlatch 2 -- Correction of similar bug #
-+--
 Reporter:  techlady |   Owner:  potlatch-dev@…
 Type:  defect   |  Status:  new   
 Priority:  major|   Milestone:  OSM 1.0   
Component:  potlatch2| Version:  2.0   
 Keywords:  Potlatch 2 edit  |  
-+--
 Hello bug team,

 I've been having some weird issues when I try to edit. I'm unable
 to edit ways in Potlatch 2. It seems to be similar to the problems
 reported by 4274 on March 4.
 For example, when I try to select a way, it lights up, but I am
 unable to add points. Also, after I do try to add a point, all ways no
 longer light up when I try to select them.
 In addition, when I first open OSM and click on Edit, not all of
 the street data loads. Sometimes the name of a residential street is
 displayed, but the white line for the street is missing. Also, where there
 is a turning circle, sometimes only the dot for the turning circle is
 visible, but the white line for the short street leading to it is not
 visible.
 I have tried to edit on two different computers and have gotten
 the same result. On one computer I recently installed a new version of
 Flash, but I'm not sure if the Flash update has been installed on the
 other computer. I use Firefox.
 This happened since the update to the interface that changed the
 look of the first page.
 Anyone else experiencing this? Anyone know what's going on?
 Thanks for your help.

 Best,

 Charlotte Wolter

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

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


Re: [OSM-dev] Possible GSoC project: tag/area monitoring service

2012-03-06 Thread Graham Jones
Michael,
I think Serge's advice is good.  I had a go at putting down an order of
preference for how we should select GSoC Projects at the top of the ideas
pagehttp://wiki.openstreetmap.org/wiki/GSoC_Project_Ideas_2012#Types_of_Projects.
  I am proposing that we tend to favour projects that are based on
developing existing OSM related projects, rather than starting new ones.

Please add your idea to the wiki page though, and have a look at which tool
you may incorporate the idea into.

Regards


Graham.

On 6 March 2012 15:08, Serge Wroclawski emac...@gmail.com wrote:

 One of the larger criticisms of GSoC is that the projects are often
 abandoned after the summer.

 Therefore I'd suggest that if you're going to work on something, you
 work on adding a feature to an existing OSM project, rather than going
 off and creating a new project.

 As Josh points out, there are several similar projects out there that
 monitor areas, so why not add the features you want to one of the
 existing projects.

 - Serge

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




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


[OSM-dev] modtile and apache alias

2012-03-06 Thread yvecai

I have trouble to access modtile behind an apache alias.
I have tiles here:
http://192.168.1.3/14/8468/5802.pngOK (== 
/var/www/14/8468/5802.png)

But if I do:
ServerName dev-yves.dyndns.org
alias /tiles /var/www

http://dev-yves.dyndns.org/tiles/ OK (== /var/www/)
but
http://dev-yves.dyndns.org/tiles/14/8468/5802.png 404 (== 
/var/www/14/8468/5802.png)


Unfortunately, I'm running out of hosts at dyndns for my home server, so 
I cannot make a new VirtualHost.


Yves

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


Re: [OSM-dev] Possible GSoC project: tag/area monitoring service

2012-03-06 Thread Michael Daines
 I wouldn't worry about monitoring area changes, as we have OWL[0]
 (supposedly being integrated with the Rails port), Changepipe[1],
 and possibly others that do this already. I'd suggest you consider
 focusing on the idea of monitoring for changes based on tags and
 object IDs. I've been interested in changes to some large relations,
 and other widely dispersed objects, which isn't addressed by any of
 the current tools. Integration with Rails would be great, so we can
 Watch any object directly from the website. Of course performance
 would have to be considered before implementing such a service went
 live, but I don't think that's terribly important for a GSoC project.

When you mention changes to large relations and widely dispersed objects, I was 
wondering if you had any specific use cases in mind? I'd also be interested in 
hearing what kind of expressions you might expect to be able to use. For 
example, I was thinking you could say something like give me updates for 
things with the tag highway=residential and is_in=Canada.

It looks like Changepipe is similar to what I'm proposing, and OWL is sort of 
the opposite. My idea is that clients would tell the API they're interested in 
hearing about something (a tag, an id, some expression involving multiple tags, 
an area) and then updates would be sent to them as they happen, instead of 
polling for what's happened in the past. This scheme would reduce the number of 
incoming requests at the cost of the client being responsible for receiving the 
information and doing something with it. I believe this approach would reduce 
the complexity of processing new information since it would be known in advance 
what updates are required.

Another approach would be that clients tell the API they're interested in 
getting information about something and can then request an RSS feed which has 
recent updates. But instead of requesting an RSS feed for an arbitrary watch 
expression, it's this sort of bin which stuff is thrown into as the map is 
updated. This seems easier to translate into something you can do manually with 
a web browser than what's described above.

I'm curious to hear which of these approaches would be useful to people 
interested in this sort of thing. It seems like being able to ask for RSS feeds 
would be more immediately useful, but having data pushed to clients would 
allow for more flexible applications.


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


Re: [OSM-dev] modtile and apache alias

2012-03-06 Thread Kai Krueger

yvecai wrote
 
 I have trouble to access modtile behind an apache alias.
 I have tiles here:
  http://192.168.1.3/14/8468/5802.pngOK (== 
 /var/www/14/8468/5802.png)
 But if I do:
  ServerName dev-yves.dyndns.org
  alias /tiles /var/www
 
  http://dev-yves.dyndns.org/tiles/ OK (==
 /var/www/)
 but
  http://dev-yves.dyndns.org/tiles/14/8468/5802.png 404 (== 
 /var/www/14/8468/5802.png)
 
 Unfortunately, I'm running out of hosts at dyndns for my home server, so 
 I cannot make a new VirtualHost.
 
I don't know for sure, but I think mod_tile doesn't interact well with other
apache modules, as it uses the raw URI information. So I suspect it won't
work with apache aliases. However, you can configure the URL under which
mod_tile responds directly.

You can either define it in renderd.conf URI parameter, or if you don't
use renderd, you can specify it directly in the mod_tile configuration:
AddTileConfig /osm123/ default. The latter should then respond under
http://192.168.1.3/osm123/14/8468/5802.png and will look in the tile
directory under default and also connect to renderd/tirex with the style
name default.

Does that solve your problem?

Kai



--
View this message in context: 
http://gis.19327.n5.nabble.com/modtile-and-apache-alias-tp5541905p5542010.html
Sent from the Developer Discussion mailing list archive at Nabble.com.

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


[OSM-dev] Info request on: additional GIS layers

2012-03-06 Thread Tomas Straupis
Hello

  Some governmental institutions are willing to use OSM software stack
and share their information. For example they could use a base map and
share information they have. Some information they want to collect and
give out to public is perfectly fit for OSM (say max speeds) while
others are purely their thing which should not go to main OSM
database (say information like which community a specific house
belongs to). (So they want to share all information with public, but
some information should be captured on a separate storage/db)

  They would like to have a separate layer to hold such non-OSM
information. This would keep OSM database clean and it would allow
government to take responsibility for quality assurance and updates of
that data.

  How should this be implemented? Separate osm database (with data of
those additional layers only) and then different editors could be used
to fill that database by pointing to api url of this extra server? If
I need more layers, more databases have to be created etc.?
(presentation part of mapnik/openlayers is clear)

  I was looking for information about this on osm wiki but didn't find
anything useful so maybe you can give me some urls/keywords where I
can read about it?

  Thank you

-- 
Tomas Straupis

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


Re: [OSM-dev] modtile and apache alias

2012-03-06 Thread yvecai

Le 06/03/2012 20:46, Kai Krueger a écrit :

yvecai wrote

I have trouble to access modtile behind an apache alias.
I have tiles here:
  http://192.168.1.3/14/8468/5802.pngOK (==
/var/www/14/8468/5802.png)
But if I do:
  ServerName dev-yves.dyndns.org
  alias /tiles /var/www

  http://dev-yves.dyndns.org/tiles/ OK (==
/var/www/)
but
  http://dev-yves.dyndns.org/tiles/14/8468/5802.png 404 (==
/var/www/14/8468/5802.png)

Unfortunately, I'm running out of hosts at dyndns for my home server, so
I cannot make a new VirtualHost.


I don't know for sure, but I think mod_tile doesn't interact well with other
apache modules, as it uses the raw URI information. So I suspect it won't
work with apache aliases. However, you can configure the URL under which
mod_tile responds directly.

You can either define it in renderd.conf URI parameter, or if you don't
use renderd, you can specify it directly in the mod_tile configuration:
AddTileConfig /osm123/ default. The latter should then respond under
http://192.168.1.3/osm123/14/8468/5802.png and will look in the tile
directory under default and also connect to renderd/tirex with the style
name default.

Does that solve your problem?

Not really, I have my website content in the home directory, not in 
/var/www/.


Yves

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


Re: [Potlatch-dev] [OpenStreetMap] #4269: tunnel=yes waterways aren't selectable (since 4/3/2012 changes)

2012-03-06 Thread OpenStreetMap
#4269: tunnel=yes waterways aren't selectable (since 4/3/2012 changes)
-+--
 Reporter:  SomeoneElse  |   Owner:  potlatch-dev@…
 Type:  defect   |  Status:  new   
 Priority:  minor|   Milestone:
Component:  potlatch2| Version:
 Keywords:   |  
-+--

Comment(by stevage):

 Works fine for me locally, so I'm guessing the problem is out of date
 core_ways.css on the production instance. I'm not sure how to check this.

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

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


Re: [OSM-dev] Possible GSoC project: tag/area monitoring service

2012-03-06 Thread Michael Daines
 First, a longstanding wishlist item for OSM has been data tiles,
 that is the API data, split into preset sized areas (eg z14), which a
 client could call. This may not seem reelvant to your project but
 you'll see why it is soon.

This was actually part of my original motivation for proposing this project -- 
in my 2010 GSoC project, I used bbox queries to load data in tile-like 
sections, but as I mentioned this turned out to be very slow. Data tiles seem 
like they could speed things up for that sort of use. Ideally, the work 
involved in accessing a data tile would be comparable to accessing an image 
tile. Also, it seems easier to cache data addressed by tile than it is to cache 
the results of arbitrary bbox queries.

I'd also be interested in working on data tiles -- is that in itself a 
reasonable project idea? My hope is that if either of these ideas are things 
people have been wanting for a while, they'll want to use them, and that if a 
project has people using it, it would be more likely to be around after the 
summer.

One thing I was wondering about -- how do you choose a tile size to minimize 
both the number of accesses (larger tiles) and the byte size of tiles (smaller 
tiles)? Some areas have a much higher density of data than others. Perhaps some 
kind of quadtree-type approach could be used, where tiles are split if they 
have high density?

The ideas you suggest for streaming-type updates on data tiles are very 
interesting. If you were writing an editor, you could be more certain that you 
were displaying the most recent data without having to reload all of it.


 While you could use Changepipe to make arbitrary polygons and then
 stream the changes, IMHO this is not as generally useful as one might
 imagine. Network hiccups alone can mean that it's possible to miss an
 event. And arbitrary polygons become complicated as the number of
 queues can be large.

I hadn't thought about using arbitrary polygons to specify areas as it seemed 
too complex -- would there be much call for that? I assume the use cases would 
be things like keeping track of updates to a city (the area of which isn't 
always conveniently specified as a bounding box).


 By splitting the areas up, you can now take a changeset and know which
 areas (tile) it effects. And then each client can simply subscribe to
 an area (tile). You've greatly simplified the problem, whether you
 allow for arbitrary shapes (one shape - many tiles) or 1:1 tiles to
 connections.
 
 Now, to your original question... Another advantage of tiling the
 data is you can easily do both. Each tile can have a list of changes
 associated with it. If you tried to do this on arbitrary polygons,
 it'd get difficult very quickly.

This makes sense, as I guess it means there are fewer bins to put things in 
when an update needs to be sent out to clients. (You only have to do the work 
once if several clients are looking at a particular tile.) And, if a client 
really did want to look at an arbitrary polygon, maybe it could rasterize the 
polygon into a list of tiles.

For people who are interested in updates to tags, a similar approach could be 
used, perhaps -- in that case I guess a tile would be analogous to a particular 
value or set of values for a tag.


-- Michael


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


Re: [OSM-dev] Info request on: additional GIS layers

2012-03-06 Thread Andre Joost

Am 06.03.12 21:20, schrieb Tomas Straupis:

Hello

   Some governmental institutions are willing to use OSM software stack
and share their information. For example they could use a base map and
share information they have. Some information they want to collect and
give out to public is perfectly fit for OSM (say max speeds) while
others are purely their thing which should not go to main OSM
database (say information like which community a specific house
belongs to). (So they want to share all information with public, but
some information should be captured on a separate storage/db)

   They would like to have a separate layer to hold such non-OSM
information. This would keep OSM database clean and it would allow
government to take responsibility for quality assurance and updates of
that data.



This is a point which breaks the idea:

If *they* want to be responsible for the data and making updates, no 
other user should have access to it.
OSM is a community project where evereyone is allowed to change any 
data. And we are worldwide, and not restricted to any adminstrative 
boundaries, as the governmentals.


So the only way is to add a separate layer with openlayers. Or use a WMS 
layer with OSM data in the governmental Web-GIS.


Greetings
Andre Joost




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


Re: [OSM-dev] Info request on: additional GIS layers

2012-03-06 Thread Tomas Straupis
Hello

2012-03-07 Andre Joost wrote:
 This is a point which breaks the idea:

 If *they* want to be responsible for the data and making updates, no other
 user should have access to it.

  True. But this would be PART of the data they provide. And that part
would barely be interesting to the rest of OSM community (both in
terms of filling/taking care of the data and using it). To rephrase
this: they do not want to HIDE some data (they are actually happy with
adding that data directly to OSM), just some data is NOT interesting
to OSM (f.e. land ownership, self-government community information,
problems with infrastructure, illegal structures etc.).

 So the only way is to add a separate layer with openlayers. Or use a WMS
 layer with OSM data in the governmental Web-GIS.

  Point is to move government GIS to OSM software stack. They would
then partly use OSM main db (where data is usable for OSM) and for
other specific data they could use their own server (DB). This would
be kind of GIS layering.
  That is software/skills required would be the same (one stack, no
zoo). People would have to learn to use osm and then there would
simply be more than one osm :-)

  So both sides win:
  * OSM gets some additional data source (and more publicity)
  * government gets free software stack, provides better/more services
to public etc.

  The part of creating separate layers (say with mapnik) and
presenting them (say with openlayers) is clear. Uncertain part (for
me) is just the database part because I only have a general
understanding of what would be required (I guess database and
something which gives API to access that database from JOSM/Mapnik
etc.).

  Therefore my question is: where can I get more information about
creating own database/api and setting up all infrastructure around
it (f.e. authorisation, editors etc.). Or if there is any other
approach of achieving this goal of GIS layers?

  Thank you

-- 
Tomas Straupis

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


Re: [OSM-dev] Info request on: additional GIS layers

2012-03-06 Thread Andre Joost

Am 07.03.12 07:58, schrieb Tomas Straupis:


   The part of creating separate layers (say with mapnik) and
presenting them (say with openlayers) is clear. Uncertain part (for
me) is just the database part because I only have a general
understanding of what would be required (I guess database and
something which gives API to access that database from JOSM/Mapnik
etc.).


Another question is how they keep their basic database in sync with ours?
If someone in OSM moves a node because he was there with his GPS unit, 
or a new street/house/something is build, the two databases get 
out-of-sync. So someone has to overlook every change in OSM, and decide 
if it was a beginners error or not.


A lot of our POIs are placed in our database according to our street 
ways. If we throw away our streets and import theirs, the POIs are 
misplaced.


I am sure the governmental GIS has more place-accurate data, but 
probably out-of-date at some places.




   Therefore my question is: where can I get more information about
creating own database/api and setting up all infrastructure around
it (f.e. authorisation, editors etc.). Or if there is any other
approach of achieving this goal of GIS layers?



I think
http://wiki.openstreetmap.org/wiki/The_Rails_Port
is what you are looking for.

Apart form that, Mapnik can render data from different databases, and 
shapefiles and other sources:

shape : ESRI shapefile
postgis : Postgis table or query
raster : Tiled or stripped TIFF
gdal : GDAL supported raster dataset
ogr : OGR supported vector datasource
osm : Open Street Map

Or they can use the UMN Mapserver to combine Data from several sources.



Greetings
Andre Joost


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