| name | Ireland |
|---|---|
| name:de | Irland |
| name:en | Ireland |
| name:es | Irlanda |
| place | island |
| type | multipolygon |
<?xml version='1.0' encoding='UTF-8'?>
<osm version="0.6" generator="csv2osm_kech61">
<bounds minlon="-10.00000" minlat="49.00000" maxlon="2.50000" maxlat="61.25000" origin="osmfilter 1.2S"/>
<relation id="7681896" version="1" timestamp="1970-01-01T00:59:59Z" changeset="1">
<tag k="type" v="dummy"/>
</relation>
</osm>osmosis.bat --rx id_delete.osm --sort-0.6 --rx base.osm --sort-0.6 --merge --wx result.osmosmfilter planet.o5m --keep-relations="( place=island or place=islet or place=archipelago or place=peninsula ) and type=multipolygon and area=yes" --drop-nodes --drop-ways --ignore-dependencies -o=mp_isles.osm use strict;
my $infile = shift; #mapname
my $inextension = "osm";
my $outextension = "csv";
my $infilestring = $infile . "." . $inextension;
my $outfilestring = $infile . "_rels." . $outextension;
print "\n", $infilestring, "\n";
print $outfilestring, "\n";
my $mem_count=0;
my $cnt=0;
my $id = 0;
my $fh;
my $line;
my @speicher = ();
my $t;
my $member;
open( fh, $infilestring ) or die $!;
open( fh_out, ">", $outfilestring ) or die $!;
while ( $line = <fh> ) {
if ( $line =~ /^\s*<relation id=["']([0-9]*)["']/ ) {
$id = $1;
$cnt++;
#print fh_out $id,";";
}
elsif ( $line =~ /^*<member type="way"/ ) {
$mem_count++;
}
elsif ( $line =~ /^\s*<\/relation/ ) {
if ($mem_count > 100){
print fh_out $id,";";
print fh_out $mem_count,"\n";
$member=(join ':',$mem_count,$id);
push (@speicher, $member );
}
$mem_count=0;
}
}
close(fh);
close(fh_out);
sh /home/kto/freizeitkarte-android-1712/tools/osmosis/bin/osmosis --read-pbf /home/kto/freizeitkarte-android-1712/work/Freizeitkarte_GBR/Freizeitkarte_GBR.transformed_plus_routes.osm.pbf --mapfile-writer file=/home/kto/freizeitkarte-android-1712/install/Freizeitkarte_GBR/Freizeitkarte_GBR.map bbox='48.76,-9.41,61.13,2.25' type=ram threads=8 debug-file=false map-start-position='51.5055,-0.1143' map-start-zoom=12 tag-conf-file=/home/kto/freizeitkarte-android-1712/theme/tag_mapping.xml simplification-factor=1.0 comment="(c) Map: FZK project (free for private use); Map data: OpenStreetMap contributors; Contour data: U.S. Geological Survey and J. de Ferranti"
kto@mercator:~/gbr-test$ sh /home/kto/freizeitkarte-android-1712/tools/osmosis/bin/osmosis --read-pbf great-britain-latest.osm.pbf --mapfile-writer file=Testmap_GBR.map bbox='48.76,-9.41,61.13,2.25' type=ram threads=8 debug-file=false map-start-position='51.5055,-0.1143' map-start-zoom=12 tag-conf-file=tag-mapping.xml simplification-factor=1.0 comment="Testmap to verify mapwriter performance"
Nov 08, 2017 5:13:06 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.45
Nov 08, 2017 5:13:06 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Nov 08, 2017 5:13:06 PM org.mapsforge.map.writer.osmosis.MapFileWriterTask <init>
INFO: mapfile-writer version: mapsforge-map-writer-0.8.0
Nov 08, 2017 5:13:06 PM org.mapsforge.map.writer.osmosis.MapFileWriterTask <init>
INFO: mapfile format specification version: 3
Nov 08, 2017 5:13:06 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Nov 08, 2017 5:13:06 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Nov 08, 2017 5:13:06 PM org.mapsforge.map.writer.osmosis.MapFileWriterTask process
INFO: start reading data...
Nov 08, 2017 5:16:32 PM org.mapsforge.map.writer.osmosis.MapFileWriterTask complete
INFO: completing read...
Nov 08, 2017 5:57:08 PM org.mapsforge.map.writer.osmosis.MapFileWriterTask complete
INFO: start writing file...
Nov 08, 2017 5:57:13 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 100% of sub file for zoom interval 1 (5,0,7)
Nov 08, 2017 5:57:13 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 10% of sub file for zoom interval 2 (10,8,11)
Nov 08, 2017 5:57:13 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 20% of sub file for zoom interval 2 (10,8,11)
Nov 08, 2017 5:57:14 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 30% of sub file for zoom interval 2 (10,8,11)
Nov 08, 2017 5:57:16 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 40% of sub file for zoom interval 2 (10,8,11)
Nov 08, 2017 5:57:20 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 50% of sub file for zoom interval 2 (10,8,11)
Nov 08, 2017 5:57:22 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 60% of sub file for zoom interval 2 (10,8,11)
Nov 08, 2017 5:57:22 PM org.mapsforge.map.writer.util.GeoUtils clipToTile
WARNING: invalid geometry prior to tile clipping, trying to repair 328880344
Nov 08, 2017 5:57:22 PM org.mapsforge.map.writer.util.GeoUtils clipToTile
WARNING: invalid geometry even after attempt to fix 328880344
Nov 08, 2017 5:57:22 PM org.mapsforge.map.writer.util.GeoUtils clipToTile
WARNING: clipped way is not valid, trying to repair it: 328880344
Nov 08, 2017 5:57:29 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 70% of sub file for zoom interval 2 (10,8,11)
Nov 08, 2017 5:57:38 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 80% of sub file for zoom interval 2 (10,8,11)
Nov 08, 2017 5:57:44 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 90% of sub file for zoom interval 2 (10,8,11)
Nov 08, 2017 5:57:50 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 10% of sub file for zoom interval 3 (14,12,21)
Nov 08, 2017 5:57:54 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 20% of sub file for zoom interval 3 (14,12,21)
Nov 08, 2017 7:37:26 PM org.mapsforge.map.writer.MapFileWriter writeSubfile
INFO: written 30% of sub file for zoom interval 3 (14,12,21)
...
INFO: completing read...
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27498 kto 20 0 60.324g 0.030t 17860 S 100.3 48.6 19:17.78 java
INFO: written 20% of sub file for zoom interval 3 (14,12,21)
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27498 kto 20 0 60.834g 0.033t 17860 S 100.3 54.3 64:43.28 java
BTW from the old days map-writer was never using full cpu load after the initial processing.
osmconvert great-britain-latest.osm.pbf --verbose -o=great-britain-latest.osm
osmfilter great-britain-latest.osm --verbose --drop-relations="@id=7681896 or @id=6038068" -o=great-britain-latest-drop.osm
grep --after-context=15 --before-context=15 "id=\"6038068\"" great-britain-latest-drop.osm
osmconvert great-britain-latest-drop.osm --verbose -o=great-britain-latest-drop.osm.pbf
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27498 kto 20 0 60.834g 0.033t 17860 S 100.3 54.3 64:43.28 java
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25876 kto 20 0 60.271g 0.050t 17708 S 737.2 82.4 49:17.34 java
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-dev+unsubscribe@googlegroups.com.
To post to this group, send email to mapsfo...@googlegroups.com.
Visit this group at https://groups.google.com/group/mapsforge-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/6d07a0bd-8be8-4d97-b18a-3bd94d2ffa70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think we should start collecting these relation ids and add another step to the mapgenerator process to filter those out automatically, to improve our map building process.
On 16 November 2017 at 15:27, openandromaps osm <openan...@gmail.com> wrote:
Its this one:
rel id 6038068
GreatBritain
place=island
type=multipolygon
area=yes
Skip it and everything runs fine for this region.
There are several relations like this one.
Am Mittwoch, 8. November 2017 06:34:44 UTC+1 schrieb freizeitkarte:I have run a test with the geofabrik GBR extract and mapwriter 0.8. The build performance is (very) slow. CPU load sticks at 100 percent. Expected is 400-700 percent. The here mentioned "monster relation" (id 7681896, the coastlines of IRL not GBR) has no influence on the performance. Conclusion: There must be something else that slows down the performance.
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.