S57 (ENC) support? #2636
-
Hello; I noticed that GDAL/OGR can read the S57 format (if S57 support is enabled, which is supposed to be the default). So, I started looking into the Boston city buildings example, which uses OGRFeatureSource. If there aren't any examples for the S57 format, could I implement some basic S57 support using OGRFeatureSource and related classes? Or if there are better ways or examples to follow, please guide me to the right direction. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This is the gdal doc about S57: https://gdal.org/en/latest/drivers/vector/s57.html I am unable to read S57 features with this method btw:
|
Beta Was this translation helpful? Give feedback.
-
S57 is comprised of many layers. The ogrFeatureSource->setLayer("SEAARE"); And in an earth file <OGRFeatures>
<url>US2EC03M.000</url>
<layer>SEAARE</layer>
</OGRFeatures> |
Beta Was this translation helpful? Give feedback.
-
Great, now I'm able to get the features & understand the process. Thank you! |
Beta Was this translation helpful? Give feedback.
S57 is comprised of many layers. The
OGRFeatureSource
can only open one layer at a time, so have to specify the layer. Make sure you set it before opening the layer:And in an earth file