Re: [OSM-dev] comparing two planet files

2011-01-05 Thread Stephan Knauss
On 05.01.2011 11:13, Frederik Ramm wrote: Hi, On 01/05/11 01:21, Stephan Knauss wrote: First I wondered that both resulting files got smaller. Is removing the source tag saving this much? The processed files probably lack the changeset section of the original planet. osmosis is stripping

[OSM-dev] osmosis pbf file too small

2011-01-04 Thread Stephan Knauss
Hi, I tried osmosis together with PFB Did I specify some parameters wrong or is there a problem with PBF? Windows x64, Java x64 ..\osmosis-r24958\bin\osmosis.bat --read-xml-change file=20110102-20110103.osc.gz --buffer-change bufferCapacity=1000 --read-pbf file=planet-20110102.pbf --buffer

Re: [OSM-dev] osmosis pbf file too small

2011-01-04 Thread Stephan Knauss
Scott Crosby writes: There appears to be a 32-bit problem with java on Windows where the java runtime reports a spurious end-of-file indication to the reader, which then assumes the file has been completely read. This occurs even with 64-bit Java on 64-bit windows. Do you have some details on

[OSM-dev] comparing two planet files

2011-01-04 Thread Stephan Knauss
Hi, I did some experiments comparing osmosis applying diffs and osmchange. I started with th 20101229 planet. the merged.osc contains four days of OSC merged and simplify-change with osmosis. Then I let both tools apply the diff. osmosis and osmchange. First I wondered that both resulting

Re: [OSM-dev] mod_tile - meta tile computation

2010-12-28 Thread Stephan Knauss
On 28.12.2010 21:04, Philipp Borgers wrote: I'm trying to write a nginx module which does more or less the same like mod_tile. I reviewed a lot of the code but now I have a little problem with the computation of paths to meta tiles. Not sure I understand what you need. Does this help?

Re: [OSM-dev] Rendering Strategy

2010-12-20 Thread Stephan Knauss
Mi Markus, On 20.12.2010 11:33, mar...@gmx.eu wrote: Why not rendering them as soon as possible? mod_tile[1] will help you with this. Yes, interesting software. That would mean to render on the fly. I am not sure if my weak virtual server would cope with the task doing both at the same time,

Re: [josm-dev] Bing imagery now available in JOSM

2010-12-01 Thread Stephan Knauss
On 01.12.2010 12:26, Sebastian Klein wrote: thanks to fast development by Ian Dees, Bing imagery can now be used in JOSM. great job, thanks to Ian for the fast response. I really like the fast loading speed of the tiles compared to WMS solutions. In contrast to the WMS I miss the possibility

Re: [josm-dev] Bing imagery now available in JOSM

2010-12-01 Thread Stephan Knauss
On 01.12.2010 21:49, Stephan Knauss wrote: On 01.12.2010 12:26, Sebastian Klein wrote: I did not check the source code, but would I assume the position of the tiles is calculated. So adding an offset sounds not too difficult to implement. Upliner added this into imagery. Works well for me

Re: [OSM-dev] Minutely Mapnik

2010-11-19 Thread Stephan Knauss
Hi, On 18.11.2010 22:24, Frederik Ramm wrote: Martijn van Exel wrote: Does the process of applying minutely updates only work when the initial planet was a full planet, not an extract? Is it possible to do this on extracts? Yes (use the bounding box filter on osm2pgsql), but there will be

Re: [OSM-dev] Suggestion about country specific maps

2010-10-14 Thread Stephan Knauss
Gerrit wrote: I think the biggest advantage of OSM would be the ability to create country specific OSM maps. Already existing. This one is bilingual Greek and English. http://greece.osm-tools.org/ similar to Thailand: http://thaimap.osm-tools.org/ It's easy to use a different fallback,

Re: [OSM-dev] generate_xml.py not generating osm.xml file?

2010-08-27 Thread Stephan Knauss
Hi, Sajjad Anwar wrote: The following link contains pointers to setting up Mapnik and basic rules file modifications http://sajjad.in/mapping/setting-up-mapnik-for-rendering-tiles-in-your-language/ you can find the trick to render bilingual maps like http://thaimap.osm-tools.org/ or

Re: [OSM-dev] Mapping during license change / safe to edit

2010-08-25 Thread Stephan Knauss
Frederik Ramm wrote: How could we make life easier for them? What technological measures could realistically be employed to determine what is safe to edit and how could this be signalled to the mapper? The osm format could be extended. Each node an tag gets an additional attribute safe=yes

Re: [josm-dev] New Tested

2010-08-25 Thread Stephan Knauss
M∡rtin Koppenhoefer wrote: I'm talking about plugins that redefine common standard keys. That is IMHO bad for the usability. Is this possible? I always thought that once a shortcut is defined it can only be changed by the user. First one wins... Stephan

Re: [josm-dev] WMS and remote-control

2010-08-25 Thread Stephan Knauss
Sebastian Klein wrote: Stephan Knauss wrote: Sebastian Klein wrote: How about adding the basic functionality into core? Providing the listener and accepting commands. By default it will have no commands included. Comments? I consider this is a viable solution. It fixes the problem

Re: [OSM-dev] invalid geometry in planet_polygon

2010-08-24 Thread Stephan Knauss
Frederik Ramm wrote: Stephan Knauss wrote: Yes, of course, there are hundreds of thousands of invalid geometries. For postgis only 11k on the planet are that broken it considers them invalid. http://tools.geofabrik.de/osmi/debug.html?view=multipolygonlon=7.86328lat=49.49239zoom=5overlays

Re: [OSM-dev] database growth on updated partial import

2010-08-24 Thread Stephan Knauss
Frederik Ramm wrote: vacuum process is not enough (try a vacuum full and see if size goes down; if yes, increase your max_fsm_pages). After a few hours the connection broke. So not sure the vacuum actually completed. Looking at the table statistics it reports 26298 dead tuples and 5991057 live

[OSM-dev] new contributor terms ID list

2010-08-24 Thread Stephan Knauss
A lot of people want to know what data would be lost in case we revert all data that is not relicensed. Is it possible to provide a list with userIDs that have agreed to the new terms? This could be combined with the history dump to generate a view of the planet after a cleanup. It could

[OSM-dev] database growth on updated partial import

2010-08-23 Thread Stephan Knauss
For the bilingual map rendering I imported only a small area of the planet defined by a bounding box. This is updated using the minute replication. Now the database is growing by apx. 1.5GB each week. Autovacuum is on It seams to be planet_osm_ways growing. It also contains lots of ways

Re: [josm-dev] WMS and remote-control

2010-08-21 Thread Stephan Knauss
Sebastian Klein wrote: So either the common protocol must be included in Josm core or another possible solution would be to use reflection. How about adding the basic functionality into core? Providing the listener and accepting commands. By default it will have no commands included. It

Re: [OSM-dev] Search is not working on own map

2010-08-20 Thread Stephan Knauss
Parveen Arora wrote: Your Javascript is malformed. This error pops up the moment you load the page. How can i remove the errors from javascript, i have taken it from openlayers and tried to serve our map by changing the urls That string is not terminated:

Re: [OSM-dev] Search is not working on own map

2010-08-19 Thread Stephan Knauss
Parveen Arora wrote: now i have write here only one url in the file, and have insert the ${y} But Still not working, http://202.164.53.116/~parveen/map/map1.html You should not blindly copy easymap, alter it and then wonder why it's not working. Your Javascript is malformed. This error

Re: [josm-dev] Add nodes and ways via remoteControl

2010-08-19 Thread Stephan Knauss
Bodo Meissner wrote: In the source code you can find this syntax for the HTTP request to add a node: GET /add_node?lon=...lat=... I know... But is there a reason it's not documented? Maybe in some cases this function could harm and damage data? Or some malicious websites adding random

Re: [josm-dev] Mailing list configuration - reply address

2010-08-19 Thread Stephan Knauss
Florian Lohoff wrote: http://www.unicom.com/pw/reply-to-harmful.html http://marc.merlins.org/netrants/reply-to-useful.html Off-topic can be fun ;) Honestly: With the reply-to list add-On for Thunderbird I don't miss anything. It should be included in standard distribution. Stephan

Re: [OSM-dev] [OSM-talk] Bilingual rendering for Greece

2010-08-18 Thread Stephan Knauss
Peter Körner wrote: Am 18.08.2010 10:31, schrieb Stephan Knauss: It's complicated because different languages take up different space on the map. So the placement of icons is not trivial. Ævar had a great Idea for a third approach: Only objects that actually have a translation need

Re: [josm-dev] WMS and remote-control

2010-08-17 Thread Stephan Knauss
Hi Bodo, Bodo Meissner wrote: http://wiki.openstreetmap.org/wiki/JOSM/Plugins/RemoteControl#other_commands a while back I added the version command to enable web sites to detect a running JOSM. I thought that a version number might be sufficient to let Websites know which commands are

Re: [josm-dev] Add nodes and ways via remoteControl

2010-08-16 Thread Stephan Knauss
Sebastian Müller writes: I have a data file with position data in it (Longitude/Latitude). I want to show them in a map. I thought JOSM is nice so I chose it. Now I need a tool or plugin (I think remoteControl is the best for this task) to send them into JOSM. I assume you're talking about

Re: [OSM-dev] Measuring the current state of play wrt new contributor terms

2010-08-11 Thread Stephan Knauss
Hi Jim, nice idea. The code could also be reused for the revert scripts in case some Teleatlas data has to be removed aagain. Jim Brown wrote: * Where geometries have changed: o If the object has a prior version, take the prior version of the geometry and then apply

Re: [OSM-dev] detect running JOSM from web pages

2010-07-29 Thread Stephan Knauss
Jochen Topf wrote: On Thu, Jul 29, 2010 at 01:03:52AM +0200, Stephan Knauss wrote: I extended JOSM RemoteControl to provide protocol version information. I don't like the idea that every web page can now find out whether I run JOSM and which version it is. Thank you for pointing this out

Re: [OSM-dev] detect running JOSM from web pages

2010-07-29 Thread Stephan Knauss
John Smith wrote: On 29 July 2010 18:07, Stephan Knauss o...@stephans-server.de wrote: I did add a version to the interface. That's why it's called protocol version. Wouldn't it be better to just ask about capabilities, then you could in theory, turn capabilities on or off depending on your

[OSM-dev] detect running JOSM from web pages

2010-07-28 Thread Stephan Knauss
Hi, I extended JOSM RemoteControl to provide protocol version information. Besides the possibility for clients to choose a compatible command set this enables web pages to query for a running JOSM. Because of restrictions due to same origin policy this was not possible with the existing

Re: [OSM-dev] OSM-to-PostGIS issues

2010-07-19 Thread Stephan Knauss
Juan Lucas Domínguez Rubio writes: Are you taking into account Windows XP's virtual memory (4 GB, I think)? I meant 1.5 GB of physical memory. Your IO-subsystem will already be heavily loaded by the Import into the database. You certainly don't want to have it swapping the same time. I don't

Re: [OSM-dev] Update Rendered Tiles and Map

2010-07-12 Thread Stephan Knauss
PARVEEN ARORA wrote: Is their any script render only the updated area or i have to render all the map again ? Please help me. Please have a look at the documentation in the wiki: http://wiki.openstreetmap.org/wiki/Minutely_Mapnik Stephan ___ dev

[OSM-dev] map application showing vector layer, clustering and editor

2010-07-02 Thread Stephan Knauss
Hello list, someone might find my sample implementation useful. I did it for Markus B who wanted to use it to illustrate this: http://de.wikipedia.org/wiki/Volksbegehren_%E2%80%9EF%C3%BCr_echten_Nichtraucherschutz!%E2%80%9C Basically it is a sample implementation for a special purpose map. It

Re: [OSM-dev] osm2pgsql diff mechanics

2010-06-11 Thread Stephan Knauss
Jukka Rahkonen wrote: Thanks, I will have a try with global diffs and bbox. This is what I use to apply a diff to a partial extract: http://wiki.openstreetmap.org/wiki/User:Stephankn/knowledgebase Stephan ___ dev mailing list dev@openstreetmap.org

[OSM-dev] minutely replication broken

2010-04-30 Thread Stephan Knauss
Hi, my update script started failing. That's caused by a missing file: http://planet.openstreetmap.org/minute-replicate/000/330/040.state.txt Is it possible to restore that file on the server? The osc and the following update files are there. Stephan

Re: [OSM-dev] minutely replication broken

2010-04-30 Thread Stephan Knauss
Stephan Knauss wrote: Is it possible to restore that file on the server? The osc and the following update files are there. Was fixed on the server, replication is running again. Thanks. Stephan ___ dev mailing list dev@openstreetmap.org http

Re: [OSM-dev] Mapnik installation errors

2010-03-15 Thread Stephan Knauss
Scott Pezanowski wrote: I have been struggling for a while to install Mapnik. Sorry, don't know about your specific errors. You used completely different options than those mentioned in the wiki. I did follow these Instructions and it worked.

Re: [josm-dev] Function to select or download a sequence of ways?

2010-03-14 Thread Stephan Knauss
Hello Martin, Martin Koppenhoefer wrote: another selection-feature I'm missing quite often (maybe it is already there and I don't know how to use it) is the use of the selection-rectangle to select ways but not nodes. Currently if you select by rectangle you will only select nodes, and ways

Re: [OSM-dev] Osm2pgsql - Planet.osm fail - Unknown Element name : changeset

2009-12-28 Thread Stephan Knauss
Jon Burgess wrote: The version I provided was cross-compiled from Fedora using the mingw32 tools. The osm2pgsql code itself should be fairly simple to compile, you are more likely to run into difficulties getting the dependencies compiled or installed. a 32 bit version is not that difficult.

Re: [josm-dev] Relation link text

2009-10-12 Thread Stephan Knauss
Dirk Stöcker wrote: Or is there a deeper meaning? Please enlighten me. It's like this for already three months. Could such an obvious bug hide that long? Why not :-) Would you feel artist enough to draw four little images instead of these texts? So it is no bug? I would be happy with the

[OSM-dev] osmosis problem with truncate

2009-09-22 Thread Stephan Knauss
Hi, is this a bug or am I using it wrong? Sporadically osmosis throws an exception. I do not understand the reason because I wanted to clear the db before an import using the truncate task. Osmosis is called like this: osmosis --truncate-pgsql database=db user=pg --fast-read-xml-0.6

Re: [OSM-dev] shortest streets

2009-09-16 Thread Stephan Knauss
yummy goop wrote: How can I search OSM for: - the shortest streets in my city/country/planet something like this? select osm_id, st_length(way) as length from planet_osm_roads order by length asc limit 10 31970890;0.00747434498740587 32782134;0.01093132 29014067;0.019995529652

Re: [OSM-dev] Keeping .osm database up-to-date

2009-09-09 Thread Stephan Knauss
Richard Ive wrote: When you say read the diffs. Do you mean download the weekly planet from osm.org http://osm.org, and then run it though osmosis. Would you be happy sending me an example of your set-up? The initial import was in slim mode. Updates are done whis way, osmosis being

Re: [OSM-dev] osm2pgsql slim mode, postgis, and hard disk spindles

2009-09-08 Thread Stephan Knauss
Richard Weait wrote: Jaunty, osm2pgsql from svn, p4, 3.4GHz single 150GB hard drive 50 hours. Wow, 50 hours to apply the changes from a day. I would be interested in having a wiki page to compare the typical runtime. It would help a lot to determine what performance to expect from a

Re: [OSM-dev] Keeping .osm database up-to-date

2009-09-08 Thread Stephan Knauss
Richard Ive wrote: Is it easy to run a cron that downloads the daily diff which you can then run an: ./osm2pgsql -a -m -d gis ../planet-date.osm.gz on? (I'd assume you add the -a to add the data, rather than clear the db) my setup uses osmosis to read the diffs and pipe the results to

Re: [OSM-dev] Tile Fonts

2009-09-07 Thread Stephan Knauss
Richard Ive wrote: Do you think it is the fonts, or a language issue? 100% the font. Install the unifont. For Tilesathome there was a discussion to use SVG-Fonts. For me this sounds like a good idea as with distributed rendering it would guarantee all using the same font. Your rendering

Re: [OSM-dev] (no subject)

2009-09-05 Thread Stephan Knauss
Roland Olbricht wrote: way 15581339 contains node 448856251 but this node is deleted. Both elements date from 27th July, so they are edited (and the node also created) after the change to API 0.6. How can this happen? Is this intended? That sounds lika potlatch problem. The node is

Re: [OSM-dev] (no subject)

2009-09-05 Thread Stephan Knauss
Tom Hughes wrote: If Potlatch is in live mode then each change is uploaded as it is made so just being in the same changeset does not mean it was uploaded at the same time. Why is that live mode still there? Does this mode have such great advantages? b) maybe for the integrity check at

Re: [OSM-dev] osm2pgsql slim mode, postgis, and hard disk spindles

2009-09-04 Thread Stephan Knauss
Hi Frederik, Frederik Ramm wrote: scenario, and then applied the 20090819-20090820 daily diff with osm2pgsql --slim in a number of different configurations: plain with -C4000.. 262 minutes Can you post some details of your setup, please? My machine takes about

Re: [OSM-dev] Best way to select from a region

2009-09-01 Thread Stephan Knauss
Frederik Ramm wrote: Any hint what's the unit of these values? PostGIS should be able to tell you via the geometry_columns table ok, got it. without anything special it is 900913. As it's for mapnik, sounds reasonable to use the same projection than google ;) Just in case someone searches

Re: [OSM-dev] Planet File Change Request

2009-09-01 Thread Stephan Knauss
Hi, Mark Granger wrote: A better solution would be for the planet file creation process to wait a day and automatically apply the next day's diff file to the database before uploading it. The only downside I can see to this change is that we will have to wait one more day for the release of

Re: [josm-dev] [Tilesathome] Batik jars

2009-09-01 Thread Stephan Knauss
Matti Viljanen wrote: Stephan, does it still work, if you use that line on Windows? It is still working. the manifest of batik.jar references the other jars. no need to mess with additional includes. Is the batik jar installed in some special directory within ubuntu? Tah looks in these

[OSM-dev] Best way to select from a region

2009-08-31 Thread Stephan Knauss
Hi, I'm trying to create lists of features inside a specific country. What would be the most convenient way to do this? As source I could either use a planet file and use a SAX parser or PostgreSQL with the osm2pgsql mapnik schema. As a boundary polygon I would prefer the borders already in

Re: [OSM-dev] Ways without nodes

2009-08-25 Thread Stephan Knauss
andrzej zaborowski wrote: I can mass delete the empty relations (which are not members of other relations) like you did with ways but I will not go and check each one of the 7k. Would someone object to me deleting them? What are other ideas about the origin of empty relations? Can you post

Re: [OSM-dev] Ways without nodes

2009-08-24 Thread Stephan Knauss
andrzej zaborowski wrote: Unlikely but possible. Very unlikely. What too should find that relation? Josm will not. For which bounding box should the api return this empty relation? So would need another relation with members. The mentioned ways are not referred by any relation (except 7). I

[OSM-dev] Ways without nodes

2009-08-23 Thread Stephan Knauss
Hi, is there any practical use for ways without nodes? There are over 600 of such ways in the database, latest one changed 2009-04-16 SELECT id FROM planet_osm_ways WHERE # nodes = 0 I dtored an extracted list here: http://www.stephans-server.de/osm/zeroways.xml The affected ways don't seam

Re: [OSM-dev] Osmosis problem or problem with planet.osm.bz2?

2009-08-22 Thread Stephan Knauss
John Smith wrote: I downloaded the entire planet file twice to make sure there was no corruption, but in both cases osmosis spits out the same error message. To verify the download a secondary download of 6GB would not have been necessary. Just use the md5 hash also available to verify the

Re: [OSM-dev] strange Osmosis/XML/...? problem yesterday

2009-08-16 Thread Stephan Knauss
Brett Henderson wrote: I was able to avoid the bug by using the Woodstox StAX XML parser. JOSM suffers from the same problem. Look here: http://lists.openstreetmap.org/pipermail/josm-dev/2009-August/003268.html It happens with the xerces bundled with java. Using a more recent xerces resolves

[OSM-dev] query to the database matching ids without certain key

2009-08-09 Thread Stephan Knauss
I imported the osm data into postgres. How would I select all nodes from the database which do not have a certain attribute? The last time I worked with SQL is long ago, I could need a bit help. I want to get for example all airport nodes that miss a name. I can select all airports: select

<    1   2