pnorman / ogr2osm

pnorman's version of UVM's Rewrite of ogr2osm
Other
78 stars 46 forks source link

lambda invalid syntax on python 3.4 #26

Closed nighto closed 3 years ago

nighto commented 10 years ago

Hello there,

I'm using python 3.4 on Windows with GDAL installed. To be sure of that, I run:

c:\Users\arlindo.pereira\Downloads>python
Python 3.4.0b1 (v3.4.0b1:3405dc9a6afa, Nov 24 2013, 19:18:21) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdal
>>> ^Z

Now, when I try to run ogr2osm without no arguments (should only see the readme file) I get this:

c:\Users\arlindo.pereira\Downloads\ogr2osm>python ogr2osm.py
  File "ogr2osm.py", line 320
    reproject = lambda(geometry): None
                      ^
SyntaxError: invalid syntax
pnorman commented 10 years ago

I'm using python 3.4 on Windows with GDAL installed

Did you try any of the python 2 to python 3 conversion programs?

roelderickx commented 3 years ago

Fixed in pull request #32