AddObject

Top  Previous  Next

This adds the first part of a polyline / region object to the dataset.

 

Syntax: AddObject(NumParts: integer; MultiPolygon: boolean; Attrib: string)

 

After calling this method you should call AddSection or AddSection2 as many times as stated in NumParts parameter.

 

If NumParts is 0, you will get an ungeocoded object in the dataset (works with point objects too). This is valid for all the formats, but we have seen some software not being able to deal correctly with SHP files with ungeocoded objects.

 

If you write to region output, have multiple outer rings and use GeoJSON, set MultiPolygon to true. For other situations, value do not matter.

 

NumParts can not be higher than 32000 for MIF and TAB formats.