Index: trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
===================================================================
--- trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm	(revision 26194)
+++ trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm	(revision 26201)
@@ -236,6 +236,7 @@
         $command .= " $id_opt $id";
         $command .= $component_args if $component_args;
-        # don't include -destreaked if lookup is byid. Let pstampparse check so that the error code gives
-        # the reason as 'not destreaked'
+        # don't include -destreaked if lookup is byid. Let pstampparse check so that the
+        # error code returned to the client for a given component is 'not destreaked'
+        # instead of 'not found'
         $magic_arg = "";
     } elsif ($req_type eq "byexp") {
@@ -250,4 +251,8 @@
     } elsif ($req_type eq "bycoord") {
         $command .= " -radius 3.0 -ra $x -decl $y";
+        if ($img_type ne "raw") {
+            $command .= " -tess_id $tess_id" if $tess_id;
+            $command .= " -skycell_id $skycell_id" if $skycell_id;
+        }
     } else {
         die "Unknown req_type supplied: $req_type";
