Skip to content

TFS map creation #2709

Discussion options

You must be logged in to vote

If you want to stream feature tiles I recommend instead you use MVT format.

You can do this with the GDAL ogr2ogr tool, for example:

ogr2ogr -of MVT output_folder input.shp -dsco MINZOOM=0 -dsco MAXZOOM=12

See for more: https://gdal.org/en/stable/drivers/vector/mvt.html

Then in osgEarth you can use an XYZFeatureSource to load it:

    <xyzfeatures name="my-data">
        <url> output_folder/{z}/{x}/{y}.pbf </url>
        <min_level>0</min_level>
        <max_level>10</max_level>
        <format>pbf</format>
        <profile>spherical-mercator</profile>
    </xyzfeatures>

Hope this helps.

(PS. If you really want to use TFS, the osgearth_tfs tool is still around.)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by devil-darkside
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants