PostFrontal Forum
PostFrontal Forum
LK8000_Support_Forum | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 LK8000 International Support
 Paragliders
 LK Maps with OpenStreetMap layer
 New Topic  Reply to Topic
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

rmerigan
Falchetto

Australia
177 Posts

Posted - 21/08/2013 :  13:52:18  Show Profile  Reply with Quote
Joch,
you will need to put in the name of your wire layer in the .tpl file .
To save your wire layer right click on the wire layer in the left layer panel on QGIS and save as shape file, take those shape files and add it to your existing lkm file along with the modified tpl file and rezip .
Go to Top of Page

rmerigan
Falchetto

Australia
177 Posts

Posted - 21/08/2013 :  13:57:28  Show Profile  Reply with Quote
Coolwind,

This is from my LKM file
water_area, 5010,,1,64,96,240
water_line, 5020,,,64,96,240
city_area, 5110,,1,223,223,0
city_point, 5070,218,1,223,223,0
road_line, 5030,,,64,64,64
roadsmall_line, 5040,,,64,64,64
railroad_line, 5060,,,240,64,64

Any idea what 5010, 5030, 5070 etc. means? I gather the 3 commas in a row for road line etc. means they are visible at all zooms
Go to Top of Page

Coolwind
Moderator

Italy
8957 Posts

Posted - 21/08/2013 :  14:05:47  Show Profile  Visit Coolwind's Homepage  Reply with Quote
Ok I think I remember.. The 5xxx values are marking topology items with a number. 5010 means water area, of course.
You must, you must , simply indicate these numbers as they are in your example. nothing else to be done.
LK is NOT using the old xcsoar zoom level, because it wes totally rewritten and we use custom zoom levels available to the user in topology setup.
The only thing you can change is the RGB value, in case you want to . But I would not do it.

In practice originally xcsoar was setting for each item a common zoom level in this file.
LK is not doing so. It is instead identifying an item giving a number id to it (5010, 5020 etc) and then the zoom level is adjustable in configuration.

I hope it is clear.. I did it so much time ago!!
Go to Top of Page

rmerigan
Falchetto

Australia
177 Posts

Posted - 21/08/2013 :  14:20:05  Show Profile  Reply with Quote
I guess Joch wants to put in a layer for cables in his swiss map any idea what 5XXX that would be or just try and pick something unused like 5080.
Go to Top of Page

Coolwind
Moderator

Italy
8957 Posts

Posted - 21/08/2013 :  14:59:40  Show Profile  Visit Coolwind's Homepage  Reply with Quote
// 1 is marked locations
// 05 for coast areas
// 10 for water area
// 20 for water line
// 30 for big road
// 40 for medium road
// 50 for small road
// 60 for railroad
// 70 for big city
// 80 for medium city
// 90 for small city
// 100 for very small city
// 110 for city area polyline with no name

beware that there is a "shape icon" (see https://github.com/LK8000/LK8000/blob/master/Common/Source/MapDraw/OpenCloseTopology.cpp)
defining an icon which is embedded in LK as an internal resource, and thus cannot be changed.

I can guess Joch may try using the Mark Location topology item identifier for the scope.


1 means 5001
110 means 5110


Edited by - Coolwind on 21/08/2013 15:00:08
Go to Top of Page

chris@lk8000
Pulcino

Cuba
44 Posts

Posted - 21/08/2013 :  19:56:07  Show Profile  Visit chris@lk8000's Homepage  Reply with Quote
As far as I understood, the procedure is to find a apropriate layer to add. Convert with QGIS to SHP format and place it inside the .LKM

And not to forget to name it in the topology.tpl file

What about resizing to make it fit to the existing map?

What are those SHX, DBF and so on?
Go to Top of Page

chris@lk8000
Pulcino

Cuba
44 Posts

Posted - 21/08/2013 :  20:00:05  Show Profile  Visit chris@lk8000's Homepage  Reply with Quote
quote:
Originally posted by chris@lk8000

What are those SHX, DBF and so on?



Did try now and found the answer:
Ok, when saving the layer this files will become generated along with the shapefile...
Go to Top of Page

joch
Pulcino

Switzerland
12 Posts

Posted - 22/08/2013 :  13:07:00  Show Profile  Reply with Quote
Hello
Now i tryd a lot of thing, but a long time without sucsess.
I have saved the wire layer as shape file and stored it in the LKM file.
There were 5 Files, i have named them: wires_line, shx, shp, qpj, prj, dbf.

Then i used for the topology Folder the same number as for the road "roadbig". So i wrote there: wires_line, 5030,,,240,64,64

And then, Yepye it works now with the PC!!

Thank you all very much for your help and patience, because i'am not a hero with computers i only can do what people help me to do.

Martin
Go to Top of Page

chris@lk8000
Pulcino

Cuba
44 Posts

Posted - 22/08/2013 :  13:57:32  Show Profile  Visit chris@lk8000's Homepage  Reply with Quote
http://mapgen.xcsoar.org has anice map generator.

The resulting xcm can be used with LK8000 as well, right?
Go to Top of Page

rmerigan
Falchetto

Australia
177 Posts

Posted - 22/08/2013 :  15:37:24  Show Profile  Reply with Quote
Only in old versions of lk8000, the XCM file includes the DEM file, can include waypoints etc whereas LK8000 has a separate DEM file and the LKM file is only topology
Go to Top of Page

chris@lk8000
Pulcino

Cuba
44 Posts

Posted - 24/08/2013 :  02:30:23  Show Profile  Visit chris@lk8000's Homepage  Reply with Quote
I only found those restrictions below:

Old JPG2000 terrain files in old XCM maps are no more supported. maps cannot be larger than 4-5 megabytes.
Go to Top of Page

Coolwind
Moderator

Italy
8957 Posts

Posted - 25/08/2013 :  02:14:56  Show Profile  Visit Coolwind's Homepage  Reply with Quote
xcm maps are not a choice for lk anymore.
Go to Top of Page

chris@lk8000
Pulcino

Cuba
44 Posts

Posted - 26/08/2013 :  12:44:50  Show Profile  Visit chris@lk8000's Homepage  Reply with Quote
I see. Tried with a freshly generated xcm. It seems useable but shows funny symbols in certain places.

Beside asking for a new map using the template:
Which tools can be used to create custom maps resulting in a valid LKM?

Is all handmade with QGIS or do we have an easy to use tool (preferable online tool) as well available?

I tried QGIS but my hardware can hardly handle the OSM shapefiles available. It seems to come with to many detail and each time I try to make intersections mouse cursor goes hourglass for minutes.

Maybe XCM can be converted to LKM providing an easier way to have a more lightweight approach.
Go to Top of Page

Coolwind
Moderator

Italy
8957 Posts

Posted - 26/08/2013 :  12:52:42  Show Profile  Visit Coolwind's Homepage  Reply with Quote
it seems you dont understand why xcm and lkm are different, internally.
LKM have different icons, more shape categories (and different) and their zoom levels can be changed by the user.
If you use xcm all of this will not happen, if ever will work.

Go to Top of Page

rmerigan
Falchetto

Australia
177 Posts

Posted - 26/08/2013 :  12:59:47  Show Profile  Reply with Quote
I found that OSM had too small a limit on the area of the files and that it includes every street in every little town , so I used shp files from government sources and only loaded the road layers. The existing river ,lakes, town outlines etc in my LKM file were ok to use as I just wanted to increase the road detail.

Why don't you try pulling out all the shp files from the XCM and making a new .tpl file, although I found for
my area the XCM files provided no better detail

Edited by - rmerigan on 26/08/2013 13:01:02
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.13 seconds. Snitz Forums 2000

Since 2006, owned and maintained by PostFrontal S.A.S. di Giuliano Golfieri & c. - VAT ID: IT05264240960
THIS WEBSITE ONLY USES FUNCTIONAL COOKIES
Privacy & Cookie Policy