Browse Source

fix casing

sl@cccfr.de 2 years ago
parent
commit
bf98ee771e
2 changed files with 4 additions and 4 deletions
  1. 1 1
      TextureLoader.gd
  2. 3 3
      TopoLoader.gd

+ 1 - 1
TextureLoader.gd

@@ -10,7 +10,7 @@ func _ready():
 
 func loadTexture(lat, lon):
 	var texName = getTexName(lat, lon)
-	print(texName)
+	print("opening texture "+texName)
 	var image = Image.new()
 	var err = image.load(texName)
 	if err != OK:

+ 3 - 3
TopoLoader.gd

@@ -3,7 +3,7 @@ extends Node
 var Downloader = preload("res://downloader.gd")
 
 var filePrefix = "user://topo"
-var formatString = "%s/sldem2015_%s_%02d%s_%02d%s_%03d_%03d_float.img"
+var formatString = "%s/SLDEM2015_%s_%02d%s_%02d%s_%03d_%03d_FLOAT.IMG"
 #              example sldem2015_512_00n_30n_000_045_float.img
 var datafile = "user://topo/sldem2015_512_00n_30n_000_045_float.img"
 var samplesPerLine = 23040
@@ -77,9 +77,9 @@ func getFilename():
 	#     "%s/sldem2015_%s_%0*d%s_%0*d%s_%00*d_%00*d_float.img"
 	var orientation: String
 	if latMin >= 0:
-		orientation = "n"
+		orientation = "N"
 	else:
-		orientation = "s"
+		orientation = "S"
 	var properties = [filePrefix, resolution, latMin, orientation, latMax, orientation, lonMin, lonMax]
 	return formatString % properties