Query on DGN attribute data

Gambin Dejan Dejan.Gambin at PULA.HR
Wed May 4 02:13:50 EDT 2005


Thanks Frank,

ogrinfo -s file_name.dgn elements gives me:

INFO: Open of `10-text.dgn'
using driver `DGN' successful.

Layer name: elements
Geometry: Unknown (any)
Feature Count: 1242
Extent: (5403842.480000, 4964999.646000) - (5416695.538000,
4976971.721000)
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 (0.0)
MSLink: Integer (0.0)
Text: String (0.0)
 
that seems OK and also ogrinfo -al gives me the records with text field
filled, for example:

OGRFeature(elements):34
  Type (Integer) = 17
  Level (Integer) = 9
  GraphicGroup (Integer) = 0
  ColorIndex (Integer) = 0
  Weight (Integer) = 0
  Style (Integer) = 0
  EntityNum (Integer) = (null)
  MSLink (Integer) = (null)
  Text (String) = MUKATI
  Style = LABEL(t:"MUKATI",c:#ffffff,s:15g)
  POINT (5406547.385 4975870.523)

...so evrything seems OK and I can see the text on my map, the problem
is that I can't search for this data. Maybe this has something to do
with my interface (I am using p.mapper and PHP/Mapscript) but it seems
like it has problems with the field named "TEXT". Is this possible? Any
experiences?

Regards, Dejan
-----Original Message-----
From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] 
Sent: Tuesday, May 03, 2005 6:22 PM
To: Gambin Dejan
Cc: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] Query on DGN attribute data


On 5/3/05, Gambin Dejan <Dejan.Gambin at pula.hr> wrote:
> Hi,
> 
> Does anyone know how can I query dgn attribute data. I have 
> successfully displayed dgn annotations using ANNOTATION type and 
> LABELITEM="Text" in mapfile but I would like to search for this 
> attribute data and I don't know how to do it. If I search for a "TEXT"

> field I get nothing. Do I have to add another layer of type POINT or 
> something?
> 
> Does anyone has experience in this?

Dejan,

First, I would suggest you "explore" the file using ogrinfo. 
Generally speaking the only attribute linkage information that OGR
captures is the MSLink and record number for database
linkages.   DGN Features with more than one linkage end up
only presenting the first. 

If you see what you need in the ogrinfo report, then you can use the
attributes in mapserver.  If not, you are out of luck.

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 Programmer for Rent



More information about the mapserver-users mailing list