Ticket #2850 (closed defect: fixed)
wfs does not provide features
| Reported by: | wrobell | Owned by: | pramsey |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.4 release |
| Component: | WFS Server | Version: | 5.2 |
| Severity: | normal | Keywords: | |
| Cc: | pramsey |
Description
please, consider a layer
LAYER
CONNECTIONTYPE postgis
NAME "alayer"
CONNECTION "user=foo dbname=foo host=localhost"
DATA "shape FROM atable"
STATUS ON
DUMP TRUE
TYPE LINE
CLASS
COLOR 0 0 0
END
METADATA
"wfs_title" "Map"
"gml_featureid" "uuid"
END
END
when i use shp2img or access layer using webrowser, then i am getting a map, so layer definition is correct.
the columns of table 'atable' are defined like
uuid varchar(32), a long, shape
'atable.a' contains usually numbers like 10 * 10 15 .
if i try to access above layer using WFS, then i am getting no features. no error message, no warning (it seems).
i found few workarounds
- restrict 'atable.a' to smaller numbers
- add another column 'atable.b' containing smaller numbers or string
and use
DATA "shape FROM atable using unique b using srid=4326"
is there any WFS restriction on column length? it would be nice to get some error message then.
of course, using no workarounds would be the best thing :)
Change History
Note: See
TracTickets for help on using
tickets.
