Skip to Content
Web Mapping Illustrated
book

Web Mapping Illustrated

by Tyler Mitchell
June 2005
Beginner to intermediate
372 pages
10h 1m
English
O'Reilly Media, Inc.
Content preview from Web Mapping Illustrated

Name

IHO S-57 Files

Synopsis

  • Also known as S57. The IHO S-57 format is a vector interchange format used for maritime charts.

  • Developed by the International Hydrographic Organization (IHO). For more information about the IHO see http://www.iho.shom.fr/.

File listing

Individual S57 data files have an extension of *.000; for example, US1BS02M.000.

Data access/connection method

  • S57 access in MapServer occurs through OGR; CONNECTIONTYPE OGR must be used.

  • Specify a full path or a relative path from the SHAPEPATH to the .000 file for the CONNECTION.

  • The CONNECTION must also include a layer number (as per the layer number from ogrinfo, but minus one).

Special notes

The underlying OGR code requires two files from your GDAL/OGR installation when reading S57 data in MapServer: s57objectclasses.csv and s57attributes.csv. These files can be found in the /GDAL/data/ folder. If you receive an error in MapServer such as:

    msDrawMap(): Image handling error. Failed to draw layer named 's57'. msOGRFileOpen():
    OGR error. GetLayer( 9) failed for OGR connection

you may have to point MapServer to these files using the CONFIG parameter in the main section of your map file:

    CONFIG GDAL_DATA "C:\gdal\data"

ogrinfo examples

Here's an example that uses ogrinfo on an S57 file to get the OGR index number:

    > ogrinfo us1bs02m.000 ERROR 4: S57 Driver doesn't support update. Had to open data source read-only. INFO: Open of 'us1bs02m.000' using driver 'IHO S-57 (ENC)' successful. 1: ADMARE (Polygon) 2: CBLSUB (Line String) 3: CTNARE ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Design of Web APIs

The Design of Web APIs

Arnaud Lauret
PostGIS in Action, Second Edition

PostGIS in Action, Second Edition

Regina O. Obe, Leo S. Hsu

Publisher Resources

ISBN: 0596008651Errata Page