What is the difference between LineString and Multipoint in GeoJSON

What is the difference between LineString and MultiPoint in GeoJSON?

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

I plan some things in GeoJSON, and if something basic like this is confusing, I'm in trouble.

+8
source share
2 answers

A linear line is a polyline or from Wikipedia a “curve defined by a sequence of points”. Therefore, if you like to make a track or route based on latitude and longitude for the map application - use LineString.

A MultiPoint is simply a collection of points with no lines between them. Tell a group of people. Therefore, the use cases are very different.

+11
source

The LineString specification requires at least two items.

In addition, there is only a difference in intention. LineString defines a line through dots in the given order. MultiPoint defines a finite set of points.

+2
source

Source: https://habr.com/ru/post/1247326/


All Articles