[Mapserver-users] Another question about DGN attribute query

Emil Zegers EZS at DeStraat.NL
Mon Jan 26 07:46:59 PST 2004


Hello list,

At the moment I'm struggling with querying DGN attribute data which is not working out.

I've found messages about this subject posted on the list before and they helped me to come where I am now: I can display the DGN with/without using the STYLEITEM "AUTO" and I can show the values from the Text field.

But I cannot query any of the fields in the DGN, no matter what field (Text, level, Layer) for a certain LAYER TYPE (ANNOTATION, POINT, LINE, POLYGON) I query.

This is the LAYER definition:

# GROENNAALDWIJK_dgn
LAYER
  METADATA
    wms_title "GROENNAALDWIJK_dgn"
  END
  NAME "GROENNAALDWIJK_dgn"
  TYPE POINT
  DEBUG ON
  CONNECTIONTYPE OGR
  CONNECTION "D:/websites/DemoData/Naaldwijk/Data/Basis/dgn/GROENNAALDWIJK.DGN"
  DATA "0"
  STATUS ON
  TOLERANCE 10
  
  STYLEITEM "AUTO"

  CLASSITEM "Text"
  CLASS
  END

  TEMPLATE "xmlqueries/dgn_xml.html"
END


This is the dgn_xml.html template defintion:

<dgn>
    <Text>[Text]</Text>
</dgn>

It all ends in the following message:

  msOGRLayerGetShape(): OGR error. Requested feature is incompatible with layer type

Now I'm looking for working examples of DGN attribute querying, has anyone been able to do so?

And if yes, are you willing to share your knowledge and/or example MAP and TEMPLATE files?

Best regards,

Emil Zegers


______________________________________________________

 This message has been checked for all known viruses
______________________________________________________




More information about the MapServer-users mailing list