Hi again,

I had a closer look and it seems like the profiles were skipped when gdal 2.2 was released.

 All the content from iw and aml profiles was merged in the regular

gdal/data/s57objectclasses.csv  and gdal/data/s57attributes.csv  files.

So this might be a case about what gdal version you are using and using profile on older versions.

These files can be found under /usr/share/gdal if remember correctly.

There you can look through all possible objects and attributes.

Normally when I analyze a data set, I try and look thru one obejct class at the time.

First I run a "ogrinfo -summary" to see what classes I have, then

look at each class separately with e.g.  ogrinfo 1W7ML310.000 <one class at the time from summary>

I was doing some work with aml profile files five years ago, and had to go thru this examining

of files.   At that time I had to patch some missing attriubutes in the  57attributes.csv for aml.

The procedure is to compare the specification and the content of the csv file.

But I remember that I played with some IW files from Germany as well and those displayed just fine.


Good luck /Lars Schylberg


 Den 2019-12-12 kl. 20:25, skrev Wulf:
Hi Lars,

thanks for the hint.

Have tried the inland water profile?  This is how i did it in the past.
This is a config for ogrinfo or ogr2ogr.

--config S57_PROFILE iw
I try to find where the docs describe this, but didn't.
I'm sure it's my wrong usage, but I do not know how to figure out.


Good luck
still there is no wtwdis or unlocd

I run

------
ogrinfo -al --config S57_PROFILE iw 1W7ML310.000 POINT

Warning 6: 'ON#' is an unexpected value for RETURN_PRIMITIVES open option of 
type boolean.
Warning 6: 'ON#' is an unexpected value for RETURN_LINKAGES open option of type 
boolean.
Warning 6: driver S57 does not support open option RETURN_TXTDSC
Warning 6: driver S57 does not support open option RETURN_INFORM
Warning 6: driver S57 does not support open option RETURN_NINFORM
Warning 6: driver S57 does not support open option RETURN_NOBJNM
Warning 6: driver S57 does not support open option RETURN_OBJNAM
Warning 6: driver S57 does not support open option RETURN_NTXTDS
INFO: Open of `1W7ML310.000'
       using driver `S57' successful.

Layer name: Point
Geometry: Point
Feature Count: 0
Extent: (11.497309, 52.187832) - (11.647561, 52.275467)
Layer SRS WKT:
GEOGCS["WGS 84",
     DATUM["WGS_1984",
         SPHEROID["WGS 84",6378137,298.257223563,
             AUTHORITY["EPSG","7030"]],
         AUTHORITY["EPSG","6326"]],
     PRIMEM["Greenwich",0,
         AUTHORITY["EPSG","8901"]],
     UNIT["degree",0.0174532925199433,
         AUTHORITY["EPSG","9122"]],
     AUTHORITY["EPSG","4326"]]
RCID: Integer (10.0)
PRIM: Integer (3.0)
GRUP: Integer (3.0)
OBJL: Integer (5.0)
RVER: Integer (3.0)
AGEN: Integer (5.0)
FIDN: Integer (10.0)
FIDS: Integer (5.0)
LNAM: String (16.0)
LNAM_REFS: StringList (16.0)
FFPT_RIND: IntegerList (1.0)
NAME_RCNM: IntegerList (3.0)
NAME_RCID: IntegerList (10.0)
ORNT: IntegerList (1.0)
USAG: IntegerList (1.0)
MASK: IntegerList (3.0)

-------
and
------



ogr2ogr --config S57_PROFILE iw -skipfailures -f CSV x.csv 1W7ML310.000 -nlt 
POINT

also does not extract the needed values.

Best Wulf

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to