Answer the question
In order to leave comments, you need to log in
Why does mapserver with postgis show the layer as empty?
Good afternoon!
Please tell me why the map layer in mapserver with postgis is empty.
map file code:
MAP
EXTENT 43 32 45 34
IMAGETYPE PNG24
SIZE 800 600
CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt"
DEBUG 5
WEB
MINSCALEDENOM 2000000
MAXSCALEDENOM 50000000
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
TEMPLATE "../htdocs/viewer-template.html"
LOG "mapserver.log"
END
LAYER
NAME "boundary"
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION "user=user password=password dbname=dbname host=localhost"
DATA "geom from (select osm_id, ST_AsText( ST_FlipCoordinates( ST_Transform(way, 4326) ) ) geom
from public.planet_osm_polygon where leisure = 'park' and name='Гагаринский сквер'
) using unique osm_id"
PROJECTION
"init=epsg:4326"
END
CLASS
COLOR 200 120 123
END
END
END
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question