13

Step-by-step for GeoServer. Note: As @michal-mackiewicz writes, the WPS extension for GeoServer must be installed. Acquire some point data, for example Natural Earth populated places http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip Import data into Postgis for example with ogr2ogr ogr2ogr -f ...


9

ST_Intersects checks if 2 geometry really intersects && checks if the BBox of both geometries intersect. This use only the index if available. That's why it is really really fast. For the SRID error look at this answer: https://gis.stackexchange.com/a/12082/22703


8

You cannot get information for features within a bbox using a WMS getFeatureInfo. Please have a look at the WMS reference for getFeatureInfo. You will see that according to the standards, you can only pass in points, not a bbox. Instead, you could use a getFeature Operation on the WFS service. The BBOX parameter allows you to search for features that ...


8

Simple Right click your feature in your "Identify Results" right pane and select "Copy GetFeatureInfo requests URL": Advanced You can also go with PyQGIS. For example, with a single layer loaded from a WMS, in the Python console: layer = iface.activeLayer() provider = layer.dataProvider() provider.dataSourceUri() This will normally show the URI of the ...


7

That is a very hard question to answer. OpenLayers 2 has been very successful and it is easy to find examples for just about everything. OpenLayers 3 is a total rewrite and uses the Google Closure toolkit which provides a number of useful services: code compression, event handling, cross browser support, etc. OpenLayers 3 also uses webGL rendering, when it ...


7

If you have to work with a Google base map, OpenLayers 2 will satisfy your needs. As stated in an OpenLayers 3 issue by @ahocevar, There will be no ol.source.GoogleMaps, unless Google change their policy and allow direct access to their map tiles. Your only chance to use Google wiht OpenLayers 3 is to make a base map without any controls with Google ...


6

For example, one of the advantages of combination 2 (PostGIS + QGIS Desktop + QGIS Server + QGIS Client) over 1 (PostGIS + MapServer + OpenLayers) is that you could create it and set up faster and easier and therefore its more suitable for some lightweight web gis solutions. Why ? You could share existing QGIS projects or create a new one, set the data and ...


6

With a bit more work I've answered my own question. It required setup and testing of a new server and then application to the existing server. What I had done previously with GDAL ... enabled Ubuntu GIS "unstable" repository, installed what looked like the required update to 1.10.0: sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get ...


6

Thinking that you need heat maps rendered on the fly, I would go for these options instead: Leaflet: http://www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html OpenLayers: http://www.websitedev.de/temp/openlayers-heatmap-layer.html Both LL and OL: http://www.patrick-wied.at/static/heatmapjs/examples.html Some on-the-fly examples: http://...


6

Mapfiles are good for making standard WMS, WFS and WCS services. They are mostly stable even some limited set of the mapfile parameters can be changed on-the-fly by using the variable substitution mechanism. Static mapfiles are enough for serving data to GIS clients like ArcGIS, QGIS, OpenJUMP etc. and also for browser applications made with OpenLayers or ...


6

Instead of templates I suggest to define an OGR outputformat for GeoJSON. Here are advice taken from https://lists.osgeo.org/pipermail/mapserver-users/2013-November/075559.html You can use OGR outputformats. Add something like this to your mapfile OUTPUTFORMAT NAME "geojson" DRIVER "OGR/GEOJSON" MIMETYPE "application/json; subtype=geojson" ...


6

You can set up GeoWebCache to request WMS layers from any WMS server. This may be easiest with a standalone install of GWC but should be possible in the integrated version too. You need to edit the configuration file, see the manual for more detail. Alternatively you can use the GeoServer WMS datastores to cascade requests to the MapServer instance and the ...


5

Found one on GitHub : MapserverSyntaxHighlighting It adds a user defined language in N++ (check this, if you want to create your own). Just put the two files given here : userDefineLang.xml -> %appdata%\Notepad++ mapfile.xml -> %programfiles(x86)%\Notepad++\plugins\APIs You may need to restart N++ or reopen the mapfile.


5

QGIS Server has some limitations but you can add Lizmap on top and get more functionalities. The documentation is good and often updated. It handles users/groups. Cache management Bing, Google, IGN, OSM base layers You can easily build html popup for getFeatureInfo calls. The Lizmap plugin is very handy and gives you a nice GUI. The Lizmap web client based ...


5

I just ran into this issue and found that the problem was because I had not installed the ‘proj-epsg’ package. yum install proj-epsg


5

I just faced the same problem and solved it by copy the mapscript.py and _mapscript.so into my virtual env. cd venv/lib/python2.7/site-packages cp /usr/lib/python2.7/dist-packages/_mapscript.so . cp /usr/lib/python2.7/dist-packages/mapscript.py . At least the following script in a python web-app worked fine, based on the mapserver demo files I got here. .....


5

You should use two different STYLE blocks, one for the fill and one for the stroke: CLASS STYLE OUTLINECOLOR r g b #stroke WIDTH 3 END STYLE COLOR r g b #fill OPACITY 50 END END Ordering is important, you'll get different visual results if you swap the order of the STYLE blocks.


5

In order to install the MapServer in Ubuntu 14.04 after you have installed Apache2, it is good to install php5: sudo apt-get install php5 After that you can install the available in the repositories version of the MapServer by executing: sudo apt-get install cgi-mapserver mapserver-bin php5-mapscript However, the available version in the Ubuntu ...


5

For example: let's say you have a 10 megabyte raster/vector file that covers a large area. If you include the file directly into OpenLayers, it will download the entire file to the browser and render whatever part of it the map needs even if it's a small area. What mapserver will do for you is always deliver to the browser a small image of exactly what ...


5

Just see this official demo example http://openlayers.org/en/v3.0.0/examples/wms-image.html Some others WMS samples are available. You will just need to change ServerType to mapserver (link for reference) Edit for completing with solution Without proj4js, you can always use the recipe from this other official example Declare an object ol.proj.Projection ...


5

The easiest way to achieve the same in OpenLayers 3 is to use WMS GetFeatureInfo. Your code could look something like this (assuming mymap is your layer with a WMS source, and map is your ol.Map instance): var parser = new ol.format.WMSGetFeatureInfo(); var highlightOverlay = new ol.Layer.Vector({ // style: (customize your highlight style here), source: ...


5

There are two mode in MapServer in fact and it can be confusing for end users without knowledge about the project history. The first one, the now mostly outdated mode cgi (the url contains mode=browse) way where you don't rely on standards OGC webservices. It was supported in OpenLayers 2 by default because of history (more Mapserver instances not using WMS ...


5

According to a recent comparison of different mapping engines in performing tile seeding (see Section 4.3), MapServer should be much faster than GeoServer. Is there any re-projection of geometries in your rendering stack? An old version of MapServer might have the same issue with proj4 lib as Mapnik had.


5

If you want Mapserver to use only the rows where contourinterval = 40, you need to use a WHERE. I think you should use this connection string instead: CONNECTIONTYPE POSTGIS CONNECTION "dbname=contours host=localhost user=contour_xxxx password=xxx" DATA "wkb_geometry FROM contours WHERE contourinterval = 40 USING UNIQUE ogc_fid". Also, make sure the ...


5

The WMS 1.3.0 specification says in section 7.3.3.4: The mandatory STYLES parameter lists the style in which each layer is to be rendered. The value of the STYLES parameter is a comma-separated list of one or more valid style names. There is a one-to-one correspondence between the values in the LAYERS parameter and the values in the STYLES parameter. Each ...


4

Just change the permission (777 is sufficient) to your logfile. In your case: chmod 777 /var/www/mapserver/log/mylogfile.log


4

place this in your map file under MAP > WEB: METADATA WMS_ENABLE_REQUEST "*" END


4

MapServer does support label LEADER since 6.2. http://mapserver.org/mapfile/leader.html Example:


4

For shapefiles you should write "mapserver style" filtering expressions, e.g. layer.setFilter("([id] = 1)") The syntax you are using would be OK for RDBMS backends only (passed to a SQL where clause)


4

This is a comparison between multiple tiles and single tile using WMS in OpenLayers: var map = new OpenLayers.Map({ div: "mapDiv", layers: [ new OpenLayers.Layer.WMS( "Single Tile", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: "basic"}, {singleTile: true, ratio: 1} ), ...


Only top voted, non community-wiki answers of a minimum length are eligible