<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:Consolas;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
p.NurText, li.NurText, div.NurText
{mso-style-name:"Nur Text";
mso-style-link:"Nur Text Zchn";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.NurTextZchn
{mso-style-name:"Nur Text Zchn";
mso-style-priority:99;
mso-style-link:"Nur Text";
font-family:"Calibri","sans-serif";}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Your error is likely caused by the python you are running not having the gdal-python bindings. Try running c:\python27\python and then typing import gdal. If it responds with a >>> then gdal is working. If not, then the python install you are running does not have the bindings. This can be caused by multiple python installations, you may need to use the python version that came with the osgeo tools.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>If you are eventually planning to use ogr2osm to prepare data for import, you will want to share the translations file in ogr2osm/translations/ that you create when you do the required consultation with imports@ and the local community.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> RheinSkipper [mailto:rheinskipper1000@gmx.de] <br><b>Sent:</b> Sunday, March 04, 2012 1:50 PM<br><b>To:</b> imports@openstreetmap.org<br><b>Subject:</b> [Imports] Using Rewritten ogr2osm<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello import experts,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I want to learn how to convert S57 objects from inland ENC nautical charts to osm. I will not import anything to the osm database, yet. But I want to merge some objects to my local osm extract an compile a map out of it.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Using ogr2ogr I was able to extract specific layers from S57 and convert them to shape files. The produced shape files load well to mercaator or gpsmapedit and look good.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now I need to convert the shape files to osm. Having no deeper understanding of python, I was unable to make tools like ogr2osm, shp-to-osm, shp2osm or exallpoly work for me.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I tried to use the rewritten version of ogr2osm as follows:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>set gdaldir=D:\ENC\gdal<o:p></o:p></p><p class=MsoNormal>SET PATH=%gdaldir%\bin;%gdaldir%\bin\gdal\python\osgeo;%gdaldir%\bin\proj\apps;%gdaldir%\bin\gdal\apps;%gdaldir%\bin\ms\apps;%gdaldir%\bin\gdal\csharp;%gdaldir%\bin\ms\csharp;%gdaldir%\bin\curl;%PATH%<o:p></o:p></p><p class=MsoNormal>SET GDAL_DATA=%gdaldir%\bin\gdal-data<o:p></o:p></p><p class=MsoNormal>SET GDAL_DRIVER_PATH=%gdaldir%\bin\gdal\plugins<o:p></o:p></p><p class=MsoNormal>SET PYTHONPATH=%gdaldir%\bin\gdal\python\osgeo;%gdaldir%\bin\gdal\python<o:p></o:p></p><p class=MsoNormal>SET PROJ_LIB=%gdaldir%\bin\proj\SHARE<o:p></o:p></p><p class=MsoNormal>rem set s57_csv=%gdaldir%\bin\gdal-data<o:p></o:p></p><p class=MsoNormal>c:\python27\python ogr2osm\ogr2osm.py shp\fairwy.shp <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>But it only produces this errors:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Traceback (most recent call last):<o:p></o:p></p><p class=MsoNormal> File "ogr2osm\ogr2osm.py", line 52, in <module><o:p></o:p></p><p class=MsoNormal> from osgeo import ogr<o:p></o:p></p><p class=MsoNormal> File "D:\ENC\gdal\bin\gdal\python\osgeo\__init__.py", line 21, in <module><o:p></o:p></p><p class=MsoNormal> _gdal = swig_import_helper()<o:p></o:p></p><p class=MsoNormal> File "D:\ENC\gdal\bin\gdal\python\osgeo\__init__.py", line 17, in swig_import_helper<o:p></o:p></p><p class=MsoNormal> _mod = imp.load_module('_gdal', fp, pathname, description)<o:p></o:p></p><p class=MsoNormal><span lang=DE>ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.<o:p></o:p></span></p><p class=MsoNormal><span lang=DE><o:p> </o:p></span></p><p class=MsoNormal><span lang=DE><o:p> </o:p></span></p><p class=MsoNormal>I used the “<span style='font-size:9.5pt;font-family:"Verdana","sans-serif"'>All files in a single .zip package” gdal version from here:</span><o:p></o:p></p><p class=MsoPlainText><span lang=DE><a href="http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-x64-gdal-1-9-mapserver-6-0.zip"><span lang=EN-US>http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-x64-gdal-1-9-mapserver-6-0.zip</span></a></span><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Can you give me a hint what I´m doing wrong?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="https://wiki.openstreetmap.org/wiki/User:RheinSkipper">https://wiki.openstreetmap.org/wiki/User:RheinSkipper</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>