Changeset 40389 for trunk/PS-IPP-PStamp
- Timestamp:
- Apr 12, 2018, 9:10:37 AM (8 years ago)
- Location:
- trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp
- Files:
-
- 2 edited
-
Job.pm (modified) (2 diffs)
-
RequestFile.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r39209 r40389 1666 1666 foreach my $row (@$rowList) { 1667 1667 print $pointsList "$npoints $row->{CENTER_X} $row->{CENTER_Y}\n"; 1668 $npoints++; 1668 #$npoints++; 1669 ## MEH hack -- add width, height corners 1670 if ( ($row->{OPTION_MASK} & $PSTAMP_MULTI_OVERLAP_IMAGE) && !($row->{COORD_MASK} & $PSTAMP_RANGE_IN_PIXELS) ){ 1671 ## +ra +dec corner 1672 printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}+$row->{WIDTH}/3600.0, $row->{CENTER_Y}+$row->{HEIGHT}/3600.0; 1673 #$npoints++; 1674 ## +ra -dec corner 1675 printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}+$row->{WIDTH}/3600.0, $row->{CENTER_Y}-$row->{HEIGHT}/3600.0; 1676 #$npoints++; 1677 ## -ra +dec corner 1678 printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}-$row->{WIDTH}/3600.0, $row->{CENTER_Y}+$row->{HEIGHT}/3600.0; 1679 #$npoints++; 1680 ## -ra -dec corner 1681 printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}-$row->{WIDTH}/3600.0, $row->{CENTER_Y}-$row->{HEIGHT}/3600.0; 1682 #$npoints++; 1683 } 1684 #### 1685 $npoints++; 1669 1686 # this gets overwitten if an overlapping image is found 1670 1687 $row->{error_code} = $PSTAMP_NO_OVERLAP; … … 1725 1742 $ref = $components{$component} = []; 1726 1743 } 1727 push @$ref, $ptnum; 1744 #push @$ref, $ptnum; 1745 ## MEH hack -- only push ptnum if not already, so check if ptnum in list 1746 push(@$ref, $ptnum) unless grep{$_ == $ptnum} @$ref; 1747 ## 1728 1748 my $row = $rowList->[$ptnum]; 1729 1749 # this row found a match -
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm
r36811 r40389 35 35 $PSTAMP_SELECT_UNCONV 36 36 $PSTAMP_RESTORE_BACKGROUND 37 $PSTAMP_MULTI_OVERLAP_IMAGE 37 38 $PSTAMP_USE_IMFILE_ID 38 39 $PSTAMP_NO_WAIT_FOR_UPDATE … … 81 82 our $PSTAMP_SELECT_UNCONV = 2048; 82 83 our $PSTAMP_RESTORE_BACKGROUND = 4096; 83 # unused 819284 84 # MEH -- previously unused 8192 85 our $PSTAMP_MULTI_OVERLAP_IMAGE = 8192; 85 86 our $PSTAMP_USE_IMFILE_ID = 16384; 86 87 our $PSTAMP_NO_WAIT_FOR_UPDATE = 32768;
Note:
See TracChangeset
for help on using the changeset viewer.
