#737 closed enhancement (fixed)
SHP provider: Allow ':' characters in property name
Reported by: | danstoica | Owned by: | Dan Stoica |
---|---|---|---|
Priority: | major | Milestone: | 3.6.0 |
Component: | SHP Provider | Version: | 3.5.0 |
Severity: | 2 | Keywords: | |
Cc: | External ID: |
Description
http://downloads.cloudmade.com/
Download the Victoria, Australia OSM SHP data from:
http://downloads.cloudmade.com/oceania/australia/victoria/victoria.shapefiles.zip
Extract the SHP files and attempt to load the Location data from victoria_location.shp
Expected result: File is loadable in Map Actual Result: Failure with the following error message.
Error: An exception occurred in FDO component.
Invalid Feature schema element name 'ADDR:CITY'; must not contain ':'
This is because the underlying SHP table has a column that uses ":" as a character in its column name.
As OSM data is pretty common and getting more and more popular, it may be necessary to remap those : characters to something else ie "_" rather than just throwing an error and failing,
Change History (7)
comment:1 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 14 years ago
comment:3 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:5 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:6 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:7 by , 14 years ago
The following change sets illustrate the changes made in the SHP provider to allow DBF files that have columns containing ":" and "." to be read and processed by FDO
http://trac.osgeo.org/fdo/changeset/5858
http://trac.osgeo.org/fdo/changeset/5859
If ":" or "." are found, these characters are replaced by "_" when the DBF Physical schema is read and exposed as logical FDO Schema. Thus columns that are physically defined as a:b will be exposed logically as a_b.
changeset for this fix?