to assign physicals names to the boundary elements of the mesh, a field (of type integer64) called "entity" should be present in the shape files. Then this parameter can be used to map the values of this field to physical names
""" compute the distance from a set of points given in an esri shape file (shp). Distances are evaluated on a sphere of radius 1."""
def__init__(self,shp_filename,dmax,tags=[]):
"""
arguments:
* shp_filename : string
path to the shp file. The shape file can be composed of points, lines or polygons. The projection used in the shape file should be longitude-latitude (in degrees).
* dmax : float
if the shp file contains lines (or polygons), points will be inserted on those lines every dmax interval
* tags : [int]
if there is 'entity' field of integer associated with the shp features, this argument can be used to keep only the features with given values of 'entity'