MM Ascii/Comma vector format

Ascii-version of the MM-field software binary format. Uses the same coding system as 3D-Win. However, fields are narrower (widths 8, 8, 8, 8, 6 and 2). Lines are formed according field T2: 0 or empty means single point and new line starts when the number changes. Mm comma uses comma as a field separator and allows longer values.

Attribute data for single point comes next to the point and attribute data for a line comes after the last point on line. Texts use save format as Geonic.

Format header file can contain macros and file attributes. Because the line coding is based on the line numbers, letter X is added to the field T2 of the latter of adjacent lines with same number. Also, T2 is cleared from single points.

Attribute data

Ominaisuustieto kirjoitetaan aina muodossa "!A nimi==tieto", jossa nimi = ominaisuuden nimi ja tieto on ominaisuuden sisältö. Sisällön pituutta ei ole rajoitettu ja se voi sisältää välilyöntejä ja erikoismerkkejä.

Lukiessa käytössä on useita vaihtoehtoja. Jos tieto luetaan pisteen jälkeen olevalta !-alkuiselta riviltä, käytetään alla esitettyjä tapoja.

!A nimi==tieto

! tieto

! nimi tieto

! nr tieto

Voit antaa ominaisuuden myös rivin lopussa, jolloin formaatin määrityksessä annetaan ominaisuuksille nimet. Esimerkiksi tiedoston rivi:

	25 6750903.775   3485843.051  74.492,HUOLTOKYTKIN,SININEN

voidaan lukea formaatin määreellä:

	T4 X Y Z,COMMENT,$(COMMENT2)

ja se näyttää tiedostolistauksena tältä:

	25 6750903.775   3485843.051  74.492
!A COMMENT=HUOLTOKYTKIN
!A COMMENT2=SININEN

Jälkimmäisen ominaisuuden määrittelyssä tarvitaan sulut, koska nimen lopussa on numeerinen osuus.

Controlling lines

Field T6 controls line behavior with following codes:


Example

MM Ascii:

                    6514      88       1    717840.167    507544.317         0.000
!A ADI==2
!A ACC==1
!A DEF==SOJ
!A DAT==19960724
       1       1    7002      94      21    717747.282    507406.582        16.509
       1       1    7002      95      21    717747.341    507406.624        16.519
       1       1    7002      96      21    717748.538    507422.419        16.859
       1       1    7002      97      21    717748.336    507422.434        16.859
!A ADI==1
!A ACC==1
!A DEF==SOJ
!A AIK==19950709
       1       2    7002      98      21    717748.871    507429.486        16.589
       1       2    7002      99      21    717739.148    507430.223        16.359
       1       2    7002     100      21    717739.258    507431.683        16.009
       1       2    7002     101      21    717731.860    507432.244        15.869

MM Comma:

,,6514,88,,1,717840.167,507544.317,0.000
!A ADI==2
!A EPV==1
!A PÄT==SOJ
!A AIK==19960724
1,1,7002,94,,21,717747.282,507406.582,16.509
1,1,7002,95,,21,717747.341,507406.624,16.519
1,1,7002,96,,21,717748.538,507422.419,16.859
1,1,7002,97,,21,717748.336,507422.434,16.859
!A ADI==1
!A EPV==1
!A PÄT==SOJ
!A AIK==19950709
1,2,7002,98,,21,717748.871,507429.486,16.589
1,2,7002,99,,21,717739.148,507430.223,16.359
1,2,7002,100,,21,717739.258,507431.683,16.009
1,2,7002,101,,21,717731.860,507432.244,15.869

Special settings

There are some special settings related to this converter.

Comment

Comment attribute name. Usage described above int the section Attribute data.

CableCoding

See Cable coding

See also: Common special settings