Previous topic

mipylib.geolib.milayer

Next topic

wContour

This Page

MILayer

class mipylib.geolib.milayer.MILayer

Map layer

Parameters:
  • layer – (MapLayer) MapLayer object.
  • shapetype – (ShapeTypes) Shape type [‘point’ | ‘line’ | ‘polygon’]
cellvalue(self, fieldname, shapeindex)

Get attribute table cell value.

Parameters:
  • fieldname – (string) Field name.
  • shapeindex – (int) Shape index.
Returns:

The value in attribute table identified by field name and shape index.

setcellvalue(self, fieldname, shapeindex, value)

Set cell value in attribute table.

Parameters:
  • fieldname – (string) Field name.
  • shapeindex – (int) Shape index.
  • value – (object) Cell value to be asigned.