Пытаюсь подключить бд Postgres к Mapserverу, но чт-то никак... Получаю ошибку:
Код: Выделить всё
msDrawMap(): Image handling error. Failed to draw layer named 'buildings'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: column "NAME" does not exist LINE 1: select "NAME",encode(AsBinary(force_collection(force_2d("geo... ^ ) executing query: select "NAME",encode(AsBinary(force_collection(force_2d("geometrycolumn")),'NDR'),'hex') as geom,"gid" from buildings where geometrycolumn && GeomFromText('POLYGON((31.981 46.9588028785982,31.981 46.9771971214018,32.004 46.9771971214018,32.004 46.9588028785982,31.981 46.9588028785982))',find_srid('','buildings','geometrycolumn'))
Код: Выделить всё
LAYER
NAME 'buildings'
CONNECTIONTYPE postgis
CONNECTION "user=postgres password=pswd dbname=map host=localhost"
DATA "the_geom from buildings"
TYPE POLYGON
TOLERANCE 5
HEADER '/usr/map/marker/templates/templ_head.html'
FOOTER '/usr/map/marker/templates/templ_footer.html'
TEMPLATE '/usr/map/marker/templates/templ_query.html'
DUMP true
METADATA
'ows_title' 'buildings'
wms_title "Marker test WMS"
wms_abstract "This is the WMS test demo from Marker"
wms_srs "EPSG:4326"
wms_include_items "all"
END
STATUS OFF
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END
Только на вас надежда)
Заранее спасибо!