Ejemplo n.º 1
0
    def by_layer(self, layer):
        """Return the chosen Link using the layer

        :param layer: the number of layer
        :type layer: int
        """
        c_fieldinfo = libvect.Vect_get_field(self.c_mapinfo, layer)
        return Link(c_fieldinfo=c_fieldinfo) if c_fieldinfo else None
Ejemplo n.º 2
0
 def by_number(self, number):
     c_fieldinfo = libvect.Vect_get_field(self.c_mapinfo, number)
     return Link(c_fieldinfo=c_fieldinfo)