projects
/
google-map-tiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7416b38
)
don't die on unexistant table drop
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 2 Apr 2011 16:36:12 +0000
(18:36 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 2 Apr 2011 16:36:12 +0000
(18:36 +0200)
tiles.pl
patch
|
blob
|
history
diff --git
a/tiles.pl
b/tiles.pl
index
a8d6998
..
036780a
100755
(executable)
--- a/
tiles.pl
+++ b/
tiles.pl
@@
-69,7
+69,7
@@
if ( !(-e $icon1) or !(-e $icon2)) # Icon file missing - bad thing
# (35,-89),(34,-90)
# (35,-89),(34,-90)
-
$dbh->do("drop table gvp_world_tiles")
;
+
eval { $dbh->do("drop table gvp_world_tiles") }
;
$dbh->do("create table gvp_world_tiles (zoom int2,tilex int4,tiley int4,latpix int4,lngpix int4)") ;
$sth = $dbh->prepare("select (volpnt)[0] as lat, (volpnt)[1] as lng from gvp_world") ;
$dbh->do("create table gvp_world_tiles (zoom int2,tilex int4,tiley int4,latpix int4,lngpix int4)") ;
$sth = $dbh->prepare("select (volpnt)[0] as lat, (volpnt)[1] as lng from gvp_world") ;