Hi Patrick.
 
Yes, I recognized your name..
 
Your field type definitions should have lower case letters, like this (or set 
fields to float instead of decimal....):
 
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)         
 
Good luck!
 
/Nisse
 
PS.
I use UltraEdit as text-editor, it can highlight fme mappingfiles for you so 
that you see when your spelling isn't correct.
www.ultraedit.com - You'll find Syntax-files for highlighting fme-files there 
also to download.
DS.
 

________________________________

Från: [email protected] [mailto:[EMAIL PROTECTED] För Patrick Mollbrink
Skickat: den 31 januari 2007 17:03
Till: [email protected]
Ämne: Re: SV: [fme] Extracting igds_text_string and igds_rotation to MapInfo 
from DGN



Hi Nisse,
 
Out of courtesy to the rest of the world I will keep this in English (I'm also 
from Sweden)  <http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif> 
 
Actually, I have the defenitions you suggest in my fme-file, I'm going from dgn 
to mapinfo.
It still dosn't work right for igds_text_string or  igds_rotation, the 
attributes are either blank or garbage.
 
I have posted the file om my web if anyone would like to have a peek at it 
along with a sample dgn file.
http://www.mollbrink.se/stuff/dgn_to_mapinfo.fme 
<http://www.mollbrink.se/stuff/dgn_to_mapinfo.fme> 
http://www.mollbrink.se/stuff/example.DGN 
<http://www.mollbrink.se/stuff/example.DGN> 
 
 
Best regards
/Patrick
 
 
 
<http://www.mollbrink.se/stuff/http://www.mollbrink.se/stuff/dgn_to_mapinfo.fme>
  
 


Dahlsten Nils-erik <[EMAIL PROTECTED]> wrote:

        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 
<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] <mailto:[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
        
        


________________________________

Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" 
<http://autos.yahoo.com/green_center/;_ylc=X3oDMTE4MGw4Z2hlBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW5jZW50ZXI->
  at Yahoo! Autos' Green Center. 

 

Reply via email to