Re: [Libosmscout-development] Cannot get TYPE wood to render above level 10
Library for OpenStreetMap offline rendering and routing
Status: Beta
Brought to you by:
tteuling
|
From: Lukáš K. <luk...@ce...> - 2016-08-23 13:30:14
|
Next round of investigation...
When I disable low zoom optimization, highways (highway_motorway)
are displayed. It seems that highway_trunk exists in my waysopt.dat
but highway_motorway are not there!
But it should be there, in import log are these lines:
+ Step #20 - OptimizeWaysLowZoomGenerator...
Module description: Create index for area lookup of reduced resolution ways
Module requires file 'ways.dat'
Module provides optional file 'waysopt.dat'
- Collecting way data to optimize...
% 93.53 (948306/1013883)
Collected 213433 ways for 17 types
- Optimizing type highway_motorway...
Merging 2781 ways
Merged to 95 ways
Writing map for level 0, index level 1, 1 cells, 2 entries, 4 B
Writing map for level 1, index level 1, 1 cells, 4 entries, 6 B
Writing map for level 2, index level 1, 1 cells, 12 entries, 15 B
Writing map for level 3, index level 1, 1 cells, 26 entries, 29 B
Writing map for level 4, index level 1, 1 cells, 38 entries, 41 B
Writing map for level 5, index level 1, 1 cells, 44 entries, 51 B
Writing map for level 6, index level 1, 1 cells, 52 entries, 62 B
Writing map for level 7, index level 1, 1 cells, 59 entries, 72 B
Writing map for level 8, index level 5, 2 cells, 72 entries, 99 B
Writing map for level 9, index level 5, 2 cells, 77 entries, 111 B
Writing map for level 10, index level 5, 2 cells, 81 entries, 119 B
Tim, howto continue?
How can I check that highways exists in wayopts.dat?
If these ways are there, why are not loaded by MapService::GetWaysLowZoom ?
Lukas
Dne středa 17. srpna 2016 9:38:28 CEST Lukáš Karas napsal(a):
> Hi Tim.
>
> I have similar problems with highways (highway_motorway) in Czechia.
> It disappears above zoom level 10, even that I siplified style sheet as
> possible and add highway_motorway to "MAG country-"... It is funny that
> highway_trunk is still displayed...
>
> $./DumpData/DumpData czech-republic -w 355015786
> Way {
> OSM id: 355015786
> fileOffset: 66750338
> type: highway_motorway
> boundingBox: [49.98112 N 14.56507 E - 50.00515 N 14.60573 E]
> center: 49.99313 N 14.58540 E
> cell level: 12
>
> Ref: D1
> Grade: 1
> Bridge: false
> Tunnel: false
> Roundabout: false
> Access {
> oneway: forward
> car: forward
> }
> MaxSpeed: 130
> ...
>
> German hightways works correctly. I know that german highways are always
> better than ours :) It is possible that OSM relations do the magic?
>
> I can provide database and simplified stylesheet if you want...
>
> Lukas
>
> Dne pátek 12. srpna 2016 22:19:55 CEST Tim Teulings napsal(a):
> > Hello Nicholas,
> >
> > You can always use DumpData to ask the database for an OSM or
> > libosmscout object. For example:
> >
> > [tim:~/projects/OSMScout/DumpData] master(+234/-95,9)+* ± src/DumpData
> > ../maps/washington -r 1153148
> > Area {
> >
> > OSM id: 1153148
> > fileOffset: 13971846
> > type: boundary_county
> > boundingBox: [46.73541 N 119.37048 W - 47.26174 N 117.95828 W]
> > center: 46.99857 N 118.66438 W
> > cell level: 7
> >
> > ...
> >
> > Using the concrete OSMId you should be able to clearly identify the
> > object during data loading or rendering. This way you can check if an
> > object is available at a certain state. For example to see, if it is
> > contained in the MapData instance (loop over data with some kind
> > equality check).
> >
> > --
> > Gruß...
> >
> > Tim
> >
> > --------------------------------------------------------------------------
> > -- -- What NetFlow Analyzer can do for you? Monitors network bandwidth and
> > traffic patterns at an interface-level. Reveals which users, apps, and
> > protocols are consuming the most bandwidth. Provides multi-vendor support
> > for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using
> > capacity planning reports. http://sdm.link/zohodev2dev
> > _______________________________________________
> > Libosmscout-development mailing list
> > Lib...@li...
> > https://lists.sourceforge.net/lists/listinfo/libosmscout-development |