<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_1469773794998_13613">Hi,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1469773794998_13762">Up for my previous answer.<br></div><div id="yui_3_16_0_ym19_1_1469773794998_13810">I was wrong for lines and area values POSACC, QUAPOS are on edges and not on "real object".</div><div id="yui_3_16_0_ym19_1_1469773794998_13822"><br></div><div>Regards</div><div>Ted<br></div><div id="yui_3_16_0_ym19_1_1469773794998_13578" class="qtdSeparateBR"><br><br></div><div style="display: block;" id="yui_3_16_0_ym19_1_1469773794998_13583" class="yahoo_quoted"> <div id="yui_3_16_0_ym19_1_1469773794998_13582" style="font-family: times new roman, new york, times, serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1469773794998_13581" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1469773794998_13580" dir="ltr"> <font id="yui_3_16_0_ym19_1_1469773794998_13579" face="Arial" size="2"> <hr id="yui_3_16_0_ym19_1_1469773794998_13615" size="1"> <b><span style="font-weight:bold;">De :</span></b> David Ferdoille <david.ferdoille@gmail.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 15h12<br> <b><span style="font-weight: bold;">Objet :</span></b> [gdal-dev] OGR - S57 - geometry extraction issue<br> </font> </div> <div id="yui_3_16_0_ym19_1_1469773794998_13584" class="y_msg_container"><br><div id="yiv0475716928"><div id="yui_3_16_0_ym19_1_1469773794998_13586" dir="ltr"><div id="yui_3_16_0_ym19_1_1469773794998_13585" style="font-size:12.8px;">Hello all,</div><div id="yui_3_16_0_ym19_1_1469773794998_13587" style="font-size:12.8px;"><br></div><div id="yui_3_16_0_ym19_1_1469773794998_13588" style="font-size:12.8px;">We are trying to render S57 files as ENC through Geoserver.</div><div id="yui_3_16_0_ym19_1_1469773794998_13594" style="font-size:12.8px;"><br></div><div id="yui_3_16_0_ym19_1_1469773794998_13589" 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 id="yui_3_16_0_ym19_1_1469773794998_13593" 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 id="yui_3_16_0_ym19_1_1469773794998_13636" style="font-size:12.8px;"><br></div><div id="yui_3_16_0_ym19_1_1469773794998_13635" style="font-size:12.8px;">We use gdal-2.1.0 with the S57_CSV environnement variable (S57_CSV=/usr/local/share/gdal/ with s57*.csv files).</div><div id="yui_3_16_0_ym19_1_1469773794998_13823" style="font-size:12.8px;"><br></div><div id="yui_3_16_0_ym19_1_1469773794998_13634" style="font-size:12.8px;"><br></div><div id="yui_3_16_0_ym19_1_1469773794998_13624" 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 id="yui_3_16_0_ym19_1_1469773794998_13622" 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 id="yui_3_16_0_ym19_1_1469773794998_13626" style="font-size:12.8px;"><br></div><div id="yui_3_16_0_ym19_1_1469773794998_13627" style="font-size:12.8px;"><br></div><div id="yui_3_16_0_ym19_1_1469773794998_13628" style="font-size:12.8px;">We have some problems to extract geometries from s57 objects :</div><div id="yui_3_16_0_ym19_1_1469773794998_13629" style="font-size:12.8px;">- we noticed that, for an object, all sub-geometries are aggregated to one geometry</div><div id="yui_3_16_0_ym19_1_1469773794998_13630" style="font-size:12.8px;">- we didn't succeed to extract geometry attributes like POSACC and QUAPOS</div><div id="yui_3_16_0_ym19_1_1469773794998_13631" style="font-size:12.8px;"><br></div><div id="yui_3_16_0_ym19_1_1469773794998_13632" style="font-size:12.8px;"><br></div><div id="yui_3_16_0_ym19_1_1469773794998_13633" 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>_______________________________________________<br>gdal-dev mailing list<br><a ymailto="mailto:gdal-dev@lists.osgeo.org" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br><br></div> </div> </div> </div></div></body></html>