[Gdal-dev] problem getting style of point features

ksa nil5-ksa at yandex.ru
Thu Jul 15 08:47:45 EDT 2004


Hi, Frank!
I have follow MIF file:

--top of MIF file
Version 300
Charset "WindowsCyrillic"
Delimiter ","
CoordSys Earth Projection 1, 0
Columns 2
  ID Integer
  Code Char(8)
Data

Point 36.145654 54.531409
    Symbol (45,0,10,"MapInfo Weather",0,0)
--end of MIF file

The corresponding style string is:
SYMBOL(a:0,c:#000000,s:10pt,id:"mapinfo-sym-45.ogr-sym-8").
There is no information about font name in that style string. How I can get
information about font name? MIF-file contains the information about font
name ("MapInfo Weather").


----- Original Message ----- 
From: "Frank Warmerdam" <warmerdam at pobox.com>
To: "ksa" <nil5-ksa at yandex.ru>
Sent: Friday, July 09, 2004 8:51 PM
Subject: Re: [Gdal-dev] problem getting style of point features


> ksa wrote:
> > Hi!
> > I'm using version 1.2.1 of OGR. I've got some diffiiculties in getting
the
> > style of point features.
> >
> > There is no field 'fontName' (or something like this) in the OGR Feature
> > Style Specification for symbol style. So there is no ability to get the
full
> > information about the vector symbols. The system returns information
about
> > the symbol code but it never returns information about the font name for
> > that symbol.
> > For example, getStyleString() returns id:"mapinfo-sym-45". It's 45th
symbol
> > in the MapInfo Weather symbol table (font) actually.
> > The question is: can I receive the font name for that symbol? If not,
how
> > can I guess what a font was used for that symbol? Should I maintain a
> > private list of styles, used by different vendors in their products?
> > Thanks!
>
> Karin,
>
> I'm afraid I don't entirely follow this.  Can you provide a .mid/mif file
with
> just one problem feature and what you are getting from the corresponding
style
> string?
>
> 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 Gdal-dev mailing list