[Featureserver] First steps
Christopher Schmidt
crschmidt at metacarta.com
Mon Nov 24 11:14:09 EST 2008
On Mon, Nov 24, 2008 at 05:59:59PM +0200, Lehtonen, Mika wrote:
> Actually,
> I just figured out that (changing the harcoded encoding) just before I
> read your mail. Quick and dirty, but it works!
>
> Too complicated for me to come up with a better solution, I'm afraid.
> What kind of a patch you were thinking about?
All you have to do is:
* Change __init__() to have an additional param before 'args':
'encoding="utf-8"'
* add 'self.encoding = encoding' in the __init__
* change "utf-8" to "self.encoding"
-- Chris
> - mika -
>
> Christopher Schmidt kirjoitti:
> >On Mon, Nov 24, 2008 at 04:40:43PM +0200, Lehtonen, Mika wrote:
> >
> >>Yep,
> >>that's probably the case. Isn't there any workaround in order to use
> >>shps' other than utf-8 encoded? Or is it just better to use only utf-8
> >>shps' or to use shp2pgsql to import them into PostGIS?
> >>
> >
> >No workaround without changing code. I'd be willing to take a patch to
> >allow the specification of input encding -- the code to fix is line 216
> >of DataSource/OGR.py, where it has a hardcoded utf-8. Temporarily, you
> >could just change that to 'iso-8859-1' and see if that gets you any
> >further.
> >
> >REgards,
> >
--
Christopher Schmidt
MetaCarta
More information about the Featureserver
mailing list