On 2012/06/20 12:56, Even Rouault wrote:
Selon Zoltan Szecsei<[email protected]>:
Hi,
I have some DGN v7 files with contours, and I wish to add up the total
length of all the contours in the file.
Using:
zls@gs0:~/ngi10k/ngi10k_geo$ ogrinfo --version
GDAL 1.9.0, released 2011/12/29
I get:
zls@gs0:~/ngi10k/ngi10k_geo$ ogrinfo 3117bb_lin_v7.dgn
INFO: Open of `3117bb_lin_v7.dgn'
using driver `DGN' successful.
1: elements
zls@gs0:~/ngi10k/ngi10k_geo$
If I use parameters -so or -q or -geom=SUMMARY then I get the same
error,
Which error ? The output of the above commands looks right. There is no error as
far as I can see...
Ah! Sorry. That's my sloppy use of the word "error".
I was expecting to see some summary of my dgn file. eg: number of
elements, layers occupied, who know's what else.
This expectation came from reading the ogrinfo description webpage.
I expected to see something different when I used different parameters
-so, -q and -geom=SUMMARY, but got all the same "nothing".
There are just over 24000 contour lines, as either LINESTRING or
MULTILINESTRING in this DGN file.
but if I use parameter -al, then the DGN file is opened and all
24000 contours are dumped to stdout.
Yes, that's expected.
Yes, so did I expect this. I was providing it to show that my DGN file
was in fact 'dumped' , and hence usable/readable by ogrinfo.
QGIS 1.7.3 on Windows does open the same DGN file.
Cool
How can I investigate further as to why Linux ogr won't open the file
using ?
AFAICS, OGR did open the file. It is just that without the -al option, or
specifying the layer name (elements), the features won't be listed in the
console. I don't see any issue in the above, but I've perhaps not understood
what you mean.
I did not want to dump the features. I was hoping that "SUMMARY" would
give some useful info like layers occupied, element type/count and sum
of line-lengths, poly perimeters/area etc etc (the sum of line lengths
were what I was praying for).
Thanks for your response, and apologies for the misuse of the word "error".
Regards,
Zoltan
TIA,
Zoltan
--
===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
P.O. Box 7, Muizenberg 7950, South Africa.
65 Main Road, Muizenberg 7945
Western Cape, South Africa.
34° 6'16.35"S 18°28'5.62"E
Tel: +27-21-7884897 Mobile: +27-83-6004028
Fax: +27-86-6115323 www.geograph.co.za
===========================================
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
P.O. Box 7, Muizenberg 7950, South Africa.
65 Main Road, Muizenberg 7945
Western Cape, South Africa.
34° 6'16.35"S 18°28'5.62"E
Tel: +27-21-7884897 Mobile: +27-83-6004028
Fax: +27-86-6115323 www.geograph.co.za
===========================================
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev