<div dir="ltr"><p class="MsoNormal">Hello,</p><p class="MsoNormal"><br></p><p class="MsoNormal">Thanks for the responses,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span lang="EN-US">After a
long afternoon of tests :</span></p>

<p class="MsoNormal"><span lang="EN-US">I try to
access a WRECKS object, compose by an only point, with a QUAPOS specific value
of 5, and an POSACC of 500.0 (find it using CARIS Easy View)</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">1-</span></p>

<p class="MsoNormal"><span lang="EN-US">In ogrinfo
-oo "RETURN_PRIMITIVES=ON" -oo "RETURN_LINKAGES=ON" -oo
"LNAM_REFS=ON" file.000 WRECKS, I found the object, but no QUAPOS or
POSACC (logical because the 2 attributes are not directly linked to the object,
but to the geometry).</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">2-</span></p>

<p class="MsoNormal"><span lang="EN-US">In ogrinfo
-oo "RETURN_PRIMITIVES=ON" -oo "RETURN_LINKAGES=ON" -oo
"LNAM_REFS=ON" file.000 IsolatedNode, I found the node representing
the object but also no QUAPOS or POSACC.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">3-</span></p>

<p class="MsoNormal"><span lang="EN-US">In ogrinfo
-oo "RETURN_PRIMITIVES=ON" -oo "RETURN_LINKAGES=ON" -oo
"LNAM_REFS=ON" file.000 M_QUAL, I found an only object, spatially
containing my wreck object, but POSACC is null.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">4- </span></p>

<p class="MsoNormal"><span lang="EN-US">In ogrinfo
-oo "RETURN_PRIMITIVES=ON" -oo "RETURN_LINKAGES=ON" -oo "LNAM_REFS=ON"
file.000 M_QUAL, I found 20 objects, but QUAPOS is null for all of them.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">5-</span></p>

<p class="MsoNormal"><span lang="EN-US">No M_ACCY
table is present in my dataset.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">According
to me, the good way to get these attributes, is the second one (2-), but even
if I try a lot of things, I didn’t manage to :</span></p>

<p class="" style="margin-left:20.25pt"><span lang="EN-US">-<span style="font-stretch:normal;font-size:7pt;font-family:"Times New Roman"">         
</span></span><span lang="EN-US">Trying
all the S57 option with –oo</span></p>

<p class="" style="margin-left:20.25pt"><span lang="EN-US">-<span style="font-stretch:normal;font-size:7pt;font-family:"Times New Roman"">         
</span></span><span lang="EN-US">Trying
to change the CSV types and attributes catalog used by GDAL</span></p>

<p class="" style="margin-left:20.25pt"><span lang="EN-US">-<span style="font-stretch:normal;font-size:7pt;font-family:"Times New Roman"">         
</span></span><span lang="EN-US">Etc…</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Does
someone know if it is possible to get these attribute through GDAL/OGR ?</span></p>

<p class="MsoNormal"><span lang="EN-US">If not, is
there another way to get this attributes (python GDAL scripts ? another command
line software ?)</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Thanks
again for your help !</span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p><p class="MsoNormal"><span lang="EN-US">Regards</span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p><p class="MsoNormal"><span lang="EN-US">David</span></p><div class="gmail_extra"><br><div class="gmail_quote">2016-07-29 11:31 GMT+02:00 teddy guerin <span dir="ltr"><<a href="mailto:teddyguerin@yahoo.fr" target="_blank">teddyguerin@yahoo.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:16px"><div>Hi,</div><div dir="ltr">Up for my previous answer.<br></div><div>I was wrong for lines and area values POSACC, QUAPOS are on edges and not on "real object".</div><div><br></div><div>Regards</div><div>Ted<br></div><div><br><br></div><div style="display:block">  <div style="font-family:times new roman,new york,times,serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold">De :</span></b> David Ferdoille <<a href="mailto:david.ferdoille@gmail.com" target="_blank">david.ferdoille@gmail.com</a>><br> <b><span style="font-weight:bold">À :</span></b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a> <br> <b><span style="font-weight:bold">Envoyé le :</span></b> Mercredi 27 juillet 2016 15h12<br> <b><span style="font-weight:bold">Objet :</span></b> [gdal-dev] OGR - S57 - geometry extraction issue<br> </font> </div> <div><div><div class="h5"><br><div><div dir="ltr"><div style="font-size:12.8px">Hello all,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">We are trying to render S57 files as ENC through Geoserver.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">We convert S57 to shapefiles thanks to ogr2ogr : 1 shapefile for 1 class (ex : COALNE) and 1 geometry type (LINE) :  </div><div style="font-size:12.8px">ogrinfo -oo "RETURN_PRIMITIVES=ON" -oo "RETURN_LINKAGES=ON" -oo "LNAM_REFS=ON" CELLLL.000 COALNE </div><div style="font-size:12.8px">ogr2ogr -skipfailures  -where "OGR_GEOMETRY='POINT' or OGR_GEOMETRY='MULTIPOINT'" SOUNDG_points.shp CELLLL.000 SOUNDG </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">We use gdal-2.1.0 with the S57_CSV environnement variable (S57_CSV=/usr/local/share/<wbr>gdal/ with s57*.csv files).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">We noticed that objects (of COALNE class for example) have multiple geometries and each sub-geometry have attributes like POSACC and QUAPOS which are important for S52 representation. </div><div style="font-size:12.8px">We've succeeded to extract primitives (Edge, isolated points, connected points, ...), but it looks very complex to operate.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">We have some problems to extract geometries from s57 objects :</div><div style="font-size:12.8px">- we noticed that, for an object, all sub-geometries are aggregated to one geometry</div><div style="font-size:12.8px">- we didn't succeed to extract geometry attributes like POSACC and QUAPOS</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">1) Is there a way to not aggregate sub-geometries of an object and get this list of sub-geometries ?</div><div style="font-size:12.8px">2) Is there a way to extract geometry attributes like POSACC and QUAPOS ?</div><div style="font-size:12.8px">3) If not, are these features planned ?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks for your help !</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">David</div>
</div></div><br></div></div><span class="">______________________________<wbr>_________________<br>gdal-dev mailing list<br><a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a><br><br></span></div> </div> </div>  </div></div></div></blockquote></div><br><br>
</div></div>