<html><head></head><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1469685911982_7059">Hi, <br></div><div id="yui_3_16_0_ym19_1_1469685911982_7083"><br></div><div id="yui_3_16_0_ym19_1_1469685911982_7084">I apologize for my english. <br></div><div id="yui_3_16_0_ym19_1_1469685911982_7039" dir="ltr">POSACC and QUAPOS are specfic attributes (only spatial attributes but we can consider as meta object attributes and not as meta object M_SREL, M_QUAL, M_*). <br id="yui_3_16_0_ym19_1_1469685911982_7280">Objects with POSACC and QUAPOS are points, and mainly SOUNDG, WRECKS, UWTROC, OBSTRN in S57 format.<br id="yui_3_16_0_ym19_1_1469685911982_7281">Currently, I'm testing with HPD Caris and when I want to export datas with POSACC and QUAPOS, it don't works. <br></div><div id="yui_3_16_0_ym19_1_1469685911982_7038"><span></span></div><div id="yui_3_16_0_ym19_1_1469685911982_6991" class="qtdSeparateBR"><div id="yui_3_16_0_ym19_1_1469685911982_7296">BEst regards</div><div id="yui_3_16_0_ym19_1_1469685911982_7297">Ted<br></div><br></div><div style="display: block;" id="yui_3_16_0_ym19_1_1469685911982_6918" class="yahoo_quoted"> <div id="yui_3_16_0_ym19_1_1469685911982_6917" style="font-family: times new roman, new york, times, serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1469685911982_6916" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1469685911982_6941" dir="ltr"> <font id="yui_3_16_0_ym19_1_1469685911982_7298" face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">De :</span></b> Even Rouault <even.rouault@spatialys.com><br> <b><span style="font-weight: bold;">À :</span></b> gdal-dev@lists.osgeo.org <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Mercredi 27 juillet 2016 19h04<br> <b><span style="font-weight: bold;">Objet :</span></b> Re: [gdal-dev] OGR - S57 - geometry extraction issue<br> </font> </div> <div id="yui_3_16_0_ym19_1_1469685911982_6915" class="y_msg_container"><br>David,<br clear="none"><br clear="none">As far as I can see from s57objectclasses.csv, POSACC and QUAPOS are not <br clear="none">attributes of the COALNE class, but only from the M_ACCY (Accuracy of data) <br clear="none">and M_QUAL (Quality of data) for POSACC, and M_SREL (Survey reliability) for <br clear="none">QUAPOS.<br clear="none"><br clear="none">You might probably retrieve those attributes by identifying features of COALNE <br clear="none">and M_ACCY/M_QUAL/M_SREL that share the same geometry primitives with the <br clear="none">NAME_RCNM and NAME_RCID attributes added with RETURN_LINKAGES=ON. Or perhaps <br clear="none">an easier way would be by layer algebra computation to find which features of <br clear="none">COALNE are inside features of M_ACCY/M_QUAL/M_SREL. Probably with the Identify <br clear="none">method.<br clear="none"><br clear="none">See <br clear="none"><a shape="rect" href="http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.html#__RefHeading__6015_1333016408" target="_blank">http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.html#__RefHeading__6015_1333016408</a><br clear="none"><br clear="none">By the way, when testing, I identified a regression in 2.1.1 where the open <br clear="none">options of the S57 driver were ignored, that I just fixed per : <br clear="none"><a shape="rect" href="https://trac.osgeo.org/gdal/ticket/6609" target="_blank">https://trac.osgeo.org/gdal/ticket/6609</a><br clear="none"><br clear="none">Even<br clear="none"><br clear="none">> Hello all,<br clear="none">> <br clear="none">> We are trying to render S57 files as ENC through Geoserver.<br clear="none">> <br clear="none">> We convert S57 to shapefiles thanks to ogr2ogr : 1 shapefile for 1 class<br clear="none">> (ex : COALNE) and 1 geometry type (LINE) :<br clear="none">> ogrinfo -oo "RETURN_PRIMITIVES=ON" -oo "RETURN_LINKAGES=ON" -oo<br clear="none">> "LNAM_REFS=ON" CELLLL.000 COALNE<br clear="none">> ogr2ogr -skipfailures -where "OGR_GEOMETRY='POINT' or<br clear="none">> OGR_GEOMETRY='MULTIPOINT'" SOUNDG_points.shp CELLLL.000 SOUNDG<br clear="none">> <br clear="none">> We use gdal-2.1.0 with the S57_CSV environnement variable<br clear="none">> (S57_CSV=/usr/local/share/gdal/ with s57*.csv files).<br clear="none">> <br clear="none">> <br clear="none">> We noticed that objects (of COALNE class for example) have multiple<br clear="none">> geometries and each sub-geometry have attributes like POSACC and QUAPOS<br clear="none">> which are important for S52 representation.<br clear="none">> We've succeeded to extract primitives (Edge, isolated points, connected<br clear="none">> points, ...), but it looks very complex to operate.<br clear="none">> <br clear="none">> <br clear="none">> We have some problems to extract geometries from s57 objects :<br clear="none">> - we noticed that, for an object, all sub-geometries are aggregated to one<br clear="none">> geometry<br clear="none">> - we didn't succeed to extract geometry attributes like POSACC and QUAPOS<br clear="none">> <br clear="none">> <br clear="none">> 1) Is there a way to not aggregate sub-geometries of an object and get this<br clear="none">> list of sub-geometries ?<br clear="none">> 2) Is there a way to extract geometry attributes like POSACC and QUAPOS ?<br clear="none">> 3) If not, are these features planned ?<br clear="none">> <br clear="none">> <br clear="none">> Thanks for your help !<br clear="none">> <br clear="none">> <br clear="none">> David<br clear="none"><br clear="none">-- <br clear="none">Spatialys - Geospatial professional services<br clear="none"><a shape="rect" href="http://www.spatialys.com/" target="_blank">http://www.spatialys.com</a><div class="yqt7499944126" id="yqtfd81497"><br clear="none">_______________________________________________<br clear="none">gdal-dev mailing list<br clear="none"><a shape="rect" ymailto="mailto:gdal-dev@lists.osgeo.org" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br clear="none"><a shape="rect" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div><br><br></div> </div> </div> </div></div></body></html>