Talk:GroundTruth Manual

From OpenStreetMap Wiki
Jump to navigation Jump to search

deutsch

Kann das jemand auf Deutsch übersetzen? Danke, --Markus 08:57, 17 February 2009 (UTC)
DONE. --Gary68 12:26, 18 February 2009 (UTC)

tile-size

How can I set tile-size for countours with ibf2osm?

The latest version of GT has some new parameters for the contours command (you actually set the tile size when you create IBF file, not when converting it to OSM):
--gridlat=degrees of latitude
                       specifies the height of the generated contour
                         tiles (in degrees of latitude - default is 0.25
                         degrees)
--gridlon=degrees of longitude
                       specifies the width of the generated contour
                         tiles (in degrees of longitude - default is 0.25
                         degrees)
Great

The current is ridiculously small when not inside the main alpine divide. On the other hand it is too big for hgt1" data. Twould be great to specify a goal for resulting image osm size / endresulting .img size.

OSM size: that would be pretty difficult to implement and is thus outside of the scope of this app. IMG size: practically impossible, since GroundTruth doesn't really produce IMG files itself.

I would like resulting image sizes to be 10-15MB and convert the osm with mkgmap instead of cgpsmapper (cgpsmapper free may not be used for commercial projects, so offering the contourlines on a website withs advertisements would already inflict with cpgsmapper free usage rights if taking the usage conditions stictly!)

I agree that cgsmapper's license terms are a nuisance, unfortunately I was forced to use cgpsmapper since I couldn't find any other tools to convert .MPs to .IMGs. It would be great if mkgmap could do this, maybe you could contact the author with a feature request ;)
mkgmap can off course compile mp to .img - problem is that I think , also maptk (I could not find licence, but Juergen would definitely not restrict anything - maybe request you to note that .img was created by maptk in case you make it commercial). Definitely mkgmap supports more customization on .osm input, but mp input usually compiles just fine.
Can you please give me an example mkgmap command line for generating IMGs from .MP? I looked for it myself some time ago and I couldn't find any info. I know that it generates routing data from .MPs, but I don't know about general maps. I'll take a look into maptk --Breki 13:21, 23 June 2009 (UTC)
You can't use as many arguments. Try "java -jar mkgmap.jar *.mp" It is that simple. For bigger files you will need to increase memory for java with Xmx command as usual.--Extremecarver 15:03, 24 June 2009 (UTC)

Using srtm2osm I could define this before with osmosis but I do see the advantages of the new tools. Also it would be really great if one could define country boundaries for bounds. This way one could offer contourlines for maps created by country excerpts from geofabrik.de. While non mountaineous regions are usually result in 500kb to 5MB big contorline .osm files, hgt1 from viewfinderpanoramas results in upto 511MB sized .osm files (and are nonetheless somehow corrupted).

Edit: Actually srtm1" hgt are not working with groundtruth anymore. Output is complete rubbish (and Germany/Austria/Switzerland is 60GB temporary osm files at 20m invetervals). This is quite frustrating as srtm2osm was able to correctly handle SRTM1" files by viewfinderpanoramas. SRTM3" by viewfinderpanoramas are often wrongly aligned 20-25m to the west, SRTM1" are correct however. SRTM3" from Nasa is complete rubbish in the Alps - all mountains are holes... So either groundtruth should support cgiar (Cgiar license is actually less restrictive than cgpsmapper if you want to publish maps) or get SRTM1" working again. SRTM2OSM is quite a pain to use so it is actually easier to use other tools to convert to mp and then compile with maptk respectively with mkgmap both of which allow commercial use of generated maps.

I haven't tested SRTM1 with either srtm2osm or GT, so I cannot say. As for cgiar, I agree, it's been long on my "todo" list, I'll add this as part of my effort to produce new version of Kosmos.
looking forwart to it.

Als groundtruth ibf2osm seem to output somehow wrongly, I'm inable to follow up with mkgmap (even though I used cat=500,100 option to get tags right). I desperately need to set tilesize much bigger if not using SRTM1" data, tiles are far too small (2025 tiles limit of all units meaning you want to have as big .img as possible). --Extremecarver 21:39, 19 June 2009 (UTC)

Can you specify exactly what's the problem with produced OSM files?
My style-files (also default style-files) are simply not getting any data out of them, I don't really understand why however. The tags seem correct but mkgmap produces empty tiles. Running mkgmap on srtm2osm outpout was no prob at all.
BTW: I wasn't planning to add Contours->OSM functionality to GroundTruth, but I've added it because people requested it. Maybe I made a mistake indicating that it was a replacement for Srtm2Osm, but the truth is I don't plan to do any new development on Srtm2Osm.
As for tile sizes: maybe you can produce smaller tiles for mountainous areas and larger tiles for plains using new GT options? --Breki 20:13, 20 June 2009 (UTC)
Yes this will work, an approach that works more automatic would be better. Actually as a quick modus, you could set some filters on zipped size of .hgt file, and upon that size decide on tilesizes. Mountaineous regions will need much more space compressed than non mountaineous regions. Also maybe on analyzing a quick check could be done on amount of lines, and then decide on tilesize.--Extremecarver 00:17, 22 June 2009 (UTC)
I'm not saying it cannot be done, it's just that I'm working on other stuff too and these features are frankly a bit too specific. --Breki 13:21, 23 June 2009 (UTC)

Example for multicolor area or lines

Hi Breki,

to you have an rule example for multicolor areas and/or lines?

--Lefty1963 06:57, 23 September 2009 (UTC)

Hmmm good question - I don't think I do :). Are you having problems with multicolor? --Breki 16:33, 23 September 2009 (UTC)

Problems with more than two icon colors

Speaking of colors. Is there a limit of colors used for Icons I have problems with more than two colors.

--Lefty1963 07:40, 23 September 2009 (UTC)

I can't remember exactly, but I think the limit is 2 colors (or 4 colors, but two of those are used for the night theme). Please consult cGpsMapper's manual for more info. --Breki 16:23, 23 September 2009 (UTC)