Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 2.7-M0
-
Component/s: vpf plugin
-
Labels:None
Description
Currently VPF uses a type name that is not as descriptive as it could be. The FACC codes that are available in the features provide a more clear description of what the feature type contains.
Solution:
Use the FACC code and lookup an appropriate name for the feature type name.
>Based on requests from my users I've made some changes to the
>VPFFeatureType to base the feature type name on the facc code of the
>feature type. The updated source file and supporting properties file
>for this are attached. Everything else appears to work unchanged.
>
>This represents a minor code change but a pretty major change in how VPF
>works so I wanted to run it by you guys before checking it into the
>geotools repository. Here's how I changed the feature type name:
>
> - Base the feature type name on the name of the facc code using a
>property file lookup to determine the "name"
>
> - Surround the auto-attached Area/Line/Point/Text with parenthesis
>
> - Don't capitalize the type name or replace spaces and punctuation with
>"_". This one I'm particularly worried about as this may have been done
>due to some other limitation that I'm not aware of.
>
The fact that this issue exists at all shows the distinct difference between VPF users and other GIS users. If the data in a VPF dataset is considered to be VPF data, then referring to the feature types by their FACC code is obviously the way to go. However, if it is just data, that just so happens to be stored in VPF, the FACC code is basically meaningless. While AP030 or GB005 means something to a VPF user, it is just a random five character sequence for someone who is not familiar with VPF.
From the perspective of my users, the data is only useful if someone can figure out what it is. Picture a scenario where a user looking for road layers examines the capabilities of a WFS that just so happens to be serving VPF data. The user needs a way to discover which layer is likely to be the one they want and a FACC code does not help here.
For this reason, I am reluctant to completely abandon the original mechanism. Since I understand the value of the FACC codes to your users, I recommend allowing both mechanisms and using a configuration item to determine which will be used.
By the way, the capitalization and underscore replacements were solely to facilitate the use of SQL to access them. If only capital letters and underscores are used, the strings do not need to be quoted. This behavior is not mandatory.