7:129
  7   3ˆl–Ãa¾”J_)â‚Á5q§”Å£‘äÇò 8àdhc+¥Ž?Ûƒh¹ÚÂ×      37:132
     5ˆÎ�þ[dk60�pN>ãÀþÛƒ,½ÚÍÂ× :    5package Archive::Zip::FileMember;

use strict;
use vars qw( $VERSION @ISA );

BEGIN {
    $VERSION = '1.68';
    @ISA     = qw ( Archive::Zip::Member );
}

use Archive::Zip qw(
  :UTILITY_METHODS
);

sub externalFileName {
    shift->{'externalFileName'};
}

# Return true if I depend on the named file
sub _usesFileNamed {
    my $self     = shift;
    my $fileName = shift;
    my $xfn      = $self->externalFileName();
    return undef if ref($xfn);
    return $xfn eq $fileName;
}

sub fh {
    my $self = shift;
    $self->_openFile()
      if !defined($self->{'fh'}) || !$self->{'fh'}->opened();
    return $self->{'fh'};
}

# opens my file handle from my file name
sub _openFile {
    my $self = shift;
    my ($status, $fh) = _newFileHandle($self->externalFileName(), 'r');
    if (!$status) {
        _ioError("Can't open", $self->externalFileName());
        return undef;
    }
    $self->{'fh'} = $fh;
    _binmode($fh);
    return $fh;
}

# Make sure I close my file handle
sub endRead {
    my $self = shift;
    undef $self->{'fh'};    # _closeFile();
    return $self->SUPER::endRead(@_);
}

sub _become {
    my $self     = shift;
    my $newClass = shift;
    return $self if ref($self) eq $newClass;
    delete($self->{'externalFileName'});
    delete($self->{'fh'});
    return $self->SUPER::_become($newClass);
}

1;
     7ˆÓ�þ[‹6Y 	Î² ?ÛƒM9ÚÂ× ¦    7library(sf)
library(sp)
library(ggmap)
demo(meuse, ask=FALSE, echo = FALSE, package = "sp")
merc = CRS("+init=epsg:3857")
WGS84 = CRS("+init=epsg:4326")
meuse = spTransform(meuse, WGS84)
bgMap = get_map(unname(st_bbox(st_as_sf(meuse))), source = "google", zoom = 13) # useless without zoom level
# plot with ggmap-google bg:
plot(st_as_sf(spTransform(meuse, merc)), bgMap = bgMap, pch = 16, cex = .5)


# spplot with ggmap-google bg:
#spplot(spTransform(meuse, merc), c("zinc",  "lead"), colorkey = TRUE,
#	sp.layout = list(panel.ggmap, bgMap, first = TRUE))

# plot with ggmap-osm bg:
bb = t(apply(bbox(meuse), 1, bbexpand, .04))
bgMap = get_map(as.vector(bb), source = "osm") # WGS84 for background map
plot(st_as_sf(spTransform(meuse, merc)), bgMap = bgMap, pch = 16, cex = .5)

# RgoogleMaps:
center = apply(coordinates(meuse), 2, mean)[2:1]
library(RgoogleMaps)
g = GetMap(center=center, zoom=13) # google
par(mar = rep(0,4)) # fill full device
plot(st_as_sf(spTransform(meuse, merc)), bgMap = g, pch = 16, cex = .5)

#spplot(st_as_sf(spTransform(meuse, merc)), c("zinc",  "lead"), colorkey = TRUE,
#	sp.layout = list(panel.RgoogleMaps, g, first = TRUE),
#	scales = list(draw = TRUE))

# Norway boundary example:
library(cshapes)
cshp = cshp(as.Date("2000-01-1"))
norway = cshp[cshp$ISO1AL2 == "NO",]

bgMap = get_map(as.vector(bbox(norway))) # no is already in WGS84
plot(st_as_sf(spTransform(norway, merc)), bgMap = bgMap, border = 'red')
     9ˆÎ�þ[eµ›@¸'qà?Ûƒ,³ÚÍÂ× 5    9package Archive::Zip::MockFileHandle;

# Output file handle that calls a custom write routine
# Ned Konz, March 2000
# This is provided to help with writing zip files
# when you have to process them a chunk at a time.

use strict;

use vars qw{$VERSION};

BEGIN {
    $VERSION = '1.68';
    $VERSION = eval $VERSION;
}

sub new {
    my $class = shift || __PACKAGE__;
    $class = ref($class) || $class;
    my $self = bless(
        {
            'position' => 0,
            'size'     => 0
        },
        $class
    );
    return $self;
}

sub eof {
    my $self = shift;
    return $self->{'position'} >= $self->{'size'};
}

# Copy given buffer to me
sub print {
    my $self         = shift;
    my $bytes        = join('', @_);
    my $bytesWritten = $self->writeHook($bytes);
    if ($self->{'position'} + $bytesWritten > $self->{'size'}) {
        $self->{'size'} = $self->{'position'} + $bytesWritten;
    }
    $self->{'position'} += $bytesWritten;
    return $bytesWritten;
}

# Called on each write.
# Override in subclasses.
# Return number of bytes written (0 on 