Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between LineString and Multipoint in GeoJSON

Tags:

gis

geojson

What's the difference between LineString and MultiPoint in GeoJSON?

To me the examples given are identical. http://geojson.org/geojson-spec.html#id3.

I'm planning some things in GeoJSON and if something as basic as this is confusing I'm in trouble.

like image 528
Greg Avatar asked Apr 18 '16 03:04

Greg


People also ask

What is the difference between Linestring and Multilinestring?

The interior of a linestring is the connected path that lies between the endpoints, unless it is closed, in which case the interior is continuous. A multilinestring is a collection of linestrings. Multilinestrings are simple if they only intersect at the endpoints of the linestring elements.

How does linestring work?

A LINESTRING is a collection of Points that are "strung together" into one geometric object. A LineString can be used to represent an arbitrary curve, such as a Bézier curve. In practice, this means that LineStrings are useful for representing real-world objects such as roads and rivers.

What is multiline in gis?

Multi-line features are linear features that represent a set of parallel lines. They are not capable of representing an arbitrary set of lines such as can be done with GIS systems.


2 Answers

A LineString is a Polyline or from Wikipedia "a curve specified by the sequence of points". So if you like to do a track or route based on latitude and longitude for a map application - use LineString.

MultiPoint is simply a collection of points without lines between them. Say a group of people. So the use cases are very different.

like image 141
TomSjogren Avatar answered Oct 13 '22 00:10

TomSjogren


Specification of LineString requires at least two positions.

Other than that there is only a difference in intent. LineString defines a line through the points in given order. MultiPoint defines a finite collection of points.

like image 40
zch Avatar answered Oct 12 '22 22:10

zch