NOAA ENC

classic Classic list List threaded Threaded
4 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