Class TGeoFilter

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGeoFilter = class(TObject)

Description

Classes for handling of data filtering

Note: tri-state integer in properties meaning: 0 - must not be 1 - must be 2 - is ignored

Hierarchy

Overview

Methods

Public constructor create;
Public destructor Destroy; override;
Public procedure LoadDefault;
Public procedure LoadFromFile(value: string);
Public procedure SaveToFile(value: string);
Public procedure LoadFromName(value: string);
Public procedure SaveToName(value: string);
Public procedure LoadFromGUI;
Public procedure SaveToGUI;
Public function FilterGeo(const value: TGeo): boolean;
Public function FilterWpt(const value: TWpt): boolean;

Properties

Public property TypeNames: Tstringlist read FTypeNames;
Public property Container: TStringlist read FContainer;
Public property Terrain: TStringlist read FTerrain;
Public property Difficulty: TStringlist read FDifficulty;
Public property WIgnoreNames: TStringList read FWIgnoreNames;
Public property WptNames: Tstringlist read FWptNames;
Public property PolyName: tstringlist read fpolyname;
Public property RouteName: tstringlist read froutename;
Public property PointsName: tstringlist read fpointsname;
Public property TagHave: tstringlist read ftaghave;
Public property TagNotHave: tstringlist read ftagnothave;
Public property FilterFile: string read FFilterFile;
Public property FilterName: string read FFilterName;
Public property WaypointHandling: integer read FWaypointHandling write FWaypointHandling;
Public property Archived: integer read farchived write farchived;
Public property Own: integer read fown write fown;
Public property HaveWaypoint: integer read fwaypoint write fwaypoint;
Public property Disabled: integer read fdisabled write fdisabled;
Public property IsFound: integer read ffound write ffound;
Public property FamilyIndex: integer read FFamilyIndex write FFamilyIndex;
Public property FamilyPrefix: string read FFamilyPrefix write FFamilyPrefix;
Public property TypeKind: integer read ftypekind write ftypekind;
Public property Created: integer read fcreated write fcreated;
Public property CreatedDate: tdatetime read fcreateddate write fcreateddate;
Public property Updated: integer read fupdated write fupdated;
Public property UpdatedDate: tdatetime read fupdateddate write fupdateddate;
Public property LastFound: integer read flastfound write flastfound;
Public property LastFoundDate: tdatetime read flastfounddate write flastfounddate;
Public property Found: integer read ffoundd write ffoundd;
Public property FoundDate: tdatetime read ffoundddate write ffoundddate;
Public property DCreated: integer read fdcreated write fdcreated;
Public property DCreatedDays: integer read fdcreateddays write fdcreateddays;
Public property DUpdated: integer read fdupdated write fdupdated;
Public property DUpdatedDays: integer read fdupdateddays write fdupdateddays;
Public property DLastFound: integer read fdlastfound write fdlastfound;
Public property DLastFoundDays: integer read fdlastfounddays write fdlastfounddays;
Public property DFound: integer read fdfound write fdfound;
Public property DFoundDays: integer read fdfounddays write fdfounddays;
Public property Distance: integer read fdistance write fdistance;
Public property DistanceValue: double read fdistancevalue write fdistancevalue;
Public property EmptyCoord: integer read femptycoord write femptycoord;
Public property InCountry: integer read fincountry write fincountry;
Public property Country: string read fcountry write fcountry;
Public property InCountryState: integer read finstate write finstate;
Public property CountryState: string read fcountrystate write fcountrystate;
Public property WImported: integer read fwimported write fwimported;
Public property WEmptyCoord: integer read fwemptycoord write fwemptycoord;
Public property WPolyCoord: boolean read fwpolycoord write fwpolycoord;
Public property WUpdated: integer read fwupdated write fwupdated;
Public property WUpdatedDate: TDateTime read fwupdateddate write fwupdateddate;
Public property WDUpdated: integer read fwdupdated write fwdupdated;
Public property WDUpdatedDays: integer read fwdupdateddays write fwdupdateddays;
Public property HaveListing: integer read fhavelisting write fhavelisting;
Public property HaveComment: integer read fhavecomment write fhavecomment;
Public property HaveAttach: integer read fhaveattach write fhaveattach;
Public property HaveFinal: integer read fhavefinal write fhavefinal;
Public property WptKind: integer read Fwptkind write Fwptkind;
Public property WptImported: integer read fwptimported write fwptimported;
Public property WptEmptyCoord: integer read fwptemptycoord write fwptemptycoord;
Public property InPoly: integer read finpoly write finpoly;
Public property PolyCorrected: boolean read fpolycorrected write fpolycorrected;
Public property InRoute: integer read finroute write finroute;
Public property RouteCorrected: boolean read froutecorrected write froutecorrected;
Public property RouteDistance: double read froutedistance write froutedistance;
Public property InPoints: integer read finPoints write finPoints;
Public property PointsCorrected: boolean read fPointscorrected write fPointscorrected;
Public property PointsDistance: double read fPointsdistance write fPointsdistance;

Description

Methods

Public constructor create;

class constructor

Public destructor Destroy; override;

class destructor

Public procedure LoadDefault;

fill all properties by default values

Public procedure LoadFromFile(value: string);

load properties from the *.GGF file

Public procedure SaveToFile(value: string);

save properties to the *.GGF file

Public procedure LoadFromName(value: string);

load properties from the filter name. (Filter with this name must be stored in currect data directory)

Public procedure SaveToName(value: string);

save properties to the filter name. (Filter with this name will be stored in currect data directory)

Public procedure LoadFromGUI;

Load properties from the GUI filter dialog.

Public procedure SaveToGUI;

Save properties to the GUI filter dialog.

Public function FilterGeo(const value: TGeo): boolean;

Test if TGeo instance can pass current filter.

Public function FilterWpt(const value: TWpt): boolean;

Test if TWpt instance can pass current filter.

Properties

Public property TypeNames: Tstringlist read FTypeNames;

Set of point type names. Handling depending on TypeKind.

Public property Container: TStringlist read FContainer;

Set of allowed container sizes.

Public property Terrain: TStringlist read FTerrain;

Set of allowed terrains.

Public property Difficulty: TStringlist read FDifficulty;

Set of allowed difficulties.

Public property WIgnoreNames: TStringList read FWIgnoreNames;

Set of waypoint type names what will be ignored on the filter output.

Public property WptNames: Tstringlist read FWptNames;

Set of way type names. Handling depending on WptKind.

Public property PolyName: tstringlist read fpolyname;

Set of polygon names. (Just relative names without file extension.)

Public property RouteName: tstringlist read froutename;

Set of route names. (Just relative names without file extension.)

Public property PointsName: tstringlist read fpointsname;

Set of points_set names. (Just relative names without file extension.)

Public property TagHave: tstringlist read ftaghave;

Tags what point must have. (Each line is the pair category=value)

Public property TagNotHave: tstringlist read ftagnothave;

Tags what point must not have. (Each line is the pair category=value)

Public property FilterFile: string read FFilterFile;

filename of filter file after load

Public property FilterName: string read FFilterName;

name of filter after load

Public property WaypointHandling: integer read FWaypointHandling write FWaypointHandling;

how to handle points and waypoints. 0 - include points and waypoints 1 - waypoints only 2 - points only

Public property Archived: integer read farchived write farchived;

point is archived (tri-state)

Public property Own: integer read fown write fown;

point is your own (tri-state)

Public property HaveWaypoint: integer read fwaypoint write fwaypoint;

point have some waypoints (tri-state)

Public property Disabled: integer read fdisabled write fdisabled;

point is disabled (tri-state)

Public property IsFound: integer read ffound write ffound;

point is found by you (tri-state)

Public property FamilyIndex: integer read FFamilyIndex write FFamilyIndex;

Filter for point family. 0 - GC 1 - WM 2 - OC (OZ,...) 3 - other (prefix is defined by FamilyPrefix)

Public property FamilyPrefix: string read FFamilyPrefix write FFamilyPrefix;

While FamilyIndex is 3, then here is wanted point name prefix.

Public property TypeKind: integer read ftypekind write ftypekind;

point type is one of TypeNames (tri-state)

Public property Created: integer read fcreated write fcreated;

point created after... (tri-state)

Public property CreatedDate: tdatetime read fcreateddate write fcreateddate;

date for point created

Public property Updated: integer read fupdated write fupdated;

point updated after... (tri-state)

Public property UpdatedDate: tdatetime read fupdateddate write fupdateddate;

date for point updated

Public property LastFound: integer read flastfound write flastfound;

last-found date after... (tri-state)

Public property LastFoundDate: tdatetime read flastfounddate write flastfounddate;

date for point last-found

Public property Found: integer read ffoundd write ffoundd;

you found this point after... (tri-state)

Public property FoundDate: tdatetime read ffoundddate write ffoundddate;

date for point found

Public property DCreated: integer read fdcreated write fdcreated;

point is created within last days... (tri-state)

Public property DCreatedDays: integer read fdcreateddays write fdcreateddays;

days number for point created

Public property DUpdated: integer read fdupdated write fdupdated;

point is updated within last days... (tri-state)

Public property DUpdatedDays: integer read fdupdateddays write fdupdateddays;

days number for point updated

Public property DLastFound: integer read fdlastfound write fdlastfound;

point have last-found within last days... (tri-state)

Public property DLastFoundDays: integer read fdlastfounddays write fdlastfounddays;

days number for point last-found

Public property DFound: integer read fdfound write fdfound;

point is found by you within last days... (tri-state)

Public property DFoundDays: integer read fdfounddays write fdfounddays;

days number for found

Public property Distance: integer read fdistance write fdistance;

point is within distance from the reference point (tri-state)

Public property DistanceValue: double read fdistancevalue write fdistancevalue;

Distance from the reference point (in the km)

Public property EmptyCoord: integer read femptycoord write femptycoord;

point have empty coordinates (tri-state)

Public property InCountry: integer read fincountry write fincountry;

point is in the country (tri-state)

Public property Country: string read fcountry write fcountry;

Country name

Public property InCountryState: integer read finstate write finstate;

point is in the country-state (tri-state)

Public property CountryState: string read fcountrystate write fcountrystate;

Country-state name

Public property WImported: integer read fwimported write fwimported;

show imported waypoints (tri-state)

Public property WEmptyCoord: integer read fwemptycoord write fwemptycoord;

show waypoints with empty coordinates (tri-state)

Public property WPolyCoord: boolean read fwpolycoord write fwpolycoord;

show waypoints what matching polygon filter (tri-state)

Public property WUpdated: integer read fwupdated write fwupdated;

show waypoints what was updated after... (tri-state)

Public property WUpdatedDate: TDateTime read fwupdateddate write fwupdateddate;

Date value for WUpdated

Public property WDUpdated: integer read fwdupdated write fwdupdated;

show waypoints what was updated within last days... (tri-state)

Public property WDUpdatedDays: integer read fwdupdateddays write fwdupdateddays;

Days value for WDUpdated

Public property HaveListing: integer read fhavelisting write fhavelisting;

Point have a listing (tri-state)

Public property HaveComment: integer read fhavecomment write fhavecomment;

Point have a user comment (tri-state)

Public property HaveAttach: integer read fhaveattach write fhaveattach;

Point have an attachment (tri-state)

Public property HaveFinal: integer read fhavefinal write fhavefinal;

Point have an unempty final waypoint (tri-state)

Public property WptKind: integer read Fwptkind write Fwptkind;

Point must have at least one waypoint of WptNames type (tri-state)

Public property WptImported: integer read fwptimported write fwptimported;

Point have at least one imported waypoint (tri-state)

Public property WptEmptyCoord: integer read fwptemptycoord write fwptemptycoord;

Point have at least one waypoint with empty coordinates (tri-state)

Public property InPoly: integer read finpoly write finpoly;

Point is inside one of polygons specified at PolyName (tri-state)

Public property PolyCorrected: boolean read fpolycorrected write fpolycorrected;

Use corrected coordinates for polygon match

Public property InRoute: integer read finroute write finroute;

Point is near the one of routes specified at RouteName (tri-state)

Public property RouteCorrected: boolean read froutecorrected write froutecorrected;

Use corrected coordinates for route match

Public property RouteDistance: double read froutedistance write froutedistance;

Allowed point distance from the Route

Public property InPoints: integer read finPoints write finPoints;

Point is near the one of routes specified at RouteName (tri-state)

Public property PointsCorrected: boolean read fPointscorrected write fPointscorrected;

Use corrected coordinates for route match

Public property PointsDistance: double read fPointsdistance write fPointsdistance;

Allowed point distance from the Route


Generated by PasDoc 0.9.0 on 2018-03-13 21:07:27