Hi Nisse,
Out of courtesy to the rest of the world I will keep this in English (I'm
also from Sweden)
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/example.DGN
Best regards
/Patrick
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
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
---------------------------------
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" at Yahoo! Autos' Green Center.