[Featureserver] BBOX request throws error for PostGIS

Ed Fialkowski edfialk at gmail.com
Mon Feb 18 13:14:45 EST 2008


Hey Jennifer, thanks for that.  Unfortunately, it didn't work for me.

I'm using SRID 4269, from postGIS:
    "enforce_srid_the_geom" CHECK (srid(the_geom) = 4269)

so I tried adding SRID into featureserver.cfg and changing postGIS.py to:

def __init__(self, name, srid = 4269, fid = "ogc_fid", geometry =
"the_geom", order = "", attribute_cols = '*', writable = True,
**args):
        DataSource.__init__(self, name, **args)


both of them still say:
An error occurred: current transaction is aborted, commands ignored
until end of transaction block

  File "/opt/lampp/cgi-bin/featureserver3/FeatureServer/Server.py",
line 296, in cgiHandler
    format, content = service.dispatchRequest( params, path_info,
host, post_data, request_method, accepts )
  File "/opt/lampp/cgi-bin/featureserver3/FeatureServer/Server.py",
line 145, in dispatchRequest
    result = method(action)
  File "/opt/lampp/cgi-bin/featureserver3/FeatureServer/DataSource/PostGIS.py",
line 205, in select
    cursor.execute(str(sql), attrs)

:(



More information about the Featureserver mailing list