Randy wrote: > Hi, everyone, > > I’m now interesting in displaying ENCs. > > I know the OGR can support the s57 format files and it can get some > data like point、line、polygon. But it cannot support the styles as Mr > Frank Warmerdam told me. Now, I have such questions: > > 1. Where can I know what OGR does support and does not support > about s57 ? Does it get the symbols(no, right?)?
Randy, OGR does not read the actual graphical symbols. For instance, we might have a feature from the WRECKS layer like below with various valuable attributes, but actual wreck symbol. OGRFeature(WRECKS):2163 RCID (Integer) = 2164 PRIM (Integer) = 1 GRUP (Integer) = 2 OBJL (Integer) = 159 RVER (Integer) = 1 AGEN (Integer) = 540 FIDN (Integer) = 2135161787 FIDS (Integer) = 688 LNAM (String) = 021C7F43FBBB02B0 NAME_RCNM (IntegerList) = (1:110) NAME_RCID (IntegerList) = (1:517) ORNT (IntegerList) = (1:255) USAG (IntegerList) = (1:255) MASK (IntegerList) = (1:255) CATWRK (Integer) = 1 QUASOU (String) = 2 WATLEV (Integer) = 3 POINT (61.1031909 -32.4450159) > 2. If I have got the color and symbols, How could I know which > kind of color the line(or polygon or something else which I get with the > help of OGR) should match with? You would normally read the S52 specification and use it to determine appropriate coloring, styling and symbolization from the attributes of a feature. I haven't actually reviewed the S52 specification, but I imagine it has rules for how to draw wrecks that might indicate different symbols depending on the CATWRK (Category of Wreck) and WATLEV (Water level effect) attributes of the feature. > 3. Has anyone done such things, can you help me something? I know lots of people have made various levels of effort in following the S52 specification based on OGR as a feature reader. Perhaps some of them will speak up and volunteer additional information. > 4. I know the file “IHO ECDIS Presentation Library” can help me > but I don’t know how to get it, can you? Normally the IHO web site should have instructions on ordering. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, [email protected] light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
