Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-10-2010, 09:05   #31
Registered User
 
manimaul's Avatar

Join Date: Feb 2008
Location: Seattle, WA
Posts: 416
Quote:
Originally Posted by alaska_av8r View Post
I keep getting a "kap2vrt.2.py is not recognized as an internal or external command operable program or batch file"
kap2vrt.2.py is not "in your PATH".

You have the kap2vrt.2.py file correct? You need to either have kap2vrt.2.py in the current directory you are running the command from. Or copy the file to a directory in you PATH. I would copy it to the same directory where gdal2tiles.py lives.

Will
__________________
Marine Navigation for Android:
https://mxmariner.com
manimaul is offline   Reply With Quote
Old 29-10-2010, 01:28   #32
Registered User

Join Date: Oct 2010
Posts: 7
Will thank you very much, you actually prompted me to again remove all versions of OSGEO and do a fresh install, I am happy now since that cured the ordinal 32 not found error and I can do all of this via command line now....

But...this is weird I have windows 7 and when I enter the command kap2vrt.2.py --cut 11405_1.KAP in the command window, it opens the kap2vrt.2.py in Notepad!......

Am I entering the command wrong? I have tried everything to try and get it to stop doing that, I even went into my registry to the file extensions for windows explorer and deleted the keys for the .py extension that even mentioned notepad.

Tim
__________________
Restored 1986 Cruisers 297 Elegante. Life is better sitting on the hook!
alaska_av8r is offline   Reply With Quote
Old 31-10-2010, 23:09   #33
Registered User

Join Date: Oct 2010
Posts: 7
I finally got things squared away with the .py scripts opening in notepad.

I also discovered that I needed to build a batch file to run the .py scripts so I built one to run the kap2vrt.2.py script and called it kap2vrt, but when I ran the script it gave me this error:

Code:
 
C:\charts\Rastor\11405>kap2vrt --cut 11405_1.kap
Traceback (most recent call last):
  File "C:\OSGeo4W\apps\gdal-16\bin\kap2vrt.2.py", line 123, in <module>
    kap2vrt(f)
  File "C:\OSGeo4W\apps\gdal-16\bin\kap2vrt.2.py", line 91, in kap2vrt
    gcps=flatten([('-gcp', `i[0][1]`,`i[0][2]`,i[1][0],i[1][1]) for i in izip(re
fs, refs_merc)])
  File "C:\OSGeo4W\apps\gdal-16\bin\kap2vrt.2.py", line 22, in flatten
    return list(chain.from_iterable(listOfLists))
AttributeError: type object 'itertools.chain' has no attribute 'from_iterable'
Just for the heck of it I tried the bsb2gdal.py, built a batch file and got it to work, not sure why kap2vrt would not work.......
__________________
Restored 1986 Cruisers 297 Elegante. Life is better sitting on the hook!
alaska_av8r is offline   Reply With Quote
Old 07-11-2010, 01:44   #34
Registered User

Join Date: Sep 2010
Posts: 4
Quote:
Originally Posted by alaska_av8r View Post
I also discovered that I needed to build a batch file to run the .py scripts so I built one to run the kap2vrt.2.py script and called it kap2vrt, but
Hi alaska_av8r! Sorry I didn't followed this thread closely, but I see you've already posted at the talk.maemo.org.

In the essence kap2vrt is ancient. Use bsb2gdal, etc from talk.maemo.org.

Cheers
V
vadp is offline   Reply With Quote
Old 07-11-2010, 21:58   #35
Registered User

Join Date: Oct 2010
Posts: 7
thank you!
__________________
Restored 1986 Cruisers 297 Elegante. Life is better sitting on the hook!
alaska_av8r is offline   Reply With Quote
Old 09-02-2011, 07:48   #36
Registered User

Join Date: Sep 2010
Posts: 4
Quote:
Originally Posted by vadp View Post
You may find this and a few related scripts here: Custom maps for maemo-mapper from BSB, OZI charts, and uncalibrated images - maemo.org - Talk
Some of them have "--help"
A new version of these scripts are available from here: tilers-tools - Project Hosting on Google Code

Among the things it has a brand new tile cutter!
vadp is offline   Reply With Quote
Old 29-09-2012, 12:37   #37
Registered User

Join Date: Sep 2012
Posts: 1
Re: Chart Converter Recruitment

This looks good. I've no programming skills to speak of but I've managed to plot my position using a GPS dongle via Bluetooth and Navigator. Then I scanned a few charts and pinned them as overlays onto Google Earth. I haven't made any long passages using this yet but so far it looks like a goer. Then I found GRIB files for wind and tidal streams and I'm itching to get them plotted. Just need to convert GRIBs to .kml and I'd be a very happy bunny! And the routing programs are awesome.
jonshorridge is offline   Reply With Quote
Reply

Tags
recruitment

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AC-DC Converter squarehead Electrical: Batteries, Generators & Solar 5 26-08-2009 19:34
Spraying AwlCraft Using Brushing Converter? geoffschultz Construction, Maintenance & Refit 1 27-04-2009 05:50
TV Converter Box Dilemma svcattales Marine Electronics 16 19-10-2008 14:52

Advertise Here


All times are GMT -7. The time now is 23:04.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.