[mapserver-users] DNC's
Frank Warmerdam
warmerdam at pobox.com
Tue Aug 19 07:46:55 PDT 2008
Derek Bain wrote:
> Hi
>
> I am trying to get the color for each symbol/layer within a DNC. Using
> ogrinfo I can get the f_code for each layer however I cannot find the
> symbol number stored anywhere. Using document MIL-DTL-89045 I can get a
> table of symbol number mapped to color. However I need, if possible, to
> find a way of getting the symbol number from the DNC files OR a means of
> mapping f_code to color so I can complete the map file. I tried
> specifying STYLEITEM "AUTO" in one of my Layers to use the default
> colors within the layer but that does not seem to be supported by OGR
> and results in a white/blank image (tried empty Class). I have also
> tried searching through the files for a specific symbol number with no
> success.
>
> Has anyone any ideas of how to do find the symbol number
Derek,
STYLEITEM "AUTO" is supported for a few OGR formats (Mapinfo, and DGN for
instance), but not for anything via the OGDI gateway.
I presume you are seeing attributes like this on your DNC features?
OGRFeature(coastl at ecr(*)_line):0
id (Integer) = 1
f_code (String) = BA010
acc (Integer) = 1
slt (Integer) = 15
tile_id (Integer) = 1
edg_id (Integer) = 2
That's all I get anyways. I'm afraid I don't know how to get the symbol
number. Either it isn't in the dataset or the OGDI VRF/VPF driver is not
picking it up in association with the features.
I am attaching the metadata output from the ogdi_info command for my DNC
dataset in case it might have something useful for you. It does, for instance,
associate longer text for the f_code values.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnc_meta.zip
Type: application/zip
Size: 5586 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080819/a68c5933/attachment.zip>
More information about the MapServer-users
mailing list