Révision 7096d2f9
Ajouté par Jocelyn Dealande il y a presque 10 ans
class/TilesGenerator.php | ||
---|---|---|
40 | 40 |
if ($err) { |
41 | 41 |
throw (new TilesGeneratorRightsException($err)); |
42 | 42 |
} |
43 |
|
|
44 | 43 |
} |
45 | 44 |
|
46 | 45 |
public function mk_command() { |
47 | 46 |
/** Returns the command to execute |
48 | 47 |
*/ |
49 |
$c = sprintf('%s/%s -p "%s" "%s"', |
|
48 |
$c = sprintf('%s/%s -p "%s/" "%s"',
|
|
50 | 49 |
CELUTZ_PATH, $this::SCRIPT_RELATIVE_PATH, |
51 |
$this->panorama->tiles_prefix(), $this->img_path);
|
|
50 |
$this->panorama->tiles_path(), $this->img_path);
|
|
52 | 51 |
return escapeshellcmd($c); |
53 | 52 |
} |
54 | 53 |
|
Formats disponibles : Unified diff
Refacto of Tiles handling and simplified a bit file naming for tiles/params.
By the way, fixes #297
THIS COMMIT BREAKS FILE LAYOUT AND REQUIRES MIGRATION (SEE BELLOW).
To migrate data :
cd tiles
find . '*.jpg' -exec rename 's/[^\/]*_(([0-9]{3}_){2}([0-9]{3}))/$1/' {} \;
rename 's/(.*\/).*\.params/$1site.params/' */*.params