Openlayers 我需要帮助建立我的地图
这个问题我已经设置了我的图层和我的类,但是什么都没有出现,只是什么都没有出现Openlayers 我需要帮助建立我的地图,openlayers,postgis,mapserver,Openlayers,Postgis,Mapserver,这个问题我已经设置了我的图层和我的类,但是什么都没有出现,只是什么都没有出现 LAYER CONNECTION "host=xxx.x.x.x user=xxxxxx password=***** port=5432 dbname=banco" CONNECTIONTYPE POSTGIS DATA "geom from (Select cnes, st_difference( st_buffer( st_union(geom),500), st_union(geom)) as geom fro
LAYER
CONNECTION "host=xxx.x.x.x user=xxxxxx password=***** port=5432 dbname=banco"
CONNECTIONTYPE POSTGIS
DATA "geom from (Select cnes, st_difference( st_buffer( st_union(geom),500), st_union(geom)) as geom from estabelecimento where geom is not null and %FILTRO_AREA_ATENDIMENTO% group by cnes) as area using unique cnes using srid=4326"
METADATA
"FILTRO_AREA_ATENDIMENTO_validation_pattern" ".*"
"default_FILTRO_AREA_ATENDIMENTO" "cnes ilike '%%%'"
"wms_include_items" "all"
"gml_include_items" "all"
"wms_title" "Área de atendimento por estabelecimento"
END # METADATA
NAME "area_atendimento"
STATUS ON
TILEITEM "location"
TYPE POINT
UNITS METERS
CLASS
NAME "Raio de atendimento"
STYLE
ANGLE 0
COLOR 0 0 0
OFFSET 0 0
OPACITY 40
OUTLINECOLOR 0 0 0
SIZE 15
SYMBOL "circulo_siab"
END # STYLE
TEMPLATE "/home/geo/templates/area_atendimento.html"
END # CLASS END # LAYER
请帮助我您缺少用于运行时替换的验证块。见:
验证
“FILTRO_AREA_ATENDIMENTO”“。#这验证了所有内容
#您应该将其更改为类似的正则表达式
# '^$'
“默认过滤区域”为“某些默认文本”
结束
你是想把这篇文章发表在网站上吗?
VALIDATION
'FILTRO_AREA_ATENDIMENTO' '.' # this validates everything
# you should change this to a regex like
# '^<some pattern>$'
'default_FILTRO_AREA_ATENDIMENTO' 'some default text'
END