Branch Coverage

blib/lib/Geo/OSR.pm
Criterion Covered Total %
branch 23 220 10.4


line true false branch
73 0 2 if ($param{'WKT'}) { }
0 2 elsif ($param{'Text'}) { }
0 2 elsif ($param{'Proj4'}) { }
0 2 elsif ($param{'ESRI'}) { }
1 1 elsif ($param{'EPSG'}) { }
0 1 elsif ($param{'EPSGA'}) { }
0 1 elsif ($param{'PCI'}) { }
0 1 elsif ($param{'USGS'}) { }
0 1 elsif ($param{'XML'}) { }
0 1 elsif ($param{'GML'}) { }
0 1 elsif ($param{'URL'}) { }
0 1 elsif ($param{'ERMapper'}) { }
0 1 elsif ($param{'ERM'}) { }
0 1 elsif ($param{'MICoordSys'}) { }
0 1 elsif ($param{'MapInfoCS'}) { }
1 0 elsif ($param{'WGS'}) { }
107 0 1 if $@
111 1 0 if defined $self
115 2 2 unless $_[0]->isa('HASH')
117 0 2 unless defined $self
119 2 0 if (exists $OWNER{$self})
261 0 0 if defined $self
265 0 0 unless $_[0]->isa('HASH')
267 0 0 unless defined $self
269 0 0 if (exists $OWNER{$self})
518 0 0 if @_ == 1
520 0 0 unless $format
521 0 0 unless $format
522 0 0 unless $format
523 0 0 if ($format eq 'WKT' or $format eq 'Text') { }
0 0 elsif ($format eq 'PrettyWKT') { }
0 0 elsif ($format eq 'Proj4') { }
0 0 elsif ($format eq 'PCI') { }
0 0 elsif ($format eq 'USGS') { }
0 0 elsif ($format eq 'GML' or $format eq 'XML') { }
0 0 elsif ($format eq 'MICoordSys' or $format eq 'MapInfoCS') { }
526 0 0 exists $params{'simplify'} ? :
535 0 0 exists $params{'dialect'} ? :
548 0 0 if (exists $params{'Authority'} and exists $params{'TargetKey'} and exists $params{'Node'} and exists $params{'Code'}) { }
0 0 elsif (exists $params{'Node'} and exists $params{'Value'}) { }
0 0 elsif (exists $params{'AngularUnits'} and exists $params{'Value'}) { }
0 0 elsif (exists $params{'LinearUnits'} and exists $params{'Node'} and exists $params{'Value'}) { }
0 0 elsif (exists $params{'LinearUnits'} and exists $params{'Value'}) { }
0 0 elsif ($params{'Parameter'} and exists $params{'Value'}) { }
0 0 elsif ($params{'Name'}) { }
0 0 elsif ($params{'GuessFrom'}) { }
0 0 elsif ($params{'LOCAL_CS'}) { }
0 0 elsif ($params{'GeocentricCS'}) { }
0 0 elsif ($params{'VerticalCS'} and $params{'Datum'}) { }
0 0 elsif ($params{'CoordinateSystem'}) { }
0 0 elsif ($params{'Projection'}) { }
559 0 0 unless exists $Geo::OSR::PARAMETERS{$params{'Parameter'}}
562 0 0 $params{'Normalized'} ? :
576 0 0 if ref $params{'Parameters'}
577 0 0 if ($params{'CoordinateSystem'} eq 'State Plane' and exists $params{'Zone'}) { }
0 0 elsif ($params{'CoordinateSystem'} eq 'UTM' and exists $params{'Zone'} and exists $params{'North'}) { }
0 0 elsif ($params{'CoordinateSystem'} eq 'WGS') { }
0 0 elsif ($params{'CoordinateSystem'} and $params{'Datum'} and $params{'Spheroid'}) { }
0 0 elsif ($params{'CoordinateSystem'} and $params{'HorizontalCS'} and $params{'VerticalCS'}) { }
578 0 0 exists $params{'NAD83'} ? :
579 0 0 exists $params{'UnitName'} ? :
580 0 0 exists $params{'UnitConversionFactor'} ? :
583 0 0 exists $params{'North'} ? :
595 0 0 unless exists $Geo::OSR::PROJECTIONS{$params{'Projection'}}
597 0 0 if ref $params{'Parameters'}
598 0 0 if ($params{'Projection'} eq 'Albers_Conic_Equal_Area') { }
0 0 elsif ($params{'Projection'} eq 'Azimuthal_Equidistant') { }
0 0 elsif ($params{'Projection'} eq 'Bonne') { }
0 0 elsif ($params{'Projection'} eq 'Cylindrical_Equal_Area') { }
0 0 elsif ($params{'Projection'} eq 'Cassini_Soldner') { }
0 0 elsif ($params{'Projection'} eq 'Equidistant_Conic') { }
0 0 elsif ($params{'Projection'} eq 'Eckert_IV') { }
0 0 elsif ($params{'Projection'} eq 'Eckert_VI') { }
0 0 elsif ($params{'Projection'} eq 'Equirectangular') { }
0 0 elsif ($params{'Projection'} eq 'Gauss_Schreiber_Transverse_Mercator') { }
0 0 elsif ($params{'Projection'} eq 'Gall_Stereographic') { }
0 0 elsif ($params{'Projection'} eq 'Goode_Homolosine') { }
0 0 elsif ($params{'Projection'} eq 'Interrupted_Goode_Homolosine') { }
0 0 elsif ($params{'Projection'} eq 'Geostationary_Satellite') { }
0 0 elsif ($params{'Projection'} eq 'Gnomonic') { }
0 0 elsif ($params{'Projection'} eq 'Hotine_Oblique_Mercator') { }
0 0 elsif ($params{'Projection'} eq 'Hotine_Oblique_Mercator_Two_Point_Natural_Origin') { }
0 0 elsif ($params{'Projection'} eq 'Krovak') { }
0 0 elsif ($params{'Projection'} eq 'Lambert_Azimuthal_Equal_Area') { }
0 0 elsif ($params{'Projection'} eq 'Lambert_Conformal_Conic_2SP') { }
0 0 elsif ($params{'Projection'} eq 'Lambert_Conformal_Conic_1SP') { }
0 0 elsif ($params{'Projection'} eq 'Lambert_Conformal_Conic_2SP_Belgium') { }
0 0 elsif ($params{'Projection'} eq 'miller_cylindrical') { }
0 0 elsif ($params{'Projection'} =~ /^Mercator/) { }
0 0 elsif ($params{'Projection'} eq 'Mollweide') { }
0 0 elsif ($params{'Projection'} eq 'New_Zealand_Map_Grid') { }
0 0 elsif ($params{'Projection'} eq 'Oblique_Stereographic') { }
0 0 elsif ($params{'Projection'} eq 'Orthographic') { }
0 0 elsif ($params{'Projection'} eq 'Polyconic') { }
0 0 elsif ($params{'Projection'} eq 'Polar_Stereographic') { }
0 0 elsif ($params{'Projection'} eq 'Robinson') { }
0 0 elsif ($params{'Projection'} eq 'Sinusoidal') { }
0 0 elsif ($params{'Projection'} eq 'Stereographic') { }
0 0 elsif ($params{'Projection'} eq 'Swiss_Oblique_Cylindrical') { }
0 0 elsif ($params{'Projection'} eq 'Transverse_Mercator_South_Orientated') { }
0 0 elsif ($params{'Projection'} =~ /^Transverse_Mercator/) { }
0 0 elsif ($params{'Projection'} eq 'Tunisia_Mining_Grid') { }
0 0 elsif ($params{'Projection'} eq 'VanDerGrinten') { }
616 0 0 @parameters == 4 ? :
676 0 0 unless $variant
677 0 0 unless $variant
678 0 0 $variant ? :
701 0 0 if (wantarray) { }
703 0 0 if ($zone < 0)
720 0 0 unless ref $points->[0][0]