Questions tagged [multilinestring]

236 questions
0
votes
1 answer

Printing long strings in C# with Graphics.DrawString

Good morning. I have to print some long strings that falls off the margins of my page. I'm not able to split automatically as a multi-line string. private void pd_PrintPage(object sender, PrintPageEventArgs ev) { ... string line ="Condimentum a…
Simone Conti
  • 349
  • 1
  • 17
0
votes
0 answers

Converting XML string to scala XML literal

I'm trying to convert the given XML string to Scala XML literal. e.g. import scala.xml.XML.loadString > val xml = """ |data1 |data2 |
chqdrian
  • 335
  • 4
  • 17
0
votes
1 answer

python - Error calculating length in LineString objects

Currently dealing with two errors while programming the code shown below, I was wondering if anybody could help me or give some tips to solve them, thank you. 1) When trying to assign multiple LineString objects to a MultiLineString object I…
rclee
  • 85
  • 9
0
votes
0 answers

Problem while modifying MultiPolyline drawn over dateline in Openlayers

I am working on an application in OpenLayers which allows users to draw polylines and modify them. For sake of presentation when the user draws across the dateline, I have split the polyline into two halves and added it to map as a MultiPolyline…
capnam
  • 429
  • 9
  • 25
0
votes
0 answers

Is there a way to concatenate multilines in [onshow; if [var.x]!='0'; then ' multilines here ';else '']

How to concatenate multiline string in [onshow if then else] condition with tbs variables? Thanks for your help. I work on windows 10 + WAMP. I had try the code bellow. I suppose the problem is coming from the tbs variables incuded in. I did'nt find…
DiGi
  • 1
  • 1
  • 1
0
votes
0 answers

How to make file.split find a multiline string to separate a file in two parts?

I am trying to use a code by someone else, but it keeps failing at one specific point. The code needs to find a multiline string in some inputfile and split the inputfile in two. The code seems logical to me, but I keep getting the same error. The…
Jelle V
  • 21
  • 3
0
votes
1 answer

Why would someone choose to preemptively use the nesting operator for their multi-line quotes?

I was looking at some documentation here: http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki#db_exec And found this code snippet: sql=[=[ CREATE TABLE numbers(num1,num2,str); INSERT INTO numbers VALUES(1,11,"ABC"); …
Zhro
  • 2,546
  • 2
  • 29
  • 39
0
votes
1 answer

How to draw multiline string to pdf with UIGraphicsPDFRenderer?

I'm trying to create a pdf file which will include some text. The problem is pdf acts like first line width is infinite. Here is the result of pdf something like: This PDF cr. I can't see the rest because the screen size is not enough :) let…
Berkan C.
  • 5
  • 3
0
votes
2 answers

How to save a multi-line string in a single line and without multiple white spaces

I am trying to save to a txt a multi-line string without the newline and any multiple spaces: with open('test.txt','w') as f: f.write( r"""
G M
  • 20,759
  • 10
  • 81
  • 84
0
votes
1 answer

perl multiple regex match over multiple lines

I'm struggling with trying to capture multiple matches within a group of lines in a text file. The data takes on a bunch of forms like AO22_X1N_A9PP96CTS_C24 SYN_INC_187 ( .A0 ( test_so6 ) , .A1 ( n2218 ) , .B0 ( U_PAUSEdata_ff_int_28_ )…
togaclad
  • 21
  • 5
0
votes
1 answer

Using enum names in a multiline string to associate each string line with the integer value of the enum. Is there a better way?

My RTF parser needs to process two flavors of rtf files (one file per program execution): rtf files as saved from Word and rtf files as created by a COTS report generator utility. The rtf for each is valid, but different. My parser uses regex…
VA systems engineer
  • 2,856
  • 2
  • 14
  • 38
0
votes
1 answer

Jpa Criteria equals Predicate for a table's String property (with newLine character '\n') doesn't work when in MySQL Workbench it works

as the title suggests I am having a problem trying to use JPA Criteria with Spring Boot for a specific case. Generally everything works but trying to search for stored data with a String property having newLine character embedded ( \n ) doesn't seem…
0
votes
0 answers

Turn a tuple containing letters, numbers, symbols, or tags, into a string

I have found the stackoverflow question: Python convert tuple to string a great source so far, but my list of strings contain "#" and "\n". (the following example has been shortened for readability. The actual tuple would create 7 lines when…
Cory
  • 49
  • 6
0
votes
2 answers

Create multi line string object from string array - C#

I am trying to create multi-line string from string array like @"A minErr message has two parts: the message itself and the url that contains the encoded message. The message's parameters can contain other error messages which also include…
Muhammad Mansoor
  • 103
  • 1
  • 1
  • 8
0
votes
1 answer

Openlayers Linestring with points and Name

Is it possible to create a linestring with points on the cordinates mentioned, as well as name of that linestring. for (var i = 0; i < wp.length; i++) { wp[i] = ol.proj.transform(wp[i], 'EPSG:4326', 'EPSG:3857'); …
ash
  • 25
  • 4