[gdal-dev] DGN File with 10 layers recognized in OGR only 1 layer + DGN to SVG converter
Miro Karpis
miroslav.karpis at gmail.com
Fri Nov 2 01:51:24 PDT 2012
found it: OGRFieldDefn::GetNameRef
excellent ;-)
On Fri, Nov 2, 2012 at 9:33 AM, Miro Karpis <miroslav.karpis at gmail.com>wrote:
> Thanks for the info Frank.So if I understand it correctly than class
> OGRFeature should have one method that should give me value of attribute
> called 'LAYER' (or similar). Please what is the method called - I can not
> see it in the documentation?
>
> thanks again.
>
>
>
> On Thu, Nov 1, 2012 at 11:18 PM, Frank Warmerdam <warmerdam at pobox.com>wrote:
>
>>
>>
>> On Thu, Nov 1, 2012 at 3:11 PM, Miroslav Karpis <
>> miroslav.karpis at gmail.com> wrote:
>>
>>> Hi, please can you help me with following:
>>>
>>> 1) When I open DGN file which has for example 10 layers,
>>> OGRDataSource::GetLayerCont () returns 1. What can be the problem? The
>>> documentation says that OGR DGN is supporting layers.
>>>
>>
>> Miroslav,
>>
>> DGN layers are represented as an attribute in the features of the single
>> OGR layer. I think the attribute is called LAYER.
>>
>> Because of the way the dgn file is structured it would be hard to
>> represent the DGN layers as OGR layers efficiently. Also, since all
>> features have the same schema there was relatively little value in keeping
>> them as distinct layers.
>>
>>
>>> 2) Does anybody know about an example of conversion from DGN to SVG?
>>>
>>
>> I think MapServer has some sort of SVG support and given that MapServer
>> has at least some degree of "autostyling" available from OGR DGN it might
>> capture some of the look and feel of the original DGN.
>>
>> I doubt this is a well trod route.
>>
>> Best regards,
>> --
>>
>> ---------------------------------------+--------------------------------------
>> I set the clouds in motion - turn up | Frank Warmerdam,
>> warmerdam at pobox.com
>> light and sound - activate the windows | http://pobox.com/~warmerdam
>> and watch the world go round - Rush | Geospatial Software Developer
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121102/1c48da46/attachment.html>
More information about the gdal-dev
mailing list