Creating a geopointset
A geopointset can be created with the
create_geo_set() function, which takes any number of geopoints variables as arguments, or none. Both geopoints and geopointset variables can be concatenated with a geopointset.
Accessing geopintset elements
count() function returns the number of geopoints variables contained by the set.
Use the indexing operator
 to access the geopoints variables contained in a set. For example:
Operations on geopointsets
As a geopointset is simply a container for geopoints variables, most operations on a geopointset are performed on each of its component geopoints. For example, the following line of code with return a new geopointset where each geopoints variable has had the
cos() function applied to its values:
Operations between geopointsets and numbers are performed on each geopoints, e.g.
Operations can be performed between geopointsets and geopointsets, or geopointsets and fieldsets, as long as they both contain the same number of items, or they contain exactly one item. Otherwise, if they contain a different number of items, the computation will fail.
For example, if
gset_5b each contain 5 geopoints variables, the following code will add each pair of geopoints variables, giving a resulting geopointset of size 5:
gset_1c contains a single geopoints variable, the following code will produce a geopointset with 5 items, the result of adding
gset_1c to each item in
Likewise, geopointset/fieldset operations work the same way:
Filtering a geopointset
Individual geopoints variables can contain meta-data - see Geopoints for details. To select only those geopoints variables with given meta-data, use the
filter() function as described in Geopointset Functions.
The Geopointset file format
The format for a geopointset file is very simply a header followed by a contatenation of geopoints files - see Geopoints for details of the format. The overall header is this:
The subsequent geopoints structures should all share the same format as each other. Here's an example with 3 geopoints files inside the set: