[gdal-dev] no OBJNAM/NOBJNM after extract distance marks from IENC

wulf gdal-dev at coulmann.de
Sat Nov 23 08:05:21 PST 2019



Hallo,

I like to extract distance marks from S57 IENC

if I run:
  ogr2ogr -skipfailures -f CSV x.csv 1W7ML310.000 -lco GEOMETRY=AS_XY

I get:
  X,Y,RCID,PRIM,GRUP,OBJL,RVER,AGEN,FIDN,FIDS,LNAM,LNAM_REFS,FFPT_RIND,catdis,DATEND,DATSTA,NOBJNM,OBJNAM,INFORM,NINFOM,NTXTDS,PICREP,SCAMIN,TXTDSC,updmsg,SORDAT,SORIND
  11.5270611,52.2419757,"291","1","2","17004","1","7984","1526304445","36",1F305AF98EBD0024,,,"1",,,, , ,,,,"8000",,,,

I miss the value of the distanc mark (maybe OBJNAM or NOBJNM). If I open the data source with an editor I
find something like
  ¨B310.1^_µBDENQB031010000003101^_ÏB3^_"
 
  where 310.1 refers to "km 310.1" and 031010000003101 is a combination
  of an waterwaynumber "031010000" and the distanz as intager "3101"
so information is present.

How to get it extracted with every row?


you find the S57 data here:
  http://gpl.coulmann.de/tmp/1W7ML310.000
  which is original extracted from
  (provided by german inland waterway administration)
  https://www.elwis.de/DE/dynamisch/IENC/download_commit.php?file=WW41_2018-06-22_0_318

Thanks for the effort
Wulf




More information about the gdal-dev mailing list