libsim
Versione 7.1.9
|
This module defines objects describing georeferenced sparse points possibly with topology and projection information. Continua...
Tipi di dato | |
type | georef_coord |
Derive type defining a single georeferenced point, either in geodetic or in projected coordinates. Continua... | |
type | georef_coord_array |
Derived type defining a one-dimensional array of georeferenced points with an associated topology (isolated point, arc, polygon, group of points), possibly broken into parts and with an associated georeferenced coordinate system. Continua... | |
interface | delete |
Detructors for the two classes. Continua... | |
interface | c_e |
Check missing value. Continua... | |
interface | getval |
Methods for returning the value of object members. Continua... | |
interface | operator(==) |
Logical equality operator. Continua... | |
interface | operator(/=) |
Logical inequality operator. Continua... | |
interface | operator(>=) |
Logical greater-equal operator. Continua... | |
interface | operator(<=) |
Logical less-equal operator. Continua... | |
interface | import |
Import an array of georef_coord_array objects from a file in ESRI/Shapefile format. Continua... | |
interface | export |
Export an array of georef_coord_array objects to a file in ESRI/Shapefile format. Continua... | |
interface | read_unit |
Read a single georef_coord object or an array of georef_coord objects from a Fortran FORMATTED or UNFORMATTED file. Continua... | |
interface | write_unit |
Write a single georef_coord object or an array of georef_coord objects to a Fortran FORMATTED or UNFORMATTED file. Continua... | |
interface | inside |
Determine whether a point lies inside a polygon or a rectangle. Continua... | |
interface | dist |
Compute the distance in m between two points. Continua... | |
type | arrayof_georef_coord_array |
Derived type defining a dynamically extensible array of TYPE(georef_coord_array) elements. Continua... | |
interface | insert |
Method for inserting elements of the array at a desired position. Continua... | |
interface | append |
Quick method to append an element to the array. Continua... | |
interface | remove |
Method for removing elements of the array at a desired position. Continua... | |
interface | packarray |
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. Continua... | |
Funzioni/Subroutine | |
subroutine, private | arrayof_georef_coord_array_insert_array (this, content, nelem, pos) |
Method for inserting a number of elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_georef_coord_array_insert (this, content, pos) |
Method for inserting an element of the array at a desired position. Continua... | |
integer function, private | arrayof_georef_coord_array_append (this, content) |
Quick method to append an element to the array. Continua... | |
subroutine, private | arrayof_georef_coord_array_remove (this, nelem, pos, nodestroy) |
Method for removing elements of the array at a desired position. Continua... | |
subroutine, private | arrayof_georef_coord_array_delete (this, nodestroy, nodealloc) |
Destructor for finalizing an array object. Continua... | |
subroutine, private | arrayof_georef_coord_array_packarray (this) |
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. Continua... | |
type(georef_coord) function, public | georef_coord_new (x, y) |
Construct a georef_coord object with the optional parameters provided. Continua... | |
elemental subroutine | georef_coord_getval (this, x, y) |
Query a georef_coord object. Continua... | |
elemental subroutine | georef_coord_proj_getval (this, proj, x, y, lon, lat) |
Query a georef_coord object associating a geographical projection to it. Continua... | |
subroutine | georef_coord_read_unit (this, unit) |
Legge da un'unità di file il contenuto dell'oggetto this. Continua... | |
subroutine | georef_coord_vect_read_unit (this, unit) |
Legge da un'unità di file il contenuto dell'oggetto this. Continua... | |
subroutine | georef_coord_write_unit (this, unit) |
Scrive su un'unità di file il contenuto dell'oggetto this. Continua... | |
subroutine | georef_coord_vect_write_unit (this, unit) |
Scrive su un'unità di file il contenuto dell'oggetto this. Continua... | |
double precision function | georef_coord_dist (this, that) |
Restituisce la distanza in m tra 2 oggetti georef_coord. Continua... | |
logical function | georef_coord_inside_rectang (this, coordmin, coordmax) |
Determines whether the point this lies inside a specified rectangle. Continua... | |
type(georef_coord_array) function, public | georef_coord_array_new (x, y, topo, proj) |
Construct a georef_coord_array object with the optional parameters provided. Continua... | |
subroutine | georef_coord_array_getval (this, x, y, topo, proj) |
Query a georef_coord_array object. Continua... | |
subroutine | georef_coord_array_compute_bbox (this) |
Compute the bounding box of each shape in georef_coord_array object. Continua... | |
subroutine | arrayof_georef_coord_array_import (this, shpfile) |
Import an array of georef_coord_array objects from a file in ESRI/Shapefile format. Continua... | |
subroutine | arrayof_georef_coord_array_export (this, shpfile) |
Export an array of georef_coord_array objects to a file in ESRI/Shapefile format. Continua... | |
logical function | georef_coord_inside (this, poly) |
Determines whether the point this lies inside the polygon poly. Continua... | |
Variabili | |
type(georef_coord), parameter, public | georef_coord_miss =georef_coord(dmiss, dmiss) |
Missing value for georef_coord. Continua... | |
integer, parameter, public | georef_coord_array_point = 1 |
Topology for georef_coord_array (from shapelib): isolated point. Continua... | |
integer, parameter, public | georef_coord_array_arc = 3 |
Topology for georef_coord_array (from shapelib): arc (multiple arcs unsupported) Continua... | |
integer, parameter, public | georef_coord_array_polygon = 5 |
Topology for georef_coord_array (from shapelib): polygon (necessarily closed, multiple polygons unsupported) Continua... | |
integer, parameter, public | georef_coord_array_multipoint = 8 |
Topology for georef_coord_array (from shapelib): group of points. Continua... | |
This module defines objects describing georeferenced sparse points possibly with topology and projection information.
This module defines two classes, georef_coord, which represents a single georeferenced point on the Earth, and georef_coord_array which defines a set of points with a topological relation.
Both classes have PRIVATE members, so that they cannot be manipulated directly, but only through the proper methods.
It is also possible to dafine a dynamically extendible array of georef_coord_array objects, of type arrayof_georef_coord_array, suitable for importing/exporting data from/to a shapefile.