ReportShapeLayer class
A set of regions drawn as one map.
Constructors
-
ReportShapeLayer(List<
ReportShapeFeature> features, {List<String> ? fields}) - ReportShapeLayer API.
Properties
-
features
→ List<
ReportShapeFeature> -
features API.
final
-
fields
→ List<
String> -
Attribute columns stored with an imported file, in file order.
Empty for the bundled world atlas and for layers saved before
columns were kept.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode(
) → Uint8List -
Compact bytes (
QMAP) stored undershapes/in a.qrep. -
find(
String raw) → ReportShapeFeature? -
Feature whose key or alias equals
raw(case and surrounding space ignored), or null. -
indexOf(
String raw) → int? - Index of find, or null.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
Uint8List bytes) → ReportShapeLayer - Reads encode.
-
parse(
Uint8List bytes, {Uint8List? attributes, String? keyField, String? nameField}) → ReportShapeLayer -
Shapefile (
.shp), GeoJSON, or encode bytes.attributesis the.dbfbeside a shapefile.keyFieldnames the attribute used as ReportShapeFeature.key; without it a code or name column is chosen. -
parseGeoJson(
String text, {String? keyField, String? nameField}) → ReportShapeLayer -
GeoJSON
FeatureCollection,Feature, orPolygon. -
parseShapefile(
Uint8List shp, {Uint8List? attributes, String? keyField, String? nameField}) → ReportShapeLayer -
ESRI polygon shapefile.
attributessupplies the region key. -
read(
Uint8List bytes, {Uint8List? attributes, String? keyField, String? nameField}) → ReportShapeFile - Reads a shape file and names the attribute that became each region's key.