Questions tagged [multilinestring]

236 questions
0
votes
1 answer

How to loop over a Geometry column data in MySQL / PostgreSQL?

I have a column named schedule with data type MULTILINESTRING. Almost cases, this column contains any 1 LINESTRING, so I fetch data easily by script ST_GeometryN(schedule, 1) and then I check conditions from fetched data. But if this column…
Thanh Dao
  • 1,218
  • 2
  • 16
  • 43
0
votes
2 answers

How to assign multiple lines to a string variable in Matlab

I have a few lines of text like this: abc def ghi and I want to assign these multiple lines to a Matlab variable for further processing. I am copying these from very large text file and want to process it in Matlab Instead of saving the text into…
User1551892
  • 3,236
  • 8
  • 32
  • 52
0
votes
1 answer

Optimize python code used for LineStrings intersection

I am trying to find the intersections of multiple LineStrings that are in a list. Do you know how I could optimize this? I'm not sure on how to make it go faster(provided a small example): from shapely.geometry import LineString l1 =…
Barkz
  • 193
  • 1
  • 10
0
votes
1 answer

Sort GeoPandas by Name Of Line And By Geographic Location

I have a geopandas dataframe created from a shapefile. I would like to sort my dataframe according to the column: "name" AND the line chunks should also be sorted by geographic location, such that all nearby chunks which have the same name are…
user7086216
0
votes
0 answers

Do multiline template strings in JavaScript work only in alerts and console logs?

var z = `line next line`; alert(z); /* OUTPUT line next line */ document.getElementById("demo").innerHTML = z; /* OUTPUT line next line */ I am using Firefox. Am I missing something here? Or is this supposed to work this way? I have referred to…
0
votes
1 answer

Is there an alternative to multiline text boxes which allow larger inputs?

I am currently using a multiline textbox for my users to submit very large strings of data to me. I noticed that multiline text boxes have a maximum capacity of around 4 billion characters or memory that's available (whichever is smaller.) The…
justinpees
  • 420
  • 5
  • 20
0
votes
1 answer

Python: How to insert a line in a multi-line string?

I'm trying to make a simple website demo and I have some trouble editing the html using python. The following is the string I defined to store the html (not complete because it's too long). I want to write a function that will throw a error under a…
Kai
  • 63
  • 2
  • 4
0
votes
0 answers

OpenLayers 3 - use MultiLineString in geometryFunction of Custom Draw Interaction

I'm working with the OL3 example DrawShapes. There is a "star" as example for a custom draw interaction with a user defined geometry function looking like draw = new ol.interaction.Draw({ source: source, type: 'Circle', …
Raphael H.
  • 55
  • 2
  • 7
0
votes
1 answer

Split large string

I have a long text which needs to be converted to small strings so I can include it to an AutoIt script. If I include multi-line text it shows error unterminated string. So I should have: "numbercharswillbe10" &_ "othernumbersofcharwillbe10" &_…
Sir Jack
  • 227
  • 3
  • 15
0
votes
2 answers

ST_asGeoJson for Multilinestring in php for leaflet

I have a php code which runs a query to convert the Multilinestring geom field from the database to geojson data. This code works fine for multipolygon and point geom data but there is some error while parsing a multilinestring geom field. …
random_geek
  • 345
  • 2
  • 8
  • 23
0
votes
1 answer

How to convert a multi line string input from an textbox (in a userform) to a single line input string (vba word)

I have created a user form on VBA (word) where the user inputs a body of multi line text into TextBox1. I wish to convert this into a single line string. I have tried the following: 'Replace method TextBox1.Text = TextBox1.Text.Replace what:=vbFl…
Donfernando
  • 5
  • 1
  • 4
0
votes
2 answers

formatting string SyntaxError

I have this code in python: "{0}.currentTime += 1;".format(hairSyst) where hairSyst is a string defined earlier. I don't understand why I am getting a syntax error. My aim is to set an expression inside maya, and the expression is a bit long, I…
user3809642
0
votes
0 answers

Is there an alternative to template literals in Internet Explorer?

I have a bunch of strings which consist of code concatenated that I need to put in a single JavaScript variable. `template literals` was clearly the way to go, and it worked fine. But IE doesn't support it. Is there any way to avoid using `template…
0
votes
1 answer

Howto pass a mixed string from php through a pipe to a bash script

I'm searching for a possibility to send a mixed PHP multline string with the help of proc_open (exec, passthru or whatever) via a pipe to a bash script. Finally, within this script I want to grab the mixed multiline string and store it into a…
playmobox
  • 57
  • 7
0
votes
1 answer

How to scrape end of line in grep?

I have a file that contains a sequence already broken into lines, something like…
user2373198
  • 147
  • 10