The maximum size of one image(scrap) generated by Metapost must be less than 5 m!

Martin S. 

Odesláno z iPhonu

3. 12. 2018 v 16:58, Henry.Bennett--- via Therion <therion@speleo.sk>:

You need to create a layout with a scale declaration in your thc file.

 

encoding  utf-8

source Litrikur.th

 

#export model -o litrikur.lox

 

#export model -fmt kml -o litrikur.kml

export map -projection plan -o litrikur.pdf

 

layout local

  scale 1 1500

  base-scale 1 1500 

endlayout

 

Regards,  Henry

 

From: Therion <therion-bounces@speleo.sk> On Behalf Of Thorir Jonsson via Therion
Sent: 03 December 2018 13:49
To: List for Therion users
Cc: Thorir Jonsson
Subject: [Therion] locating where scrap outline intersects itself, and understanding the metapost log

 

[EXTERNAL EMAIL]

Hi!

 

I'm still having issues generating a pdf from my survey. Maybe it is because of the size of the scrap but I have not yet figured out how to work with multiple scraps so I hope I can make this work as a single scrap.

 

The metapost log tells me that the scrap outline intersects itself, but does not give any indication of where this happens. How can I find out what is amiss?

 

Right after the outline intersecting error I get the following:

 

! Value is too large (7219).

<for(picture)> q:=pathpart(EXPR0);tmp:=length.q;

                                                s:=decimal(roundone(xpart.po...

 

draw_downscrap->...te.s.to.clip_name;endfor;endfor

                                                  ;write"closepath fill"to.b...

l.14260 draw_downscrap

                      ;

 

I must confess I have no idea what this is trying to tell me. What value is too large? Why is the text formatted so strangely? Do the ellipses indicate where text has been clipped, and if so where can I find the full text?

 

I'm running Therion on Fedora 27 if that matters.

 

Here is the full text from the log:

 

therion 5.4.1 (2017-04-18)

initialization file: /etc/therion.ini

reading ... done

checking optional fonts csr10 csti10 csbx10 csss10 csssi10 ... NOT INSTALLED

checking optional fonts cmcyr10 cmcti10 cmcbx10 cmcss10 cmcssi10 ... OK

configuration file: thconfig.thc

reading ... done

reading source files ... done

preprocessing database ... done

output coordinate system: UTM28

meridian convergence (deg): 2.6969

geomag declinations (deg):

  2016.1.1  -12.1246

  2017.1.1  -11.8581

scanning centreline tree ... done

searching for centerline loops ... done

calculating station coordinates ... done

calculating basic statistics ... done

processing extended elevation ... done

processing references ... done

selecting export objects ... done

processing projection plan ... done

average distortion: 0.03%

writing litrikur.pdf ...

####################### metapost log file ########################

This is MetaPost, version 1.9991 (TeX Live 2016) (kpathsea version 6.2.2)  3 DEC 2018 13:17

(/usr/share/texlive/texmf-dist/metapost/base/mpost.mp

(/usr/share/texlive/texmf-dist/metapost/base/plain.mp

Preloading the plain mem file, version 1.005) ) (./data.mp [4001] [4002] [4003]

[4004] [4005] [4006] [4007] [4008] [4009] [4010] [4011] [4012] [4013]

[1]

[Warning: scrap outline intersects itself in scrap Litrikur-1p@Litrikur]

! Value is too large (7219).

<for(picture)> q:=pathpart(EXPR0);tmp:=length.q;

                                                s:=decimal(roundone(xpart.po...

 

draw_downscrap->...te.s.to.clip_name;endfor;endfor

                                                  ;write"closepath fill"to.b...

l.14260 draw_downscrap

                      ;

The equation I just processed has given some variable a

value outside of the safetyp range. Continue and I'll try

to cope with that big value; but it might be dangerous.

(Set warningcheck:=0 to suppress this message.)

 

[2] [3] [4] (./mptextmp.mp) [5] )

 

Here is how much of MetaPost's memory you used:

 138534 strings using 3746717 characters

 6847656 bytes of node memory

 1422 symbolic tokens

 11i,81n,14p,226b,5f stack positions out of 16i,96n,17p,250b,6f

18 output files written: data.1 .. data.4013

 

 

#################### end of metapost log file ####################

therion: error -- metapost exit code -- 512

writing xtherion file ... done

 

Dell Corporation Limited is registered in England and Wales. Company Registration Number: 2081369
Registered address: Dell House, The Boulevard, Cain Road, Bracknell,  Berkshire, RG12 1LF, UK.
Company details for other Dell UK entities can be found on  www.dell.co.uk.

<thconfig.thc>
_______________________________________________
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion