Permalink
Browse files

more region definitions

  • Loading branch information...
1 parent e5a47e4 commit 80a579510d0a812c7ed13f6da0a8cc23fbd52bcd @manimaul committed Jan 3, 2012
Showing with 311 additions and 4 deletions.
  1. +3 −0 AutoGemf.py
  2. +4 −3 BatchRegionTiler.py
  3. +3 −0 Regions.py
  4. +2 −1 nga_regions/REGION_NGA_03.dat
  5. +179 −0 nga_regions/REGION_NGA_04.dat
  6. +108 −0 nga_regions/REGION_NGA_05.dat
  7. +12 −0 nga_regions/REGION_NGA_06.dat
View
3 AutoGemf.py
@@ -6,6 +6,9 @@
def createGemf(region):
directory = Regions.getRegionMergedTileDir(region) + ".opt"
+ if not os.path.isdir(directory):
+ print "Region not ready... run BatchRegionOptimizer first"
+ sys.exit()
if not os.path.isdir(directory + "/gemf"):
os.mkdir(directory + "/gemf")
if os.path.isdir(directory+"/merge"):
View
7 BatchRegionTiler.py
@@ -31,7 +31,7 @@ def __init__(self, directory, regiondir, filter = None):
def doTile(self, kapPath, log, regiondir):
command = "python %smap2gdal.py -q --cut-file %s" %(Env.tilersToolsDir, kapPath)
- print command
+ #print command
thisone = subprocess.Popen(shlex.split(command), stdout=log)
thisone.wait()
@@ -121,10 +121,11 @@ def vrtCheck(kapList):
def renderRegion(region):
filter = Regions.getRegionFilterList(region)
- print filter
+ #print filter
tileDir = Regions.getRegionUnMergedTileDir(region)
+ bsbDir = Regions.getRegionBsbDir(region)
if filter != None:
- createTiles(Env.bsbDir, tileDir, filter)
+ createTiles(bsbDir, tileDir, filter)
else:
print region + " does not exist"
View
3 Regions.py
@@ -29,6 +29,9 @@
"REGION_BR_01" : "Brazil: Guyana to Uruguay", \
"REGION_NGA_01" : "Mexico West Coast to Columbian Border", \
"REGION_NGA_02" : "South America West Coast: Columbia to Cape Horn", \
+"REGION_NGA_03" : "Antarctic and Drake Passage", \
+"REGION_NGA_04" : "South America East Coast: Cape Horn to Columbia", \
+"REGION_NGA_05" : "Bermuda Bahamas Caymans and Caribbean", \
"REGION_NZ_01" : "NewZealand"
}
View
3 nga_regions/REGION_NGA_03.dat
@@ -1,4 +1,5 @@
#Antarctic and Drake Passage
+#need to override some zoom calculations for some small scale charts in this region in findZoom.py
211.kap
##ALL 29000s were included, future 29000s should probably also be considered for inclusion
29002.kap
@@ -7,7 +8,7 @@
29122.kap
29127.kap
29200.kap
-29323.kap
+#29323.kap chart is transverse mercator...or ??? doesn't work in opencpn either???
29018.kap
29101.kap
29123.kap
View
179 nga_regions/REGION_NGA_04.dat
@@ -0,0 +1,179 @@
+#South America East Coast: Cape Horn to Columbia
+##
+107.kap
+##
+200.kap
+201.kap
+202.kap
+##
+402.kap
+##
+25001.kap
+##
+26001.kap
+##
+##ALL 24000s were included
+24000.kap
+24110.kap
+24156.kap
+24221.kap
+24291.kap
+24400.kap
+24471.kap
+24004.kap
+24120.kap
+24159.kap
+24222.kap
+24292.kap
+24402.kap
+24483.kap
+24008.kap
+24121.kap
+24160.kap
+24223.kap
+24293.kap
+24404.kap
+24485.kap
+24012.kap
+24122.kap
+24161.kap
+24224.kap
+24294.kap
+24414.kap
+24486.kap
+24016.kap
+24123.kap
+24162.kap
+24230.kap
+24311.kap
+#24430.kap broken
+24490.kap
+24020.kap
+24130.kap
+24164.kap
+24231.kap
+24312.kap
+24433.kap
+24491.kap
+24024.kap
+24131.kap
+24170.kap
+24233.kap
+24319.kap
+24434.kap
+24500.kap
+24028.kap
+24132.kap
+24180.kap
+24234.kap
+24320.kap
+24435.kap
+24501.kap
+24050.kap
+24133.kap
+24190.kap
+24235.kap
+24321.kap
+24444.kap
+24502.kap
+24052.kap
+24140.kap
+24191.kap
+24240.kap
+24322.kap
+24450.kap
+24503.kap
+24053.kap
+24141.kap
+24192.kap
+24250.kap
+24340.kap
+24454.kap
+24504.kap
+24055.kap
+24142.kap
+24200.kap
+24251.kap
+24350.kap
+24461.kap
+24508.kap
+24058.kap
+24149.kap
+24201.kap
+24252.kap
+24360.kap
+24462.kap
+24509.kap
+24060.kap
+24150.kap
+24202.kap
+24260.kap
+24370.kap
+24463.kap
+24510.kap
+24080.kap
+24151.kap
+24203.kap
+24263.kap
+24376.kap
+24464.kap
+24511.kap
+24100.kap
+24152.kap
+24210.kap
+24270.kap
+24380.kap
+24465.kap
+24512.kap
+24101.kap
+24153.kap
+24211.kap
+24271.kap
+24381.kap
+24468.kap
+24513.kap
+24102.kap
+24154.kap
+24215.kap
+24274.kap
+24385.kap
+24469.kap
+24517.kap
+24103.kap
+24155.kap
+24220.kap
+24290.kap
+24390.kap
+24470.kap
+##ALL 23000s were included
+#23000.kap BROKEN
+23023.kap
+23071.kap
+23121.kap
+23125.kap
+23150.kap
+23158.kap
+23010.kap
+23030.kap
+23101.kap
+23122.kap
+23141.kap
+23151.kap
+23159.kap
+23020.kap
+23051.kap
+23115.kap
+23123.kap
+23145.kap
+23152.kap
+##
+22036.kap
+22430.kap
+22433.kap
+22434.kap
+22436.kap
+22437.kap
+22440.kap
+22471.kap
+22481.kap
+22032.kap
View
108 nga_regions/REGION_NGA_05.dat
@@ -0,0 +1,108 @@
+#Bermuda Bahamas Caymans and Caribbean
+##
+108.kap
+400.kap
+401.kap
+402.kap
+##
+11461.kap
+##
+#25000s
+25001.kap 25483.kap 25526.kap 25565.kap 25611.kap 25724.kap
+25018.kap 25484.kap 25527.kap 25566.kap 25613.kap 25800.kap
+25400.kap 25487.kap 25550.kap 25570.kap 25700.kap 25803.kap
+25480.kap 25521.kap 25561.kap 25575.kap 25710.kap 25842.kap
+25481.kap 25524.kap 25563.kap 25600.kap 25720.kap 25847.kap
+25482.kap 25525.kap 25564.kap 25609.kap 25723.kap 25848.kap
+#MOST 26000s were included
+26001.kap
+26143.kap
+26187.kap
+26229.kap
+26262.kap
+26320.kap
+26030.kap
+26145.kap
+26190.kap
+26237.kap
+26267.kap
+26323.kap
+26100.kap
+26146.kap
+26203.kap
+26240.kap
+26280.kap
+26328.kap
+26050.kap
+26125.kap
+26148.kap
+26207.kap
+26244.kap
+26284.kap
+26340.kap
+26127.kap
+26150.kap
+26210.kap
+26247.kap
+26295.kap
+26341.kap
+26128.kap
+26181.kap
+26218.kap
+26256.kap
+26306.kap
+26342.kap
+26140.kap
+26182.kap
+26219.kap
+26259.kap
+26307.kap
+26343.kap
+26141.kap
+26184.kap
+26220.kap
+26260.kap
+26308.kap
+26344.kap
+26142.kap
+26186.kap
+26224.kap
+26261.kap
+26316.kap
+26345.kap
+##ALL 27000s were included
+27005.kap
+27060.kap
+27084.kap
+27130.kap
+27163.kap
+27201.kap
+27222.kap
+27040.kap
+27061.kap
+27087.kap
+#27141.kap BROKEN
+27180.kap
+27202.kap
+27041.kap
+27062.kap
+27100.kap
+27142.kap
+27183.kap
+27206.kap
+27042.kap
+27080.kap
+27120.kap
+27160.kap
+27184.kap
+27207.kap
+27044.kap
+27082.kap
+27122.kap
+27161.kap
+27186.kap
+27211.kap
+##
+28004.kap
+28006.kap
+28300.kap
View
12 nga_regions/REGION_NGA_06.dat
@@ -0,0 +1,12 @@
+#Central America East Coast: Mexico to Columbia
+11004.kap
+##
+26001.kap
+26042.kap
+26060.kap
+26063.kap
+26066.kap
+26068.kap
+26070.kap
+26081.kap
+26083.kap

0 comments on commit 80a5795

Please sign in to comment.