FalconView saves drawing information for Shapefiles in a .prf file, which is saved with the other Shapefile files. This page describes the format of a .prf file. Here are sample .prf file contents:
ShpPrefFile Color, 0 ColorRGB, 255 0 0 Width, 2 Fill, 0 LineStyle, 0 Diameter, 8 Background, Y FilterMode, N UseIcon, N NearLineMode, Y LabelCode, 15 IconText, red dot2 TooltipField1, TooltipField2, StatbarField1, StatbarField2, FilterFieldName1, FilterFieldName2, FilterField1Text1, FilterField1Text2, FilterField2Text1, FilterField2Text2, FilterFieldOp, O FilterField, EndOfFile
The lines in a .prf file are as follows. Each line ends with CRLF / 0x0d0a. FalconView will use a default value for omitted lines. Each period below represents a single character.
| Line Format | Notes and Comments |
| ShpPrefFile | |
| Color, ... | Unused |
| ColorRGB, ......... | Example above is pure red |
| Width, ... | Line width |
| Fill, ... | Fill types defined here |
| LineStyle, ... | PS_SOLID, PS_DASH, PS_DOT, etc. |
| Diameter, ... | |
| Background, . | Y or N |
| FilterMode, . | L (SHP_FILTER_LIST), R (SHP_FILTER_RANGE), or N (SHP_FILTER_NONE). May be UseFilter in some older versions of FalconView? |
| UseIcon, . | Y or N |
| NearLineMode, . | Y or N |
| LabelCode, <<variable length>> | |
| IconText, <<variable length>> | |
| TooltipField1, <<variable length>> | |
| TooltipField2, <<variable length>> | |
| StatbarField1, <<variable length>> | |
| StatbarField2, <<variable length>> | |
| FilterFieldName1, <<variable length>> | |
| FilterFieldName2, <<variable length>> | |
| FilterField1Text1, <<variable length>> | |
| FilterField1Text2, <<variable length>> | |
| FilterField2Text1, <<variable length>> | |
| FilterField2Text2, <<variable length>> | |
| FilterFieldOp, . | A (SHP_FILTER_OP_AND) or O (SHP_FILTER_OP_OR) |
| FilterField, <<variable length>> | |
| FilterData, 0........................ | 0|width|fill|pen|diameter|background|selected|use_icon|R|G|B (may have multiple entries) |
| EndOfFile |
The code that reads and writes these files in FalconView is here. This file also reads PRF files (and converts them to SLD files);
