MobilityDB 1.3
Loading...
Searching...
No Matches
examples Directory Reference

Files

file  01_hello_world.c
 A simple program that uses the MEOS library for creating some temporal geometry point values and output them in MF-JSON format.
 
file  01_hello_world_geodetic.c
 A simple program that uses the MEOS library for creating some temporal geography point values and output them in MF-JSON format.
 
file  02_ais_read.c
 A simple program that reads AIS data from a CSV file and outputs a few of these records converted into temporal values.
 
file  03_ais_assemble.c
 A simple program that reads AIS data from a CSV file, constructs trips from these records, and outputs for each trip the MMSI, the number of instants, and the distance travelled.
 
file  03_berlinmod_assemble.c
 A simple program that reads from a CSV file synthetic trip data in Brussels generated by the MobilityDB-BerlinMOD generator, https://github.com/MobilityDB/MobilityDB-BerlinMOD assembles the trips from the individual observations, and write them in a CSV file named "berlinmod_trips_new.csv" which corresponds to the file "berlinmod_trips.csv" in the data directory.
 
file  04_ais_store.c
 A simple program that reads AIS data from a CSV file, converts them into temporal values, and stores them in MobilityDB.
 
file  04_ais_stream_db.c
 A simple program that reads AIS data from a CSV file, accumulates the observations in main memory and send the temporal values to a MobilityDB database when they reach a given number of instants in order to free the memory and ingest the newest observations.
 
file  04_ais_stream_file.c
 A simple program that reads AIS data from a CSV file, accumulates the observations in main memory and send the temporal values to an output file when they reach a given number of instants in order to free the memory and ingest the newest observations.
 
file  05_berlinmod_disassemble.c
 A simple program that reads from a CSV file synthetic trip data in Brussels generated by the MobilityDB-BerlinMOD generator, https://github.com/MobilityDB/MobilityDB-BerlinMOD disassembles the trips into individual observations, and write them in a CSV file named "berlinmod_instants.csv" ordered by timestamp.
 
file  06_berlinmod_clip.c
 A simple program that reads from a CSV file synthetic trip data in Brussels generated by the MobilityDB-BerlinMOD generator https://github.com/MobilityDB/MobilityDB-BerlinMOD and generate statics about the Brussels communes (or municipalities) traversed by the trips.
 
file  07_berlinmod_tile.c
 A simple program that reads from a CSV file synthetic trip data in Brussels generated by the MobilityDB-BerlinMOD generator https://github.com/MobilityDB/MobilityDB-BerlinMOD splits the trips and the speed of these trips by tiles, and computes aggregate values of the count, duration, and distance of the tiles.
 
file  08_berlinmod_simplify.c
 
file  09_berlinmod_aggregate.c
 A simple program that reads from a CSV file synthetic trip data in Brussels generated by the MobilityDB-BerlinMOD generator, https://github.com/MobilityDB/MobilityDB-BerlinMOD and performs a temporal count aggregation.
 
file  ais_assemble_full.c
 A simple program that reads AIS data from a CSV file containing one full day of observations provided by the Danish Maritime Authority in https://web.ais.dk/aisdata/, constructs for each ship temporal values for the trip and the SOG, and outputs for each ship the MMSI, the number of records and instants used for contruct the temporal values, the distance travelled and the time-weighted average of the SOG.
 
file  ais_expand.c
 A simple program that reads AIS data from a CSV file, constructs trips from these records, and outputs for each trip the MMSI, the number of instants, and the distance travelled.
 
file  ais_expand_full.c
 A simple program that reads AIS data from a CSV file containing one full day of observations provided by the Danish Maritime Authority in https://web.ais.dk/aisdata/, constructs for each ship temporal values for the trip and the SOG, and outputs for each ship the MMSI, the number of records and instants used for contruct the temporal values, the distance travelled and the time-weighted average of the SOG.
 
file  ais_generalize.c
 A program that reads AIS data from the file ais_trips_longest.csv containing the temporal values for trip and SOG for the longest 10 trips of ships extracted from one day of observations (aisdk-2025-03-01.csv) provided by the Danish Maritime Authority in https://web.ais.dk/aisdata/, and outputs the size in KB and number of instants for various simplification algorithms.
 
file  ais_transform.c
 A simple program that transform an AIS trip with MMSI 205718000 obtained from the file aisdk-2023-08-01.csv provided by the Danish Maritime Authority in https://web.ais.dk/aisdata/, and transform a few points from SRID 4326 to SRID 25832.
 
file  ais_transform_full.c
 A simple program that reads AIS data from a CSV file containing one full day of observations provided by the Danish Maritime Authority in https://web.ais.dk/aisdata/, and transform it from SRID 4326 to SRID 25832 writing the result in an output CSV file.
 
file  floatspanset_agg.c
 A simple program that reads float spanset values from a CSV file and aggregates them into a given number of groups.
 
file  geo_inout.c
 A simple program that uses the MEOS library for input and output geometry values.
 
file  geom_npoint.c
 A simple program that get the SRID of the geometries stored in the file ways.csv that has the content of the PostgreSQL table ways defined as follows.
 
file  geos_clip.c
 A program that shows the connection of MEOS and GEOS.
 
file  get_srid_ways.c
 A simple program that get the SRID of the geometries stored in the file ways.csv that has the content of the PostgreSQL table ways defined as follows.
 
file  intspan_agg.c
 A simple program that reads integer span values from a CSV file and aggregates them into a single spanset value.
 
file  meos_proj.c
 A simple program that shows the connection of MEOS and PROJ.
 
file  read_spatial_ref_sys.c
 A simple program that reads the spatial_ref_sys.csv file obtained by exporting the PostGIS spatial_ref_sys table in CSV format.
 
file  route_exists.c
 A simple program that get the SRID of the geometries stored in the file ways.csv that has the content of the PostgreSQL table ways defined as follows.
 
file  route_geom.c
 A simple program that get the SRID of the geometries stored in the file ways.csv that has the content of the PostgreSQL table ways defined as follows.
 
file  route_length.c
 A simple program that get the SRID of the geometries stored in the file ways.csv that has the content of the PostgreSQL table ways defined as follows.
 
file  rtree_example.c
 A simple program to use an RTree index for searching.
 
file  set_agg.c
 A simple program that illustrates the set_union aggregate function with integer values.
 
file  spanset_conv.c
 A simple program that creates integer and float spanset values and converts them between float and integer spansets.
 
file  stbox_tile.c
 A simple program that generates a given number of tgeompoint instants, assembles the instants into a sequence at the end of the generation process, and outputs the number of instants and the distance travelled.
 
file  tbox_tile.c
 A simple program that generates a given number of tgeompoint instants, assembles the instants into a sequence at the end of the generation process, and outputs the number of instants and the distance travelled.
 
file  textset_group_agg.c
 A simple program that reads from a CSV file a set of records containing text sets, group them by the key % 10, and at the end apply a union aggregate to the groups.
 
file  textset_unnest.c
 A simple program that reads from a CSV file a set of records containing text sets, group them by the key % 10, and at the end apply a union aggregate to the groups.
 
file  tfloat_assemble.c
 A simple program that generates a given number of tfloat instants, accumulates each generated instants into an array, and at the end assembles the sequence from the input instants and outputs the number of instants and the last value of the sequence.
 
file  tfloat_expand.c
 A simple program that generates a given number of tfloat instants, appends each generated instant into an output sequence, automatically expanding the sequence if no more free space is available, and at the end outputs the number of instants and the time-weighted average.
 
file  tfloat_tile.c
 A simple program that applies multidimensional tiling to a temporal float according to value and/or time bins.
 
file  tpoint_assemble.c
 A simple program that generates a given number of tgeompoint instants, assembles the instants into a sequence at the end of the generation process, and outputs the number of instants and the distance travelled.
 
file  tpoint_expand.c
 A simple program that generates a given number of tpoint instants, appends the instant into a sequence at each generation, and outputs the number of instants and the distance travelled at the end.
 
file  tpoint_tile.c
 A simple program that applies multidimensional tiling to a temporal point according to value and/or time bins.
 
file  tpointseq_make_coords.c
 A simple program that assembles temporal points from temporal floats, one for each coordinate dimension.
 
file  ttext_assemble.c
 A simple program that generates a given number of ttext instants, appends the instant into a sequence at each generation, and outputs the number of instants and the last value of the sequence at the end.
 
file  ttext_expand.c
 A simple program that generates a given number of ttext instants, appends the instant into a sequence set where each sequence of the sequence set has a fixed number of instants defined by a compiler constant.