New answers tagged mapserver
I recently setup a web mapping application with OL 3.15, calling a WFS layer published by mapserver 7.0, which uses PostGIS based data tables backend. Here are the relevant parts of the mapfile: CONNECTIONTYPE postgis CONNECTION "dbname=water host=127.0.0.1 port=5432 user=water_dba password=<your-db-password> " DATA "geom FROM ...
First. I am not very familiar with MapServer but according to it's documentation, In order to enable MapServer to serve WFS, it MUST be compiled against certain libraries Second, you have to configure a PostGIS connection in your MapServer, documentation for that here. Third, you will have to create a mapfile to describe the layer to MapServer. ...
The first step should be to enter your data in a PostGIS database. Then you have to connect MapServer to PostGIS and create layers for each of your tables or views in the PostGIS db. Finally you will have to load these layers in OpenLayers.
No matter how many types have, Is not needed make CLASS entries for each color based on Type ID. Since mapserver 5.0 you can specify color from dataset using hard brackets . From doc: For example, if your data set has an attribute named “MYPAINT” that holds color values for each record, use: object for might contain: COLOR [MYPAINT] Create view that ...
You can try this: https://github.com/ThomasG77/turf-ol3 Use ol3 for map(from mapserver or any xyz map), and turf for some drawing.
That is only partly supported. By the documentation of MapServer 7.0.1 http://mapserver.org/mapfile/style.html#style your HEIGHT is supported with a keyword "SIZE". Angle is supported as "ANGLE". But your LENGTH (width) is not supported. Instead the width of the symbol is scaled by the same factor as SIZE. Here are my test mapfile and the rendered result. ...
If you mean to have 1-4 adjacent color boxes at bottom-left, top-left, bottom-right, and top-right positions then I would do it by having one square symbol with points POINTS 0 0 0 1 1 1 1 0 0 0 END Then I would make four copies of the symbol with different ANCHORPOINTs as documented in http://www.mapserver.org/mapfile/symbol.html. ...
You can setup OUTPUTFORMAT declarations which leverage MapServer's use of OGR for custom output formats (including CSV, GeoJSON). See the documentation for further details. Update: this does not appear to be the case for GetPropertyValue requests, only GetFeature requests.
Top 50 recent answers are included