Opened 21 years ago

Last modified 21 years ago

#238 closed defect (wontfix)

Null MSLink values in ogrinfo

Reported by: jesus.orozco@… Owned by: warmerdam
Priority: highest Milestone:
Component: default Version: unspecified
Severity: critical Keywords:
Cc:

Description

I found some inconsistences between ogrinfo and dgndump working with DGN files.
In one case, ogrinfo fails to read the MSLink field values (it says null). And
dgndump can get the value just fine.

If you need sample dataset, drop me a line.

Regards

Change History (6)

comment:1 by warmerdam, 21 years ago

Jesus,

Please attach a file demonstrating this result, and the dgndump and ogrinfo
output for a features showing the problem. 

Thanks,

comment:2 by jesus.orozco@…, 21 years ago

I'm posting a couple of reports.

  1) dgndump -s

  2) ogrinfo (the first 199 lines)

And sample dataset can be found in www.gmaps.es/dl/dgn

Kind Regards/Saludos
Jesús

=========================================================
begin: dgndump
=========================================================
X Range: 0.00 to 0.00
Y Range: 0.00 to 0.00
Z Range: 0.00 to 0.00
Total Elements: 260151

Per Type Report
===============
Type Cell Header: 130072
Type Group Data: 1
Type Digitizer Setup: 1
Type TCB: 1
Type Level Symbology: 1
Type Ellipse: 130072
Type Application Element: 3

Per Level Report
================
Level 0, 130074 elements:
  Type Cell Header: 130072
  Type Digitizer Setup: 1
  Type Level Symbology: 1

Level 1, 1 elements:
  Type Group Data: 1

Level 7, 1 elements:
  Type Application Element: 1

Level 8, 1 elements:
  Type TCB: 1

Level 9, 1 elements:
  Type Application Element: 1

Level 23, 1 elements:
  Type Application Element: 1

Level 28, 130072 elements:
  Type Ellipse: 130072

=========================================================
end: dgndump
=========================================================

=========================================================
begin: ogrinfo
=========================================================
INFO: Open of `clabsano.dgn'
using driver `DGN' successful.

Layer name: elements
Geometry: Unknown (any)
Feature Count: 0
Layer SRS WKT:
(unknown)
Type: Integer (2.0)
Level: Integer (2.0)
GraphicGroup: Integer (4.0)
ColorIndex: Integer (3.0)
Weight: Integer (2.0)
Style: Integer (1.0)
EntityNum: Integer (8.0)
MSLink: Integer (10.0)
Text: String (0.0)
OGRFeature(elements):7
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.780 89837.730,32652.778 89837.773,32652.772
89837.817,32652.763 89837.859,32652.750 89837.901,32652.733 89837.941,32652.713
89837.980,32652.689 89838.016,32652.663 89838.051,32652.633 89838.083,32652.601
89838.113,32652.567 89838.139,32652.530 89838.163,32652.491 89838.183,32652.451
89838.200,32652.409 89838.213,32652.367 89838.222,32652.323 89838.228,32652.280
89838.230,32652.236 89838.228,32652.193 89838.222,32652.150 89838.213,32652.109
89838.200,32652.069 89838.183,32652.030 89838.163,32651.993 89838.139,32651.959
89838.113,32651.926 89838.083,32651.897 89838.051,32651.870 89838.016,32651.847
89837.980,32651.827 89837.941,32651.810 89837.901,32651.797 89837.859,32651.788
89837.817,32651.782 89837.773,32651.780 89837.730,32651.782 89837.686,32651.788
89837.643,32651.797 89837.600,32651.810 89837.559,32651.827 89837.518,32651.847
89837.480,32651.870 89837.443,32651.897 89837.408,32651.926 89837.376,32651.959
89837.347,32651.993 89837.320,32652.030 89837.297,32652.069 89837.277,32652.109
89837.260,32652.150 89837.247,32652.193 89837.237,32652.236 89837.232,32652.280
89837.230,32652.323 89837.232,32652.367 89837.237,32652.409 89837.247,32652.451
89837.260,32652.491 89837.277,32652.530 89837.297,32652.567 89837.320,32652.601
89837.347,32652.633 89837.376,32652.663 89837.408,32652.689 89837.443,32652.713
89837.480,32652.733 89837.518,32652.750 89837.559,32652.763 89837.600,32652.772
89837.643,32652.778 89837.686,32652.780 89837.730)

OGRFeature(elements):9
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.440 87358.200,32652.438 87358.243,32652.432
87358.287,32652.423 87358.329,32652.410 87358.371,32652.393 87358.411,32652.373
87358.450,32652.349 87358.486,32652.323 87358.521,32652.293 87358.553,32652.261
87358.583,32652.227 87358.609,32652.190 87358.633,32652.151 87358.653,32652.111
87358.670,32652.069 87358.683,32652.027 87358.692,32651.983 87358.698,32651.940
87358.700,32651.896 87358.698,32651.853 87358.692,32651.810 87358.683,32651.769
87358.670,32651.729 87358.653,32651.690 87358.633,32651.653 87358.609,32651.619
87358.583,32651.586 87358.553,32651.557 87358.521,32651.530 87358.486,32651.507
87358.450,32651.487 87358.411,32651.470 87358.371,32651.457 87358.329,32651.448
87358.287,32651.442 87358.243,32651.440 87358.200,32651.442 87358.156,32651.448
87358.113,32651.457 87358.070,32651.470 87358.029,32651.487 87357.988,32651.507
87357.950,32651.530 87357.913,32651.557 87357.878,32651.586 87357.846,32651.619
87357.817,32651.653 87357.790,32651.690 87357.767,32651.729 87357.747,32651.769
87357.730,32651.810 87357.717,32651.853 87357.707,32651.896 87357.702,32651.940
87357.700,32651.983 87357.702,32652.027 87357.707,32652.069 87357.717,32652.111
87357.730,32652.151 87357.747,32652.190 87357.767,32652.227 87357.790,32652.261
87357.817,32652.293 87357.846,32652.323 87357.878,32652.349 87357.913,32652.373
87357.950,32652.393 87357.988,32652.410 87358.029,32652.423 87358.070,32652.432
87358.113,32652.438 87358.156,32652.440 87358.200)

OGRFeature(elements):11
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32753.000 87228.940,32752.998 87228.983,32752.992
87229.027,32752.983 87229.069,32752.970 87229.111,32752.953 87229.151,32752.933
87229.190,32752.909 87229.226,32752.883 87229.261,32752.853 87229.293,32752.821
87229.323,32752.787 87229.349,32752.750 87229.373,32752.711 87229.393,32752.671
87229.410,32752.629 87229.423,32752.587 87229.432,32752.543 87229.438,32752.500
87229.440,32752.456 87229.438,32752.413 87229.432,32752.370 87229.423,32752.329
87229.410,32752.289 87229.393,32752.250 87229.373,32752.213 87229.349,32752.179
87229.323,32752.146 87229.293,32752.117 87229.261,32752.090 87229.226,32752.067
87229.190,32752.047 87229.151,32752.030 87229.111,32752.017 87229.069,32752.008
87229.027,32752.002 87228.983,32752.000 87228.940,32752.002 87228.896,32752.008
87228.853,32752.017 87228.810,32752.030 87228.769,32752.047 87228.728,32752.067
87228.690,32752.090 87228.653,32752.117 87228.618,32752.146 87228.586,32752.179
87228.557,32752.213 87228.530,32752.250 87228.507,32752.289 87228.487,32752.329
87228.470,32752.370 87228.457,32752.413 87228.447,32752.456 87228.442,32752.500
87228.440,32752.543 87228.442,32752.587 87228.447,32752.629 87228.457,32752.671
87228.470,32752.711 87228.487,32752.750 87228.507,32752.787 87228.530,32752.821
87228.557,32752.853 87228.586,32752.883 87228.618,32752.909 87228.653,32752.933
87228.690,32752.953 87228.728,32752.970 87228.769,32752.983 87228.810,32752.992
87228.853,32752.998 87228.896,32753.000 87228.940)

OGRFeature(elements):13
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32691.870 87228.430,32691.868 87228.473,32691.862
87228.517,32691.853 87228.559,32691.840 87228.601,32691.823 87228.641,32691.803
87228.680,32691.779 87228.716,32691.753 87228.751,32691.723 87228.783,32691.691
87228.813,32691.657 87228.839,32691.620 87228.863,32691.581 87228.883,32691.541
87228.900,32691.499 87228.913,32691.457 87228.922,32691.413 87228.928,32691.370
87228.930,32691.326 87228.928,32691.283 87228.922,32691.240 87228.913,32691.199
87228.900,32691.159 87228.883,32691.120 87228.863,32691.083 87228.839,32691.049
87228.813,32691.016 87228.783,32690.987 87228.751,32690.960 87228.716,32690.937
87228.680,32690.917 87228.641,32690.900 87228.601,32690.887 87228.559,32690.878
87228.517,32690.872 87228.473,32690.870 87228.430,32690.872 87228.386,32690.878
87228.343,32690.887 87228.300,32690.900 87228.259,32690.917 87228.218,32690.937
87228.180,32690.960 87228.143,32690.987 87228.108,32691.016 87228.076,32691.049
87228.047,32691.083 87228.020,32691.120 87227.997,32691.159 87227.977,32691.199
87227.960,32691.240 87227.947,32691.283 87227.937,32691.326 87227.932,32691.370
87227.930,32691.413 87227.932,32691.457 87227.937,32691.499 87227.947,32691.541
87227.960,32691.581 87227.977,32691.620 87227.997,32691.657 87228.020,32691.691
87228.047,32691.723 87228.076,32691.753 87228.108,32691.779 87228.143,32691.803
87228.180,32691.823 87228.218,32691.840 87228.259,32691.853 87228.300,32691.862
87228.343,32691.868 87228.386,32691.870 87228.430)

OGRFeature(elements):15
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32741.960 87228.390,32741.958 87228.433,32741.952
87228.477,32741.943 87228.519,32741.930 87228.561,32741.913 87228.601,32741.893
87228.640,32741.869 87228.676,32741.843 87228.711,32741.813 87228.743,32741.781
87228.773,32741.747 87228.799,32741.710 87228.823,32741.671 87228.843,32741.631
87228.860,32741.589 87228.873,32741.547 87228.882,32741.503 87228.888,32741.460
87228.890,32741.416 87228.888,32741.373 87228.882,32741.330 87228.873,32741.289
87228.860,32741.249 87228.843,32741.210 87228.823,32741.173 87228.799,32741.139
87228.773,32741.106 87228.743,32741.077 87228.711,32741.050 87228.676,32741.027
87228.640,32741.007 87228.601,32740.990 87228.561,32740.977 87228.519,32740.968
87228.477,32740.962 87228.433,32740.960 87228.390,32740.962 87228.346,32740.968
87228.303,32740.977 87228.260,32740.990 87228.219,32741.007 87228.178,32741.027
87228.140,32741.050 87228.103,32741.077 87228.068,32741.106 87228.036,32741.139
87228.007,32741.173 87227.980,32741.210 87227.957,32741.249 87227.937,32741.289
87227.920,32741.330 87227.907,32741.373 87227.897,32741.416 87227.892,32741.460
87227.890,32741.503 87227.892,32741.547 87227.897,32741.589 87227.907,32741.631
87227.920,32741.671 87227.937,32741.710 87227.957,32741.747 87227.980,32741.781
87228.007,32741.813 87228.036,32741.843 87228.068,32741.869 87228.103,32741.893
87228.140,32741.913 87228.178,32741.930 87228.219,32741.943 87228.260,32741.952
87228.303,32741.958 87228.346,32741.960 87228.390)

OGRFeature(elements):17
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.910 85169.120,32652.908 85169.163,32652.902
85169.207,32652.893 85169.249,32652.880 85169.291,32652.863 85169.331,32652.843
85169.370,32652.819 85169.406,32652.793 85169.441,32652.763 85169.473,32652.731
85169.503,32652.697 85169.529,32652.660 85169.553,32652.621 85169.573,32652.581
85169.590,32652.539 85169.603,32652.497 85169.612,32652.453 85169.618,32652.410
85169.620,32652.366 85169.618,32652.323 85169.612,32652.280 85169.603,32652.239
85169.590,32652.199 85169.573,32652.160 85169.553,32652.123 85169.529,32652.089
85169.503,32652.056 85169.473,32652.027 85169.441,32652.000 85169.406,32651.977
85169.370,32651.957 85169.331,32651.940 85169.291,32651.927 85169.249,32651.918
85169.207,32651.912 85169.163,32651.910 85169.120,32651.912 85169.076,32651.918
85169.033,32651.927 85168.990,32651.940 85168.949,32651.957 85168.908,32651.977
85168.870,32652.000 85168.833,32652.027 85168.798,32652.056 85168.766,32652.089
85168.737,32652.123 85168.710,32652.160 85168.687,32652.199 85168.667,32652.239
85168.650,32652.280 85168.637,32652.323 85168.627,32652.366 85168.622,32652.410
85168.620,32652.453 85168.622,32652.497 85168.627,32652.539 85168.637,32652.581
85168.650,32652.621 85168.667,32652.660 85168.687,32652.697 85168.710,32652.731
85168.737,32652.763 85168.766,32652.793 85168.798,32652.819 85168.833,32652.843
85168.870,32652.863 85168.908,32652.880 85168.949,32652.893 85168.990,32652.902
85169.033,32652.908 85169.076,32652.910 85169.120)

OGRFeature(elements):19
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.520 84596.750,32652.518 84596.793,32652.512
84596.837,32652.503 84596.879,32652.490 84596.921,32652.473 84596.961,32652.453
84597.000,32652.429 84597.036,32652.403 84597.071,32652.373 84597.103,32652.341
84597.133,32652.307 84597.159,32652.270 84597.183,32652.231 84597.203,32652.191
84597.220,32652.149 84597.233,32652.107 84597.242,32652.063 84597.248,32652.020
84597.250,32651.976 84597.248,32651.933 84597.242,32651.890 84597.233,32651.849
84597.220,32651.809 84597.203,32651.770 84597.183,32651.733 84597.159,32651.699
84597.133,32651.666 84597.103,32651.637 84597.071,32651.610 84597.036,32651.587
84597.000,32651.567 84596.961,32651.550 84596.921,32651.537 84596.879,32651.528
84596.837,32651.522 84596.793,32651.520 84596.750,32651.522 84596.706,32651.528
84596.663,32651.537 84596.620,32651.550 84596.579,32651.567 84596.538,32651.587
84596.500,32651.610 84596.463,32651.637 84596.428,32651.666 84596.396,32651.699
84596.367,32651.733 84596.340,32651.770 84596.317,32651.809 84596.297,32651.849
84596.280,32651.890 84596.267,32651.933 84596.257,32651.976 84596.252,32652.020
84596.250,32652.063 84596.252,32652.107 84596.257,32652.149 84596.267,32652.191
84596.280,32652.231 84596.297,32652.270 84596.317,32652.307 84596.340,32652.341
84596.367,32652.373 84596.396,32652.403 84596.428,32652.429 84596.463,32652.453
84596.500,32652.473 84596.538,32652.490 84596.579,32652.503 84596.620,32652.512
84596.663,32652.518 84596.706,32652.520 84596.750)

OGRFeature(elements):21
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.600 84604.730,32652.598 84604.773,32652.592
84604.817,32652.583 84604.859,32652.570 84604.901,32652.553 84604.941,32652.533
84604.980,32652.509 84605.016,32652.483 84605.051,32652.453 84605.083,32652.421
84605.113,32652.387 84605.139,32652.350 84605.163,32652.311 84605.183,32652.271
84605.200,32652.229 84605.213,32652.187 84605.222,32652.143 84605.228,32652.100
84605.230,32652.056 84605.228,32652.013 84605.222,32651.970 84605.213,32651.929
84605.200,32651.889 84605.183,32651.850 84605.163,32651.813 84605.139,32651.779
84605.113,32651.746 84605.083,32651.717 84605.051,32651.690 84605.016,32651.667
84604.980,32651.647 84604.941,32651.630 84604.901,32651.617 84604.859,32651.608
84604.817,32651.602 84604.773,32651.600 84604.730,32651.602 84604.686,32651.608
84604.643,32651.617 84604.600,32651.630 84604.559,32651.647 84604.518,32651.667
84604.480,32651.690 84604.443,32651.717 84604.408,32651.746 84604.376,32651.779
84604.347,32651.813 84604.320,32651.850 84604.297,32651.889 84604.277,32651.929
84604.260,32651.970 84604.247,32652.013 84604.237,32652.056 84604.232,32652.100
84604.230,32652.143 84604.232,32652.187 84604.237,32652.229 84604.247,32652.271
84604.260,32652.311 84604.277,32652.350 84604.297,32652.387 84604.320,32652.421
84604.347,32652.453 84604.376,32652.483 84604.408,32652.509 84604.443,32652.533
84604.480,32652.553 84604.518,32652.570 84604.559,32652.583 84604.600,32652.592
84604.643,32652.598 84604.686,32652.600 84604.730)

OGRFeature(elements):23
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.210 84365.200,32652.208 84365.243,32652.202
84365.287,32652.193 84365.329,32652.180 84365.371,32652.163 84365.411,32652.143
84365.450,32652.119 84365.486,32652.093 84365.521,32652.063 84365.553,32652.031
84365.583,32651.997 84365.609,32651.960 84365.633,32651.921 84365.653,32651.881
84365.670,32651.839 84365.683,32651.797 84365.692,32651.753 84365.698,32651.710
84365.700,32651.666 84365.698,32651.623 84365.692,32651.580 84365.683,32651.539
84365.670,32651.499 84365.653,32651.460 84365.633,32651.423 84365.609,32651.389
84365.583,32651.356 84365.553,32651.327 84365.521,32651.300 84365.486,32651.277
84365.450,32651.257 84365.411,32651.240 84365.371,32651.227 84365.329,32651.218
84365.287,32651.212 84365.243,32651.210 84365.200,32651.212 84365.156,32651.218
84365.113,32651.227 84365.070,32651.240 84365.029,32651.257 84364.988,32651.277
84364.950,32651.300 84364.913,32651.327 84364.878,32651.356 84364.846,32651.389
84364.817,32651.423 84364.790,32651.460 84364.767,32651.499 84364.747,32651.539
84364.730,32651.580 84364.717,32651.623 84364.707,32651.666 84364.702,32651.710
84364.700,32651.753 84364.702,32651.797 84364.707,32651.839 84364.717,32651.881
84364.730,32651.921 84364.747,32651.960 84364.767,32651.997 84364.790,32652.031
84364.817,32652.063 84364.846,32652.093 84364.878,32652.119 84364.913,32652.143
84364.950,32652.163 84364.988,32652.180 84365.029,32652.193 84365.070,32652.202
84365.113,32652.208 84365.156,32652.210 84365.200)

OGRFeature(elements):25
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.340 84101.600,32652.338 84101.643,32652.332
84101.687,32652.323 84101.729,32652.310 84101.771,32652.293 84101.811,32652.273
84101.850,32652.249 84101.886,32652.223 84101.921,32652.193 84101.953,32652.161
84101.983,32652.127 84102.009,32652.090 84102.033,32652.051 84102.053,32652.011
84102.070,32651.969 84102.083,32651.927 84102.092,32651.883 84102.098,32651.840
84102.100,32651.796 84102.098,32651.753 84102.092,32651.710 84102.083,32651.669
84102.070,32651.629 84102.053,32651.590 84102.033,32651.553 84102.009,32651.519
84101.983,32651.486 84101.953,32651.457 84101.921,32651.430 84101.886,32651.407
84101.850,32651.387 84101.811,32651.370 84101.771,32651.357 84101.729,32651.348
84101.687,32651.342 84101.643,32651.340 84101.600,32651.342 84101.556,32651.348
84101.513,32651.357 84101.470,32651.370 84101.429,32651.387 84101.388,32651.407
84101.350,32651.430 84101.313,32651.457 84101.278,32651.486 84101.246,32651.519
84101.217,32651.553 84101.190,32651.590 84101.167,32651.629 84101.147,32651.669
84101.130,32651.710 84101.117,32651.753 84101.107,32651.796 84101.102,32651.840
84101.100,32651.883 84101.102,32651.927 84101.107,32651.969 84101.117,32652.011
84101.130,32652.051 84101.147,32652.090 84101.167,32652.127 84101.190,32652.161
84101.217,32652.193 84101.246,32652.223 84101.278,32652.249 84101.313,32652.273
84101.350,32652.293 84101.388,32652.310 84101.429,32652.323 84101.470,32652.332
84101.513,32652.338 84101.556,32652.340 84101.600)

OGRFeature(elements):27
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.120 83437.680,32652.118 83437.723,32652.112
83437.767,32652.103 83437.809,32652.090 83437.851,32652.073 83437.891,32652.053
83437.930,32652.029 83437.966,32652.003 83438.001,32651.973 83438.033,32651.941
83438.063,32651.907 83438.089,32651.870 83438.113,32651.831 83438.133,32651.791
83438.150,32651.749 83438.163,32651.707 83438.172,32651.663 83438.178,32651.620
83438.180,32651.576 83438.178,32651.533 83438.172,32651.490 83438.163,32651.449
83438.150,32651.409 83438.133,32651.370 83438.113,32651.333 83438.089,32651.299
83438.063,32651.266 83438.033,32651.237 83438.001,32651.210 83437.966,32651.187
83437.930,32651.167 83437.891,32651.150 83437.851,32651.137 83437.809,32651.128
83437.767,32651.122 83437.723,32651.120 83437.680,32651.122 83437.636,32651.128
83437.593,32651.137 83437.550,32651.150 83437.509,32651.167 83437.468,32651.187
83437.430,32651.210 83437.393,32651.237 83437.358,32651.266 83437.326,32651.299
83437.297,32651.333 83437.270,32651.370 83437.247,32651.409 83437.227,32651.449
83437.210,32651.490 83437.197,32651.533 83437.187,32651.576 83437.182,32651.620
83437.180,32651.663 83437.182,32651.707 83437.187,32651.749 83437.197,32651.791
83437.210,32651.831 83437.227,32651.870 83437.247,32651.907 83437.270,32651.941
83437.297,32651.973 83437.326,32652.003 83437.358,32652.029 83437.393,32652.053
83437.430,32652.073 83437.468,32652.090 83437.509,32652.103 83437.550,32652.112
83437.593,32652.118 83437.636,32652.120 83437.680)

OGRFeature(elements):29
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.480 83156.610,32652.478 83156.653,32652.472
83156.697,32652.463 83156.739,32652.450 83156.781,32652.433 83156.821,32652.413
83156.860,32652.389 83156.896,32652.363 83156.931,32652.333 83156.963,32652.301
83156.993,32652.267 83157.019,32652.230 83157.043,32652.191 83157.063,32652.151
83157.080,32652.109 83157.093,32652.067 83157.102,32652.023 83157.108,32651.980
83157.110,32651.936 83157.108,32651.893 83157.102,32651.850 83157.093,32651.809
83157.080,32651.769 83157.063,32651.730 83157.043,32651.693 83157.019,32651.659
83156.993,32651.626 83156.963,32651.597 83156.931,32651.570 83156.896,32651.547
83156.860,32651.527 83156.821,32651.510 83156.781,32651.497 83156.739,32651.488
83156.697,32651.482 83156.653,32651.480 83156.610,32651.482 83156.566,32651.488
83156.523,32651.497 83156.480,32651.510 83156.439,32651.527 83156.398,32651.547
83156.360,32651.570 83156.323,32651.597 83156.288,32651.626 83156.256,32651.659
83156.227,32651.693 83156.200,32651.730 83156.177,32651.769 83156.157,32651.809
83156.140,32651.850 83156.127,32651.893 83156.117,32651.936 83156.112,32651.980
83156.110,32652.023 83156.112,32652.067 83156.117,32652.109 83156.127,32652.151
83156.140,32652.191 83156.157,32652.230 83156.177,32652.267 83156.200,32652.301
83156.227,32652.333 83156.256,32652.363 83156.288,32652.389 83156.323,32652.413
83156.360,32652.433 83156.398,32652.450 83156.439,32652.463 83156.480,32652.472
83156.523,32652.478 83156.566,32652.480 83156.610)

OGRFeature(elements):31
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (33246.680 83039.700,33246.678 83039.743,33246.672
83039.787,33246.663 83039.829,33246.650 83039.871,33246.633 83039.911,33246.613
83039.950,33246.589 83039.986,33246.563 83040.021,33246.533 83040.053,33246.501
83040.083,33246.467 83040.109,33246.430 83040.133,33246.391 83040.153,33246.351
83040.170,33246.309 83040.183,33246.267 83040.192,33246.223 83040.198,33246.180
83040.200,33246.136 83040.198,33246.093 83040.192,33246.050 83040.183,33246.009
83040.170,33245.969 83040.153,33245.930 83040.133,33245.893 83040.109,33245.859
83040.083,33245.826 83040.053,33245.797 83040.021,33245.770 83039.986,33245.747
83039.950,33245.727 83039.911,33245.710 83039.871,33245.697 83039.829,33245.688
83039.787,33245.682 83039.743,33245.680 83039.700,33245.682 83039.656,33245.688
83039.613,33245.697 83039.570,33245.710 83039.529,33245.727 83039.488,33245.747
83039.450,33245.770 83039.413,33245.797 83039.378,33245.826 83039.346,33245.859
83039.317,33245.893 83039.290,33245.930 83039.267,33245.969 83039.247,33246.009
83039.230,33246.050 83039.217,33246.093 83039.207,33246.136 83039.202,33246.180
83039.200,33246.223 83039.202,33246.267 83039.207,33246.309 83039.217,33246.351
83039.230,33246.391 83039.247,33246.430 83039.267,33246.467 83039.290,33246.501
83039.317,33246.533 83039.346,33246.563 83039.378,33246.589 83039.413,33246.613
83039.450,33246.633 83039.488,33246.650 83039.529,33246.663 83039.570,33246.672
83039.613,33246.678 83039.656,33246.680 83039.700)

OGRFeature(elements):33
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.830 82675.720,32652.828 82675.763,32652.822
82675.807,32652.813 82675.849,32652.800 82675.891,32652.783 82675.931,32652.763
82675.970,32652.739 82676.006,32652.713 82676.041,32652.683 82676.073,32652.651
82676.103,32652.617 82676.129,32652.580 82676.153,32652.541 82676.173,32652.501
82676.190,32652.459 82676.203,32652.417 82676.212,32652.373 82676.218,32652.330
82676.220,32652.286 82676.218,32652.243 82676.212,32652.200 82676.203,32652.159
82676.190,32652.119 82676.173,32652.080 82676.153,32652.043 82676.129,32652.009
82676.103,32651.976 82676.073,32651.947 82676.041,32651.920 82676.006,32651.897
82675.970,32651.877 82675.931,32651.860 82675.891,32651.847 82675.849,32651.838
82675.807,32651.832 82675.763,32651.830 82675.720,32651.832 82675.676,32651.838
82675.633,32651.847 82675.590,32651.860 82675.549,32651.877 82675.508,32651.897
82675.470,32651.920 82675.433,32651.947 82675.398,32651.976 82675.366,32652.009
82675.337,32652.043 82675.310,32652.080 82675.287,32652.119 82675.267,32652.159
82675.250,32652.200 82675.237,32652.243 82675.227,32652.286 82675.222,32652.330
82675.220,32652.373 82675.222,32652.417 82675.227,32652.459 82675.237,32652.501
82675.250,32652.541 82675.267,32652.580 82675.287,32652.617 82675.310,32652.651
82675.337,32652.683 82675.366,32652.713 82675.398,32652.739 82675.433,32652.763
82675.470,32652.783 82675.508,32652.800 82675.549,32652.813 82675.590,32652.822
82675.633,32652.828 82675.676,32652.830 82675.720)

=========================================================
end: ogrinfo
=========================================================


comment:3 by warmerdam, 21 years ago

Jesus, 

It doesn't look like the sample dgn file "stuck".  If you want, you can just
email it to me (zipped).  I would add that your sample output from dgndump
and ogrinfo does not identify a features that is translated improperly.  I
was hoping for the detailed dgndump output for *one* element, and the ogrinfo
output for *one* feature (the feature corresponding to the source element of
course) that show an MSLINK not coming through.  What I am trying to avoid is
spending alot of time poring through dumps myself just looking for a
demonstration of the problem before I even start working out a fix. 

comment:4 by jesus.orozco@…, 21 years ago

Frank,

I finally could upload the zipped file in the website. If you want, you can
download it from http://www.gmaps.es/dl/dgn/. 

It seems that ogrinfo is trying to get the MSLink value from the ellipse
(OGRFeature(elements):7) and dgndump gets it from element 6 (cell header) which
seems right.

=====================================================
ogrinfo
=====================================================

OGRFeature(elements):7
  Type (Integer) = 15
  Level (Integer) = 28
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = (null)
  Style = PEN(id:"ogr-pen-0",c:#ffffff)
  LINESTRING (32652.780 89837.730,32652.778 89837.773,32652.772
89837.817,32652.763 89837.859,32652.750 89837.901,32652.733 89837.941,32652.713
89837.980,32652.689 89838.016,32652.663 89838.051,32652.633 89838.083,32652.601
89838.113,32652.567 89838.139,32652.530 89838.163,32652.491 89838.183,32652.451
89838.200,32652.409 89838.213,32652.367 89838.222,32652.323 89838.228,32652.280
89838.230,32652.236 89838.228,32652.193 89838.222,32652.150 89838.213,32652.109
89838.200,32652.069 89838.183,32652.030 89838.163,32651.993 89838.139,32651.959
89838.113,32651.926 89838.083,32651.897 89838.051,32651.870 89838.016,32651.847
89837.980,32651.827 89837.941,32651.810 89837.901,32651.797 89837.859,32651.788
89837.817,32651.782 89837.773,32651.780 89837.730,32651.782 89837.686,32651.788
89837.643,32651.797 89837.600,32651.810 89837.559,32651.827 89837.518,32651.847
89837.480,32651.870 89837.443,32651.897 89837.408,32651.926 89837.376,32651.959
89837.347,32651.993 89837.320,32652.030 89837.297,32652.069 89837.277,32652.109
89837.260,32652.150 89837.247,32652.193 89837.237,32652.236 89837.232,32652.280
89837.230,32652.323 89837.232,32652.367 89837.237,32652.409 89837.247,32652.451
89837.260,32652.491 89837.277,32652.530 89837.297,32652.567 89837.320,32652.601
89837.347,32652.633 89837.376,32652.663 89837.408,32652.689 89837.443,32652.713
89837.480,32652.733 89837.518,32652.750 89837.559,32652.763 89837.600,32652.772
89837.643,32652.778 89837.686,32652.780 89837.730)

=====================================================
dgndump
=====================================================

Element:Cell Header  Level: 0 id:6      
  offset=4724  size=108 bytes
  graphic_group:0   color:0 weight:0 style:0
  properties=18944,SNAPPABLE,ATTRIBUTES,NEW
  totlength=71, name=ALCNOD, class=1, levels=008000000
  rnglow=(-0.50000,-0.50000), rnghigh=(0.49900,0.49900)
  origin=(32652.28000,89837.73000)
  xscale=1, yscale=1, rotation=0
Attributes (16 bytes):
Type=0x5e62, EntityNum=41, MSLink=46512
  0x071f625e810f2900b0b5000000000000


comment:5 by warmerdam, 21 years ago

Jesus, 

OK, I see the problem.  

The OGR drive built on dgnlib does not do anything with cell headers.  They
are discarded, and the components elements are treated as independent features.
The relationship with the cell header, and any interesting information on the
cell header (like MSLink values) are lost. 

This isn't exactly a bug.  What I could do is:

 o convert cell headers as a feature with no geometry.  This would give 
   something to hang the MSLink value on. 

 o find some way of storing the feature id of the cell header feature to
   which it corresponds on the features derived from elements that belong
   to that cell header. 

The first thing, translating cell headers as geometryless features wouldn't
be too hard, but the second would be hard.  Furthermore, it would be pretty
difficult to take advantage of this except in very customized applications. 
finally, the feature ids are generally not preserved when translating to a
new format, so the relationship wouldn't be easy to preserve even with the 
above actions. 

As such, I am not really too keen to do anything about this. 



comment:6 by warmerdam, 21 years ago

OK, as summarized above, the problem is that cells are not treated as
single features and that the cell header is lost entirely.

For now, I am not planning to change this behaviour as I think trying to
group all the geometry of a cell into one feature would likely be worse than
the current approach, and because just introducing a no-geometry cell header
feature wouldn't likely help Jesus. 

Note: See TracTickets for help on using tickets.