Questions tagged [multilinestring]

236 questions
2
votes
3 answers

How can I split a long string in source code into several lines for more readability in C++?

In other word how to make my code working if I don't want to write it one line? #include using namespace std; int main() { string menu = ""; menu += "MENU:\n" + "1. option 1\n" + "2. option 2\n" + "3. option…
2
votes
1 answer

Jenkins Multi Line String Parameter,

I'm fairly new to Jenkins, and it's my first time setting up parameters. I have multiple accounts that I want to run the same code for, in an effort to cut down on lines of code. I have 5 accounts, which use the same convention in their…
Jason000
  • 179
  • 2
  • 5
  • 14
2
votes
3 answers

Scala multiline string placeholder

This question is related to ( Why is there no string interpolation in Scala? ), but deals more specifically with multi-line strings. I've just about bought into Martin's suggestion for simple string placeholder where msg = "Hello {name}!" can be…
eptx
  • 801
  • 7
  • 17
2
votes
0 answers

Why do triple quoted strings containing multiple lines have //n at the end of the line in Scala worksheets

I am working with strings encoding tables of data: var table = """1 2 3 4 5 6 7 8 9""" I can see that in the Scala worksheet this is evaluated to: table: String = 1 2 3 //1 4 5 6 //2 7 8 9 When I try to split the values by newline and space…
Krzysztof Słowiński
  • 6,239
  • 8
  • 44
  • 62
2
votes
1 answer

Change stroke color of a linestring (different from fill color) in node-red

I'm working on a worldmap in node-red and I was able to create a polygon and a linestring. But I need the linestring to have no fill and cannot differentiate between the line color (stroke color) and the fill color (it always has fill, like it was a…
bbmothe
  • 21
  • 2
2
votes
3 answers

How to export multi line string to single line text

I have a text file "c:\zz.txt" of which an extract is as follows: #N ABSA ALL ROUNDER FoF #D UT-ABSAAG #P 20190215 393.83 393.83 0.00 #N ABSA BALANCED FUND #D UT-ABSABA #P 20190215 432.28 432.28 0.00 #N COMMUNITY GILT #D…
2
votes
2 answers

how to make a proc available compile time and run time

I have a nim proc that dedents a multiline string based on the whitespace of the first indented line: import strutils proc dedent(s: string): string {.noSideEffect.} = var prefix = "" for line in s.splitLines(keepEol=true): if…
Anthon
  • 69,918
  • 32
  • 186
  • 246
2
votes
2 answers

Indentation when using multi-line strings

I sometimes need to use multi-line strings, but in a nested block. This works, but the readability is really poor: CONDITION1 = CONDITION2 = CONDITION3 = True if CONDITION1: if CONDITION2: s = """jkljkj dfkjslfds sqjdlqkj""" elif…
Basj
  • 41,386
  • 99
  • 383
  • 673
2
votes
2 answers

STLineMerge do not make my MULTILINESTRING in to LINESTRING

This is my part of multilinestring : MULTILINESTRING((59.6338836103678 36.3408616511151,59.6336405351758 36.3410074124113),(59.648377513513 36.3329201331362,59.6481338515878 36.3326094998047,59.6478482801467 36.3322287937626)) When i execute this…
Cyrus the Great
  • 5,145
  • 5
  • 68
  • 149
2
votes
1 answer

R : How to create multilinestring sf from a tibble of coordinates

Consider the following tibble : my_tible <- tibble("ID" = c("A","A","A","B","B", "C","C") , X= c(647851,647875,647875,647766,647766,647826,647822) , Y=c(6859335,6859318,6859319,6859028,6859030,6859314,6859316) ) I would like to…
Felipe
  • 719
  • 8
  • 20
2
votes
1 answer

Editing multiple lines in TextBox

I want my program to take a string entered into a TextBox and then convert it in a pattern. Here is my current code: Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click For Each line As String In TextBox1.Lines …
Blue
  • 27
  • 5
2
votes
1 answer

Distance Between Linestring Geopandas

I have a shapefile dataset. Some roads (line) have the same name but are located at different places and are not connected. Here is a picture of the roads with a same name in my geopandas datafile: I would like to be able to measure the distance…
user7086216
2
votes
0 answers

Android: multiline text in menu item

I need to dynamically put information about a user (name + email), to the first item of my menu. The information should be displayed on two lines within the first menu item. I have already…
JohnA
  • 335
  • 1
  • 3
  • 12
2
votes
1 answer

Convert MULTILINESTRING to LINESTRING in query result

I've a roadfollowing table, containing column COLUMN geom geometry(LineString,4326); I've also a sub_polygon table, containing a column COLUMN geom geometry(MultiPolygon,4326); I want to subtract the polygons stored in sub_polygon from linestrings…
Jepessen
  • 11,744
  • 14
  • 82
  • 149
2
votes
1 answer

Multilines regex in C++

Actually, I try to find a regular expression in a multilines string, but I think I'm on the wrong way to find the next regular expression after a new line (equals to a '\n'). Here is my regex : #include #include #include…
Meugiwara
  • 599
  • 1
  • 7
  • 13