[gdal-dev] S-57 Driver WRONG Geometry

Bogdan Grama bogdan.grama at soft-union.ro
Thu May 27 10:05:12 EDT 2010


Dear Frank

Please find in the archive (http://www.wgs.ro/gdal/0_w.zip):

-the ENC
-GDAL Interpretation
-correct  Interpretation

The assembled geometry is not according with specifications. Each
referenced edge starts and ends with a ConnectedNode. Not all the
Connected nodes are present in the feature geometry dump.

This is not all. If the file is rendered with Sevencs
(http://www.sevencs.com/service-products/download) and few others
viewers the rendering is correct.
For GDAL, ESRI FME, Caris the geometry is not correct.

Regards,

Bogdan



On 5/27/2010 4:04 PM, Frank Warmerdam wrote:
> Bogdan Grama wrote:
>> Dear all,
>>
>> I'm using GDAL/OGR for reading and rendering ENC files in c#. Recently
>> i've discovered that for some ENC a feature geometry was badly decoded.
>>
>>     ---->LAYER NAME = ROADWY
>>     ---->NAME_RCNM = (10:130,130,130,130,130,130,130,130,130,130)
>>     ---->NAME_RCID = (10:114,103,89,97,99,112,111,108,110,124)
>>     ----> TYPE  : wkbLineString
> ...
>> Now this is correct: 1 feature with 10 distinct linestrings. What do you
>> think? Can this be fix? I can provide sample ENC and screenshots with
>> rendered image.
>
> Bogdan,
>
> From the text dump I am afraid I don't see the problem.  It looks like
> 10 line strings are assembled into one longer linestring.  Without
> observing
> any geometric problems this seems reasonable.   Can you further
> illuminate
> why you think it is wrong?
>
> Best regards,


More information about the gdal-dev mailing list