Skip to content

Commit 807bb37

Browse files
committed
Switch Mapfile path back to /home/user
1 parent 801d99f commit 807bb37

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/quickstart/mapserver_quickstart.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Creating my first Mapfile
5454
#. Open any text editor (e.g. :menuselection:`Applications --> Accessories -->
5555
FeatherPad`).
5656
#. 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`
5858

5959

6060
Put the following content in it::
@@ -143,7 +143,7 @@ Render a map image with MapServer using a WMS **GetMap** request
143143

144144
Open a web browser and enter the following URL::
145145

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
147147

148148
What does the above mean? If we put it in simple words, it's a |WMS|
149149
**GetMap**
@@ -160,7 +160,7 @@ result looks like the following:
160160
.. note::
161161

162162
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.
164164

165165

166166

@@ -174,7 +174,7 @@ repetitive mapping, or while debugging.
174174
Open a terminal (:menuselection:`Applications --> System Tools --> Terminal
175175
Emulator`) and type::
176176

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
178178

179179
If this command runs successfully, you are able to see your rendered map at
180180
file:///home/user/mymap.png.
@@ -211,7 +211,7 @@ Let's take our previous WMS **GetMap** request and add our new "Lakes" layer
211211
to the image rendered. We simply need to add the new layer name to the
212212
"LAYERS" property list::
213213

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
215215

216216
The image rendered by MapServer looks like our previous map, but with the
217217
addition of the lakes from our new layer:
@@ -301,7 +301,7 @@ Using QGIS Desktop to load your OGC WMS
301301

302302
#. Save your settings:
303303

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
305305

306306
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.
307307

0 commit comments

Comments
 (0)