Hi Patrick.
 
It's been a while since I worked with mapping files, nowadays FME Workbench is 
"King". However, I think this is kind of you want to do:
 
# Define your existing Mapinfo-attributes
MAPINFO_DEF $(_BASENAME)             \
igds_level            Decimal(6,0)   \
igds_class            Decimal(6,0)   \
igds_color            Decimal(6,0)   \
igds_graphic_group    Decimal(5,0)   \
igds_style            Decimal(6,0)   \
igds_text_string      Char(254)      \
igds_rotation         Decimal(14,6)  \
igds_font             Decimal(6,0)   \
igds_text_size        Decimal(14,6)  \
igds_justification    Decimal(6,0)   \
igds_weight           Decimal(6,0)
                                 
# Map your Mapinfo-attributes to the Mapinfo-definition
MAPINFO $(_BASENAME)                     \
igds_level         %igds_level           \
igds_class         %igds_class           \
igds_color         %igds_color           \
igds_graphic_group %igds_graphic_group   \
igds_style         %igds_style           \
igds_text_string   %igds_text_string     \
igds_rotation      %igds_rotation        \
igds_font          %igds_font            \
igds_text_size     %igds_text_size       \
igds_justification %igds_justification   \
igds_weight        %igds_weight       
 

# Map your Mapinfo-attributes to the output data
IGDS $(_BASENAME)                        \
igds_level         %igds_level           \
igds_class         %igds_class           \
igds_color         %igds_color           \
igds_graphic_group %igds_graphic_group   \
igds_style         %igds_style           \
igds_text_string   %igds_text_string     \
igds_rotation      %igds_rotation        \
igds_font          %igds_font            \
igds_text_size     %igds_text_size       \
igds_justification %igds_justification   \
igds_weight        %igds_weight       
 
# Define your output layer (no need to define the attributes since IGDS have no 
user defined attributes.)
IGDS_DEF $(_BASENAME)

 
This does only work if your input data (Mapinfo-data) has the attributes above, 
otherwise you'll have to rename the attributes.
 
Have you seen this documentation? 
http://reference.mapinfo.com/software/mapinfo_pro/english/8.5/UT_UG.pdf
Try generating a mapping file from your data, that should get you on the right 
track.
 
Good luck!
 
/Nisse
 
Nils-Erik Dahlsten
Lantmäteriverket/Metria
801 82 Gävle
Besöksadress: Lantmäterigatan 2
026-633019 (Växel: 026-633000, Röststyrd växel: 026-634600)
070-4615970
[EMAIL PROTECTED]
www.lantmateriet.se/metria <http://www.lantmateriet.se/metria/index.asp> 


________________________________

Från: [email protected] [mailto:[EMAIL PROTECTED] För pmollbrink
Skickat: den 29 januari 2007 15:18
Till: [email protected]
Ämne: [fme] Extracting igds_text_string and igds_rotation to MapInfo from DGN



Hi there,

I'm trying to extract igds_text_string, igds_rotation and a few other 
bits by using a command line batch using Universal Translator in MI 
Pro:

MAPINFO_DEF $(_BASENAME) \
igds_level Decimal(6,0) \
igds_class Decimal(6,0) \
igds_color Decimal(6,0) \
igds_graphic_group Decimal(5,0) \
igds_style Decimal(6,0) \
igds_text_string Char(254) \
igds_rotation Decimal(14,6) \
igds_font Decimal(6,0) \
igds_text_size Decimal(14,6) \
igds_justification Decimal(6,0) \
igds_weight Decimal(6,0) 

But I do not get anything in the igds_text_string field after 
translation.

Any basic stuff I'm missing hhere?

/Patrick



 

Reply via email to