[TinyOWS-dev] [tinyows] #40: sql request to Postgis generated by a GetFeature request returns an error

tinyows trac at camptocamp.com
Wed Apr 29 09:20:56 EST 2009


#40: sql request to Postgis generated by a GetFeature request returns an error
------------------------------------------+---------------------------------
     Reporter:  nsavard                   |           Owner:            
         Type:  defect                    |          Status:  new       
     Priority:  blocker                   |         Version:  SVN       
     Keywords:  wfs,getfeature,precision  |           Stage:  Unreviewed
     Approval:  Unnecessary               |           Patch:  None      
   Complexity:  Unknown                   |   Compatibility:  Unknown   
Specification:  Unnecessary               |  
------------------------------------------+---------------------------------
 The sql request to Postgis built by Tinyows after a GetFeature 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.

-- 
Ticket URL: <https://www.tinyows.org/trac/tinyows/ticket/40>
tinyows <https://www.tinyows.org/trac/tinyows>
TinyOWS


More information about the TinyOWS-dev mailing list