Skip to content

Commit

Permalink
Fix documentation as noted in issue #34
Browse files Browse the repository at this point in the history
Change from mapnik.ogcserver to ogcserver as it is no longer a mapnik module
  • Loading branch information
manelclos committed Nov 4, 2014
1 parent dd65316 commit 4e56689
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/readme.txt
Expand Up @@ -64,7 +64,7 @@ Installation
- Test that the server code is available and installed properly by importing it within a
python interpreter::

>>> from mapnik import ogcserver
>>> import ogcserver
>>> # no error means proper installation

- There is a sample python script called "wms.py" in the utils/ogcserver folder of the
Expand Down Expand Up @@ -113,7 +113,7 @@ For now this can be done by either loading an XML mapfile inside that script usi
If you load your layers and styles using an existing XML mapfile the 'map_factory' module
should look like::

from mapnik.ogcserver.WMS import BaseWMSFactory
from ogcserver.WMS import BaseWMSFactory

class WMSFactory(BaseWMSFactory):
def __init__(self):
Expand All @@ -124,7 +124,7 @@ should look like::
Or if you want to define your layers and styles in pure python you might
have a 'map_factory' more like::

from mapnik.ogcserver.WMS import BaseWMSFactory
from ogcserver.WMS import BaseWMSFactory
from mapnik import *

SHAPEFILE = '/path/to/world_borders.shp'
Expand Down

2 comments on commit 4e56689

@springmeyer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@roboguy
Copy link

@roboguy roboguy commented on 4e56689 Nov 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !!

Please sign in to comment.