[GRASS-user] How can i open vector files having dgn format

hello pawan,
OGR is not capable of finding geo refrence information about DGN files.
DGN being a properitry format is not revealed completely specially type56 element( contains datum and projection information). I think this is main reason for this.
You will be able to view map elements without any georefrence informatio in grass or QGis. You can try to superimpose it over other maps by providing end coordinates. Someone might help on this matter.
If you finds anyways , keep us also updated.

nitin

On Thu, 17 May 2007 Pawan Joshi wrote :

Hello all ,

How can i open vector files having dgn format. when i m using “v.in.org -o”

It is running without any error message but when i m displaying the map there is not any relevant display according to the Geo-reference. The map region belong to 22N,21N,76E,77E. but there is no data in that region but when i select the whole word as a region for that dgn vector map i have a number of lines and circle as a data on using d.vect …

What is the proper command OR grass does not support it well. as i have already send the same problem, please don’t direct your reply to some other URL.
That is having the information of supported vector format for Grass6.2

Thanks

Pawan Joshi


Sick sense of humor? Visit Yahoo! TV’s Comedy with an Edge to see what’s on, when.


grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

Nitin wrote:

hello pawan, OGR is not capable of finding geo refrence information
about DGN files.

True [1]. However, you could use v.transform to georeference your GRASS
vector created by loading DGN into GRASS.

DGN being a properitry format is not revealed
completely specially type56 element( contains datum and projection
information).

On [2] one can request DGN V8 specification; supposedly. They proudly
call this OpenDGN, but it certainly does not deserve the name. Even
considering the procedure to obtain the document alone (register, print
the form, mail/fax it, wait). What's worse, when I applied for stage
one (register), I kept on getting "You do not have permission to view
this page" just trying to download the registration form (sic!).

Luckily there is FME which supports DGN v7/v8 [3]. Fairly cheap, 2
weeks fully functional trial available [3]; not free software though.
Using it one should be able to convert his DGN into something OGR can
digest, thus GRASS too.

[1]http://www.gdal.org/ogr/drv_dgn.html
[2]http://www.bentley.com/en-US/Products/MicroStation/OpenDGN/
[3]http://www.safe.com/products/fme/formats-supported/index.php
[4]http://www.safe.com/evaluation/index.php

Maciek

Maciej Sieczka wrote:

Nitin wrote:

hello pawan, OGR is not capable of finding geo refrence information
about DGN files.

True [1]. However, you could use v.transform to georeference your GRASS
vector created by loading DGN into GRASS.

Thinking and reading more it seems I might be wrong in part. I assumed
OGR's DGN driver would ignore the georeferencing completely. It might
be that it does not; it might only ignore the projection metadata,
while it would recognize the coordinates of DGN vector features
properly. If the latter would be the case, v.transform after v.in.ogr
should be not necesary. Please somebody who knows speak up.

Pawan,

Does

g.region vect=your_imported_DGN
d.vect your_imported_DGN

work as expected? What is the output of

g.region vect=your_imported_DGN -g

?

Sorry for so many doubts, but I don't have any DGNs to check it out myself.

Maciek

Maciej Sieczka wrote:

Maciej Sieczka wrote:

Nitin wrote:

hello pawan, OGR is not capable of finding geo refrence information
about DGN files.

True [1]. However, you could use v.transform to georeference your GRASS
vector created by loading DGN into GRASS.

Thinking and reading more it seems I might be wrong in part. I assumed
OGR's DGN driver would ignore the georeferencing completely. It might
be that it does not; it might only ignore the projection metadata,
while it would recognize the coordinates of DGN vector features
properly. If the latter would be the case, v.transform after v.in.ogr
should be not necesary. Please somebody who knows speak up.

Maciej,

The OGR DGN driver generally does not know the coordinate system of the
vectors, but it will generally return the vectors in georeferenced
coordinates.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org