Questions tagged [multilinestring]

236 questions
3
votes
1 answer

Ansible multiline string with multiple quotes

I am trying to configure a Mikrotik router using Ansible - as part of that task, I need to generate the actual command that is sent to the router. And somehow, some of the quotes simply... disappear from my string after Ansible parses it. [ Edit -…
Bogd
  • 673
  • 9
  • 16
3
votes
1 answer

Is there a way to collect many multiline strings delineated by a specific character into an Arraylist using the data stream in Java 8?

I have a fasta file that I want to parse into an ArrayList, each position having an entire sequence. The sequences are multiline strings, and I don't want to include the identification line in the string that I store. My current code splits each…
Sam
  • 33
  • 3
3
votes
1 answer

How to remove the last character from a multiline string?

Example: Consider a String like below: String a="This line1 has a,b,c,\nThis line2 has d,e,f, \nThis line3 has g,h,i"; System.out.println(a); Output: This line1 has a,b,c, This line2 has d,e,f, This line3…
sarav
  • 47
  • 9
3
votes
3 answers

How to sort a MultiLineString?

I have a MultiLineString consisting of individual LineStrings that form a path. The path has a direction and LineStrings must be sorted to reflect this order. To do that some strings must be reversed to point to the same direction as the rest. What…
kissaprofeetta
  • 348
  • 1
  • 2
  • 9
3
votes
2 answers

How to do a multi-line any character match including newline character using RegEx in VBA

I am trying to extract some data from XML using regular expression in VBA, by matching start opening and closing tag of an element, but I am not getting anything. I can use .+?<\/foo> in Notepad++, but its not working in VBA with Microsoft…
farooq
  • 170
  • 1
  • 1
  • 8
3
votes
4 answers

How do I get the length of the first line in a multi line string?

I have a multiline string generated by a script that creates ASCII art from an image. It creates a line, then adds \r and keeps going. How do I get the length of the first line, or before it says \r without using regex? Preferably the code is fairly…
Luke Taylor
  • 8,631
  • 8
  • 54
  • 92
3
votes
1 answer

Constructing a multiline string from array in python

I am currently working on a script which sends out the list of defaulters to a distro. I have the values in python list like this ['person1@email.com','person2@email.com','person3@email.com'] I need to form a multiline string from the above array…
Krish
  • 467
  • 1
  • 6
  • 16
3
votes
2 answers

Postgis reorder mixed up linestring chunks / max_segment_length(linestring)?

I imported ~1000 paths from somewhere into my postgis database to a linestring field. (EDIT) My table is like this +---------+---------------+------------------+ | id(int) | name(varchar) | path(LINESTRING)…
jperelli
  • 6,988
  • 5
  • 50
  • 85
2
votes
1 answer

Multi-Line Strings As Parameters

How can you pass multi-line strings (with spaces and tabs) as a parameter to an express server? Express.js code that accepts the parameter : app.get('/:prompt', async (req, res) => { const prompt = req.query.prompt; // Do something with the…
2
votes
1 answer

Windows Batch File, build multiline string literal across multiple lines

I have a batch file (called single-line.bat) with the following contents python -c "import math; print(math.hypot(3, 4))" I want the argument to python to be a multiline string that is constructed across multiple lines of the batch file. That is,…
Gus
  • 4,375
  • 5
  • 31
  • 50
2
votes
1 answer

Are multi-line strings allowed in XML using karate framework?

I have 2 files as: The first is text file contains multiple lines: And def txtContent = read(path-to-text-file) txtContent is multiple-line string, as example: 1a 2b 3c The second is xml file contain request template:
2
votes
0 answers

Python: Multiline strings with inline variables

I'm trying to use inline variables in the multiline string to form a GraphQL query. query = '''query { gapc { search_gapc_parts(part_number: "xxx", query: "XXX" limit: 1) { items { gapc_attributes { name value …
2
votes
2 answers

how to pass a multi line json string in map in argo workflows

I am working on creating a argo workflow with a loop withParam for map variable. In this map I want to use multi line json string. Is there any way to use it? Here is the way am using policy as multi line string but it is not working apiVersion:…
monu
  • 23
  • 1
  • 8
2
votes
2 answers

SQL Server - Linestring from Points Geometry

Is there an easy way to create a LineString out of a column of Points in SQL? For example I have a query: SELECT Geom FROM api.Table WHERE WellId = 'XYZ1234' ORDER BY MeasuredDepth ASC; that returns 186 points as…
steven hurwitt
  • 183
  • 2
  • 15
2
votes
2 answers

How to check if multilinestring really is multilinestring?

I have a huge database with a road network, and the geometry type is MULTILINESTRING. I would like to filter out the MULTILINESTRINGS with topological errors. Both the lines on the left side and on the right side are one-one record, made of two…
588chm
  • 215
  • 1
  • 8
1 2
3
15 16