Ticket #40 (closed defect: invalid)
sql request to Postgis generated by a GetFeature request returns an error
| Reported by: | nsavard | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Version: | SVN |
| Keywords: | wfs,getfeature,precision | Cc: | adube, assefa |
| Triage Stage: | Unreviewed | State of Approval: | Unnecessary |
| Attached Patches: | None | Complexity: | Unknown |
| Compatibility: | Unknown | Specification: | Unnecessary |
Description
The sql request to Postgis built by Tinyows after a Get Feature? request is received, generates the following error: "ERROR: Precision out of range 1..15". The query uses the st_asgml(gml version, geometry name, precision) function. The wfs_retrieve_sql_request_select() function in wfs_get_feature.c set the precision to o->meter_precision which is set in turn to zero in ows_init() function.
select st_asgml(2,polygonproperty,0) from polygons;
Solution: Set the precision to 1.
Change History
Note: See
TracTickets for help on using
tickets.