Published by breki on 18 Oct 2009 at 04:14 pm
GroundTruth 1.6
The new version of GroundTruth has just been released (download link). As I mentioned yesterday, the main work was on filling sea polygons based on the natural=coastline OSM tag. One additional feature is the ability to set the background color of the map (even if there are no coasts in your area). All of this is configured using the Options section of the rendering rules:
Sometimes it is not possible for the GT’s coastline processing algorithm to close up all of the coastlines and the resulting map can get ‘flooded’. In such a case I suggest you should use the new ‘–nosea’ option, which turns off sea polygon filling. Unfortunately a lot of the OSM planet extracts are lousy and they don’t include enough of the coastline to be able to connect it to the extract boundary, so I guess ‘-nosea’ option will have to be used quite frequently.
Some Background Information
This version of GroundTruth contains a lot of new (and improved) code which I was working on for the past several months. The work is primarily targeted towards a new generation of Kosmos tools, but since GT shares common geometry and OSM libraries with Kosmos, it can benefit from these libraries too.





Ivan on 19 Nov 2009 at 16:28 #
Hello. I tried to use GroundTruth for converting to MP with Navitel typeset.
Would you create writer encoding based on “CodePage” parameter. For example: protected void GenerateIndividualFile(IPolishMapFileCreator polishMapFileCreator, ITaskRunner taskRunner, string mapFileInfo) { Encoding fileEncoding = null; if (this.settings.AdditionalMapParameters.ContainsKey(“CodePage”)) { string codePageString = this.settings.AdditionalMapParameters["CodePage"]; int codePage; int.TryParse(codePageString, out codePage); try { fileEncoding = Encoding.GetEncoding(codePage); } catch { } }
Regards, Ivan
breki on 21 Nov 2009 at 13:06 #
@Ivan,
I’ve added your request to the “todo” list for next versions.
Fips on 05 Jan 2010 at 12:59 #
Hey, I am currently trying to download the DEM data for the whole area of Europe. I know its an insane project
I already set up an Apache webserver and downloaded all SRTM3 and SRTM1 data from the NASA server. Then I integrated the files from Jonathan de Ferranti into the directories.
From the excerpt of Geofabrik I know that the bounds of Europe are 34, -32, 75, 45 (minLat, minLon, maxLat, maxLon). At some point Groundtruth is giving me the error that there is no DEM data for that area. I found out, that this is only sea area. Is there a way to avoid this error? Could I only copy another tile with all elevations in that area set to zero?
Best Greetings
breki on 05 Jan 2010 at 18:17 #
@Fips,
Yes, I think creating a dummy zero-elevation tile for the missing area is currently the easiest workaround. I’ll add this issue to the “todo” list and fix it when I get some free time.
Fips on 05 Jan 2010 at 22:10 #
I always keep getting the error message for the same map area:
Generating contours for area (-32, 62, -31,75, 62,25) ERROR: Brejc.DemLibrary.DemLoaderException: No DEM data available. bei Brejc.DemLibrary.IntelligentDemProvider.LoadDem(Bounds2 bounds) bei Brejc.DemLibrary.Ibf.IbfUtilities.GenerateAreaDefinitions(IbfFile ibfFile , IRasterDemProvider rasterDemProvider, GenerateIbfAreaDefinitionsParameters par ameters) bei GroundTruth.Engine.Ibf.DefaultIbfGenerator.Run(IbfGenerationParameters pa rameters) bei GroundTruth.GenerateContoursCommand.Execute(IEnumerable`1 args) bei GroundTruth.ConsoleApp.Process()
I tried to put empty dem files named N62W031.hgt.zip, N62W032.hgt.zip, N63W031.hgt.zip and N63W032.hgt.zip into the Eurasia folder – no effect. For testing purposes, I deleted all other files in that directory. But it’s still not working.
Do you know where the problem is? Do the empty files have to be named other than I did?
Kind regards