azavea / python-sld

A simple python library that enables dynamic SLD creation and manipulation.
http://azavea.github.com/python-sld/
Apache License 2.0
27 stars 17 forks source link

NameError: name 'StyledLayerDescriptor' is not defined #2

Closed geomajor56 closed 12 years ago

geomajor56 commented 12 years ago

David, finally got around to trying python-sld and I can't get past this. I'm sure I'm doing something stupid. from python shell:

import sld mysld = StyledLayerDescriptor()

this returns error above.

did sudo easy_install --upgrade python-sld beforehand

thanks, Michael

dzwarg commented 12 years ago

Try this:

import sld
mysld = sld.StyledLayerDescriptor()

or:

from sld import StyledLayerDescriptor
mysld = StyledLayerDescriptor()
geomajor56 commented 12 years ago

got it thanks.

On Thu, May 3, 2012 at 2:27 PM, David Zwarg < reply@reply.github.com

wrote:

Try this:

import sld mysld = sld.StyledLayerDescriptor()

or:

from sld import StyledLayerDescriptor() mysld = StyledLayerDescriptor()


Reply to this email directly or view it on GitHub: https://github.com/azavea/python-sld/issues/2#issuecomment-5494554