@@ -54,7 +54,7 @@ Creating my first Mapfile
54
54
#. Open any text editor (e.g. :menuselection: `Applications --> Accessories -->
55
55
FeatherPad `).
56
56
#. Create the file "mapserver_quickstart.map" at the following location:
57
- :file: `/usr/local/share/mapserver /mapserver_quickstart.map `
57
+ :file: `/home/user /mapserver_quickstart.map `
58
58
59
59
60
60
Put the following content in it::
@@ -143,7 +143,7 @@ Render a map image with MapServer using a WMS **GetMap** request
143
143
144
144
Open a web browser and enter the following URL::
145
145
146
- http://localhost/cgi-bin/mapserv?map=/usr/local/share/mapserver /mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries&STYLES=&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600
146
+ http://localhost/cgi-bin/mapserv?map=/home/user /mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries&STYLES=&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600
147
147
148
148
What does the above mean? If we put it in simple words, it's a |WMS |
149
149
**GetMap **
@@ -160,7 +160,7 @@ result looks like the following:
160
160
.. note ::
161
161
162
162
All parameters of the request are WMS-specific, except
163
- "*?map=/usr/local/share/mapserver /mapserver_quickstart.map *", which is MapServer-specific.
163
+ "*?map=/home/user /mapserver_quickstart.map *", which is MapServer-specific.
164
164
165
165
166
166
@@ -174,7 +174,7 @@ repetitive mapping, or while debugging.
174
174
Open a terminal (:menuselection: `Applications --> System Tools --> Terminal
175
175
Emulator `) and type::
176
176
177
- map2img -m /usr/local/share/mapserver /mapserver_quickstart.map -o /home/user/Documents/mymap.png
177
+ map2img -m /home/user /mapserver_quickstart.map -o /home/user/Documents/mymap.png
178
178
179
179
If this command runs successfully, you are able to see your rendered map at
180
180
file:///home/user/mymap.png.
@@ -211,7 +211,7 @@ Let's take our previous WMS **GetMap** request and add our new "Lakes" layer
211
211
to the image rendered. We simply need to add the new layer name to the
212
212
"LAYERS" property list::
213
213
214
- http://localhost/cgi-bin/mapserv?map=/usr/local/share/mapserver /mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries,Lakes&STYLES=&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600
214
+ http://localhost/cgi-bin/mapserv?map=/home/user /mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries,Lakes&STYLES=&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600
215
215
216
216
The image rendered by MapServer looks like our previous map, but with the
217
217
addition of the lakes from our new layer:
@@ -301,7 +301,7 @@ Using QGIS Desktop to load your OGC WMS
301
301
302
302
#. Save your settings:
303
303
304
- http://localhost/cgi-bin/mapserv?map=/usr/local/share/mapserver /mapserver_quickstart.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0
304
+ http://localhost/cgi-bin/mapserv?map=/home/user /mapserver_quickstart.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0
305
305
306
306
Then you can connect to your service and add one or more layers of the service to your QGIS project. If you choose the layer with the ID 0 you can load the whole service with all layers at once.
307
307
0 commit comments