vendredi 27 février 2015

display thematic map using openlayers


iam displaying map from mapfile(mapserver) in c# using openlayers mapfile is connected to postgres it is working well but now i want to diaplay thematic map using the postgrs database using openlayers in c# plz tell me the code this is my mapfile


MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947


TRANSPARENT on IMAGETYPE png size 150 500



web
metadata
wms_srs "EPSG:4326 EPSG:900913"
end
end


LAYER CONNECTIONTYPE postgis

CONNECTION "user=postgres password=****** dbname=mpdb port=5432 host=localhost" DATA "geom FROM district using unique gid"



STATUS Default
TYPE polygon


PROJECTION
"init=epsg:900913"
END



labelitem 'district'

class
style

#color 55 230 51
outlinecolor 90 90 90
width 2
end
LABEL
#color 255 255 255
size 2
BACKGROUNDCOLOR 255 201 14
position auto
END
end


END

END





Aucun commentaire:

Enregistrer un commentaire