Hot answers tagged

3

Try removing the 'as FOO' statement at the end of the select statement, it is not needed. As a reference this is the template for an Oracle Spatial DATA definition with a select instruction: 'geometry_column FROM (SELECT stmt) [USING UNIQUE <column> SRID srid# FUNCTION]' the parts in square parenthesis are optional. Reference retrieved straight ...


3

I'm afraid it's not that easy. You'll have to actually build/install MapServer on your server (assuming you have permission to do so) and then configure it all to work properly. You cannot just copy the folder from your MS4W folder to the server. A quick Google search will provide some starting points.


2

I work for Ordnance Survey, Great Britain's National Mapping Agency, and we use GeoServer for our web Map Service, OS OnDemand. We also use PostgreSQL and PostGIS to store our vector data.


2

You should add at least one CLASS/STYLE to your LAYER block: CLASS STYLE COLOR 0 0 0 END END


2

I think you mix up OSGEo4W and MS4W. These are different packages for Windows. OSGeo4W is a source for several FOSS4G project, among other MapServer and QGIS. MS4W contains programs, tools necessary to run/maintain a MapServer instance on Windows (Apache, Mapserver, Mapserver utilities, several libraries). You can use any of them but do not mix them up.


1

This works for me, but I don't know how to use .htaccess file too. Alias /wmsmap "d:/ms4w/Apache/cgi-bin/mapserv.exe" <Location /wmsmap > SetHandler cgi-script Options ExecCGI SetEnv MS_MAPFILE "d:/ms4w/apps/cgi-viewer/map/wmsdemo1.map" </Location>


1

Are you sure that you have correct paths for your symbolset and svg file? I am getting the same error than you if I write a mapfile that tries to use a non-existing SVG file. With correct paths this works for me: MapServer version 7.0.6 (MS4W 3.2.2) OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=...


1

You can contact MS4W support and discuss with them the possibility of having them compile a version of MapServer that has the libsvg-cairo library compiled for you. You can compile MapServer yourself with this support, or you can use a MapServer binary from GISinternals. There might be other Windows MapServer binaries that have this support.


1

You need to load "phpmapscript extension", if you're using php 5.2, you can use dl() function before phpinfo(), if your php are 5.3 of newer you need search to enable or use it.


1

If you are you on Windows as I suppose you are because you use "ms4w" tag, the only solution that I know is to map the network drive and attach it to a drive letter like N: for NAS.


1

You need to activate getFeatureInfo service in mapserver. Then you can display your layer via WMS protocol in OpenLayers for example. And to finish you can add the WMSGetFeatureInfo control in OpenLayers. Look at the source code in this example : <script> OpenLayers.ProxyHost = "proxy.cgi?url="; var map, info; function load() { map = new ...


1

My experience is as yours: Mapserver used to support Oracle compound polygons in previous versions, but they withdrew the support in present versions. So as far as I know, it is not an Oracle version issue. So far we have resorted to an older version of Mapserver to be able to render compound polygons. I have no idea when Mapserver will support these more ...


1

Yes you can configure multiple projections that your service will support in your map file, as part of the METADATA block of either your MAP in which case the projections apply to all layers, or in your LAYER in which case the projections apply to just that layer. METADATA ... "WMS_SRS" “EPSG:4326 EPSG:3857 EPSG:27700 EPSG:4258” # Change above to meet ...


1

MapServer is software for creating services that create maps on request by a client. In other words you can't display a map IN MapServer, you can only get MapServer to provide a map for a some client, such as a JavaScript web based map client built using OpenLayers, or a Desktop client like QGIS.


1

How to Generate a Simple Map using Mapserver and a Shapefile.


1

I have no direct experience with MS4W but Mapserver can be used safely in threaded environments, provided that some simple precautions are taken. For a starting checklist consult the Mapserver FAQ, which has an entry just for thread safety. I have used successfully Java mapscript myself in many web apps. By looking at MS4W build notes it seems like thread ...


1

A famous name in education would be Harvard University using QGIS: http://maps.cga.harvard.edu/qgis/wkshop/ui.php


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