apply patch from Herm to update doc scripts to mapnik2, and fix imports for local ogcserver code

This commit is contained in:
Dane Springmeyer 2010-05-08 17:07:03 +00:00
parent 25c936c1e6
commit 8767c404c3
6 changed files with 7 additions and 7 deletions

View file

@ -25,7 +25,7 @@ from common import Version, copy_style, copy_layer
from exceptions import OGCException, ServerConfigurationError from exceptions import OGCException, ServerConfigurationError
from wms111 import ServiceHandler as ServiceHandler111 from wms111 import ServiceHandler as ServiceHandler111
from wms130 import ServiceHandler as ServiceHandler130 from wms130 import ServiceHandler as ServiceHandler130
from mapnik import Style, Map, load_map from mapnik2 import Style, Map, load_map
import re import re
import sys import sys

View file

@ -22,7 +22,7 @@
"""Core OGCServer classes and functions.""" """Core OGCServer classes and functions."""
from exceptions import OGCException, ServerConfigurationError from exceptions import OGCException, ServerConfigurationError
from mapnik import Map, Color, Box2d, render, Image, Layer, Style, Projection as MapnikProjection, Coord from mapnik2 import Map, Color, Box2d, render, Image, Layer, Style, Projection as MapnikProjection, Coord
from PIL.Image import new from PIL.Image import new
from PIL.ImageDraw import Draw from PIL.ImageDraw import Draw
from StringIO import StringIO from StringIO import StringIO

View file

@ -25,7 +25,7 @@ from common import ParameterDefinition, Response, Version, ListFactory, \
ColorFactory, CRSFactory, WMSBaseServiceHandler, CRS, \ ColorFactory, CRSFactory, WMSBaseServiceHandler, CRS, \
BaseExceptionHandler, Projection BaseExceptionHandler, Projection
from exceptions import OGCException, ServerConfigurationError from exceptions import OGCException, ServerConfigurationError
from mapnik import Coord from mapnik2 import Coord
try: try:
from lxml import etree as ElementTree from lxml import etree as ElementTree

View file

@ -25,7 +25,7 @@ from common import ParameterDefinition, Response, Version, ListFactory, \
ColorFactory, CRSFactory, CRS, WMSBaseServiceHandler, \ ColorFactory, CRSFactory, CRS, WMSBaseServiceHandler, \
BaseExceptionHandler, Projection, Box2d BaseExceptionHandler, Projection, Box2d
from exceptions import OGCException, ServerConfigurationError from exceptions import OGCException, ServerConfigurationError
from mapnik import Coord from mapnik2 import Coord
try: try:
from lxml import etree as ElementTree from lxml import etree as ElementTree

View file

@ -11,9 +11,9 @@ fi
epydoc --no-private \ epydoc --no-private \
--no-frames \ --no-frames \
--no-sourcecode \ --no-sourcecode \
--name mapnik \ --name mapnik2 \
--url http://mapnik.org \ --url http://mapnik.org \
--css mapnik_epydoc.css mapnik \ --css mapnik_epydoc.css mapnik2 \
-o $API_DOCS_DIR -o $API_DOCS_DIR
exit $? exit $?

View file

@ -1,2 +1,2 @@
rm -rf test_api rm -rf test_api
epydoc --no-private --no-frames --no-sourcecode --name mapnik --url http://mapnik.org --css mapnik_epydoc.css mapnik -o test_api epydoc --no-private --no-frames --no-sourcecode --name mapnik2 --url http://mapnik.org --css mapnik_epydoc.css mapnik2 -o test_api