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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With