[Therion] Metapost exit code -- 2

Martin Sluka martinsluka at mac.com
Mon Jul 3 11:21:46 CEST 2017


The main problem is „overpointed“ lines with zillions of points - typical problem of TopoDroid.

In new version of Therion there is new command for lines - „simplify“. It should remove most of unnecessary points. When followed by command „Convert to curve“ you should receive smooth lines with only several points. Enough for good drawing and much, much, much faster.

Try another Android application - Qave.

>>> scrap outline intersects itself  - it is only warning

 
m.s.

    


> 2. 7. 2017 v 18:02, Saeid Bostandoust via Therion <therion at speleo.sk>:
> 
> Im resolve a problem with a simple hack...
> 1- duplicate topodroid scrap with topodroid survey.sql file now we have more than one scraps with same draw.
> 2- split a cave into small scraps on locations near to the stations and just wall around them.
> 3- remove not needed points, lines, areas and etc.
> 4- now we have a project with all of stations and more than one scraps with draw.
> After that metapost works good and export done without any errors but for now a scrap line intersects itself warning occurs and i look for solution for resolve it.
> This is a best simple way i think for split a sketch and your drawing...
> Thanks, Saeid. 
> 
> 
> On Sunday, July 2, 2017 8:27 PM, Saeid Bostandoust <ssbostan at yahoo.com> wrote:
> 
> 
> Im resolve a problem with a simple hack...
> 1- duplicate topodroid scrap with topodroid survey.sql file now we have more than one scraps with same draw.
> 2- split a cave into small scraps on locations near to the stations and just wall around them.
> 3- remove not needed points, lines, areas and etc.
> 4- now we have a project with all of stations and more than one scraps with draw.
> This is a best simple way i think for split a sketch and your drawing...
> Thanks, Saeid.
> 
> 
> 
> On Sunday, July 2, 2017 1:04 PM, Martin Sluka <martinsluka at mac.com> wrote:
> 
> 
> Send me your files please. I'll chect it at evening - it is half past 10 a.m. here. 
> 
> Odesláno z iPhonu
> 
> 2. 7. 2017 v 10:30, Saeid Bostandoust <ssbostan at yahoo.com <mailto:ssbostan at yahoo.com>>:
> 
>> Im check it, all of my points, lines and etc... between scrap and endscarp and all of my design between cave walls
>> but a problem not resolve.
>> 
>> 
>> On Sunday, July 2, 2017 12:44 PM, Martin Sluka via Therion <therion at speleo.sk <mailto:therion at speleo.sk>> wrote:
>> 
>> 
>> An scrap is a unit from which all Therion's output are created. 
>> 
>> So all objects of particular scrap MUST be between lines scrap - endsrap in th2 files. Of they are outside, they will not be drawn. 
>> 
>> It is not simple work, all active objects of an active scrap are in blue. On top right corner of map editor is a window where is structure of your th2 file. Above it are buttons for selecting different parts of overall th2 file. Select the particular scrap by that button and check on map window if everything of that scrap is selected. If not check the line number of endscrap command of that scrap. There is a button "Move to" just bellow  of window with th2 structure. Write there line number of endscrap, select missing objects on by one and press "Move to". 
>> 
>> Repeat it untill all objects will be in their particular scraps. 
>> 
>> Sorry, but no more simple way. 
>> 
>> Recommendation: Create small scraps  from beginning. 
>> 
>> m.s. 
>> 
>> Odesláno z iPhonu
>> 
>> 2. 7. 2017 v 9:20, Saeid Bostandoust via Therion <therion at speleo.sk <mailto:therion at speleo.sk>>:
>> 
>>> Im resolve the problem by split my scrap into small scraps but another problems occurs.
>>> 1- scrap outline intersects itself
>>> 2- most of pit lines, slope lines, rock-border lines and etc... not exported to pdf
>>> What should i do?
>>> 
>>> ####################### metapost log file ########################
>>> This is MetaPost, version 1.209 (kpathsea version 5.1.0) (mem=mpost 2010.01.31)  2 JUL 2017 09:52
>>> **data.mp
>>> (./data.mp [4001] [4002] [4003] [4004] [4005] [4006] [4007] [4008] [4009] [4010
>>> ] [4011] [4012] [4013]
>>> [1] [2]
>>> [Warning: scrap outline intersects itself in scrap Cave-Plan4 at Shapur]
>>> [Warning: scrap outline intersects itself in scrap Cave-Plan4 at Shapur] [3]
>>> [4] [5] [6] [7] [8]
>>> [Warning: scrap outline intersects itself in scrap Cave-Plan2 at Shapur] [9]
>>> [10] [11]
>>> [Warning: scrap outline intersects itself in scrap Cave-Plan1 at Shapur] [12]
>>> [13] [14] (./mptextmp.mp) [15] )
>>> 
>>> 
>>> On Sunday, July 2, 2017 10:31 AM, Saeid Bostandoust via Therion <therion at speleo.sk <mailto:therion at speleo.sk>> wrote:
>>> 
>>> 
>>> Thanks for answering.
>>> I found the problem nearly, my project plan is very large and a th2 file of plan is about 23000 lines, im delete most of lines and reduce it to near 5000 lines and all done without errors... what should i do now?
>>> maybe 23000 lines cannot be parsed and processed with metapost...
>>> 
>>> 
>>> On Sunday, July 2, 2017 6:55 AM, michael brewer via Therion <therion at speleo.sk <mailto:therion at speleo.sk>> wrote:
>>> 
>>> 
>>> Hi
>>> I had this error recently and solved it by changing the scale of the output from 1 500 to 1 1000. I assumed  my output was exceeding the size allowable for the pdf document?
>>>  
>>> Michael
>>>  
>>> From: Therion [mailto:therion-bounces at speleo.sk <mailto:therion-bounces at speleo.sk>] On Behalf Of Saeid Bostandoust via Therion
>>> Sent: Sunday, July 2, 2017 8:56 AM
>>> To: List for Therion users
>>> Cc: Saeid Bostandoust
>>> Subject: Re: [Therion] Metapost exit code -- 2
>>>  
>>> Thanks Bruce, but i dont understand how can i found the problem and what is that realy...
>>>  
>>> On Sunday, July 2, 2017 12:26 AM, Bruce Mutton via Therion <therion at speleo.sk <mailto:therion at speleo.sk>> wrote:
>>>  
>>> Saeid
>>> Try this https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean <https://therion.speleo.sk/wiki/faq#what_does_error_--_cp_exit_code_--_2_mean>
>>>  
>>> Bruce
>>>  
>>> From: Therion [mailto:therion-bounces at speleo.sk <mailto:therion-bounces at speleo.sk>] On Behalf Of Saeid Bostandoust via Therion
>>> Sent: Sunday, 2 July 2017 3:36 AM
>>> To: therion at speleo.sk <mailto:therion at speleo.sk>
>>> Cc: Saeid Bostandoust <ssbostan at yahoo.com <mailto:ssbostan at yahoo.com>>
>>> Subject: [Therion] Metapost exit code -- 2
>>>  
>>> Hi, What is this exit code? and why it happen? and how to cor
> 
> 
> 
> 
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk <mailto:Therion at speleo.sk>
> https://mailman.speleo.sk/listinfo/therion <https://mailman.speleo.sk/listinfo/therion>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20170703/33156808/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sni?mek obrazovky 2017-07-03 v?11.12.28.png
Type: image/png
Size: 17821 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20170703/33156808/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sni?mek obrazovky 2017-07-03 v?11.12.09.png
Type: image/png
Size: 11819 bytes
Desc: not available
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20170703/33156808/attachment-0001.png>


More information about the Therion mailing list