NOAA ENC

classic Classic list List threaded Threaded
5 messages Options
MarkL MarkL
Reply | Threaded
Open this post in threaded view
|

NOAA ENC

I am attempting to build a .earth file to display NOAA ENC charts.  I get no error messages, but nothing but a blue globe when I attempt to view the following map file:

<map name="ENC Test" type="geocentric" version="2">
    <options lighting = "false" >
        <cache driver = "filesystem"
           path = "/home/skymark/enc_cache" />
        <cache_policy usage="read_write" />
       <terrain driver                   = "mp"
                 skirt_ratio              = "0.05"
                 color                    = "#0000FFFF"
                 normalize_edges          = "false"
                 incremental_update       = "false"
                 quick_release_gl_objects = "true"
                 min_tile_range_factor    = "7.0"
                 cluster_culling          = "false" />
     </options>

    <model name="model_encUS4MA04" driver = "feature_geom">
        <layout tile_size="500000" crop_features="true" paged="true">
            <level max_range="1e10"/>
        </layout>
        <features name="encMA04" driver="ogr" ogr_driver="S57">
            <profile srs    = "wgs84"
        xmin   = "-180"
        xmax   = "180"
        ymin   = "-90"
        ymax   = "90" />
            <url>/home/myuser/Documents/ENC_ROOT/US4MA04M/US4MA04M.000</url>
        </features>
    </model>
    <viewpoints time="1.0">
        <viewpoint name="42.905N 070.825W" heading="0.0" height="0" lat="42.905" long="-70.825" pitch="-90.0" range="100000"/>
    </viewpoints>
</map>

I just be missing something.  Can anyone shed any light on this?

Thanks,
Mark
Mark
MarkL MarkL
Reply | Threaded
Open this post in threaded view
|

Re: NOAA ENC

Additional info: I am attempting to view this file using osgearth_viewer.

Thanks,
Mark
Mark
MarkL MarkL
Reply | Threaded
Open this post in threaded view
|

Re: NOAA ENC

I found the solution.  What I was missing was a <layer> tag naming the layer of the S57 file to be displayed.

Thanks,
Mark
Mark
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: NOAA ENC

Glad you found the solution Mark!
Glenn Waldron / Pelican Mapping
ertanataman ertanataman
Reply | Threaded
Open this post in threaded view
|

Re: NOAA ENC

In reply to this post by MarkL
MarkL wrote
I found the solution.  What I was missing was a <layer> tag naming the layer of the S57 file to be displayed.

Thanks,
Mark
How did you add the layer tag?

<map name="ENC Test" type="geocentric" version="2">
    <options lighting = "false" >
        <cache driver = "filesystem"
           path = "/home/ataman/s57/enc_cache" />
        <cache_policy usage="read_write" />
       <terrain  driver                   = "mp"
                 skirt_ratio              = "0.05"
                 color                    = "#0000FFFF"
                 normalize_edges          = "false"
                 incremental_update       = "false"
                 quick_release_gl_objects = "true"
                 min_tile_range_factor    = "7.0"
                 cluster_culling          = "false" />
     </options>

    <model name="model_encUS4MA04" driver = "feature_geom">
        <layout tile_size="500000" crop_features="true" paged="true">
            <level max_range="1e10"/>
        </layout>
        <features name="encMA04" driver="ogr" ogr_driver="S57">
            <profile srs    = "wgs84"
        xmin   = "-180"
        xmax   = "180"
        ymin   = "-90"
        ymax   = "90" />
            <url>/home/ataman/s57/MA_ENCs/ENC_ROOT/US4MA04M/US4MA04M.000</url>
                                <layer>myTableName</layer>
        </features>
    </model>
    <viewpoints time="1.0">
        <viewpoint name="42.905N 070.825W" heading="0.0" height="0" lat="42.905" long="-70.825" pitch="-90.0" range="100000"/>
    </viewpoints>
</map>

I use osgearth 3.0 and
driver                   = "mp"
caused error below

osgearth_viewer ~/s57map.earth
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
Error reading file .osgearth_engine_mp: file not handled
[osgEarth]* WARNING: Failed to load terrain engine driver for "mp"
[osgEarth]* FAILED to create a terrain engine for this map
Segmentation fault (core dumped)

When I remove the driver line I see blue globe but nothng else