Clipping/Bounding Box

Am looking for some suggestions on the optimal way to do the following.
Using the data in the table geod_counties, one could request the features and geometries of state='New Hampshire' and county='Hillsborough'. But when one displays the results in a mapping tool such as MapViewer one would also want some of the features/geometries from the 7 counties that TOUCH (or ANYINTERACT) with Hillsborough county. In essence one clips (or cuts) the map around an area of interest creating a box. As far as I understand, other than when applied to LRS, there isn't an explicit clip/box procedure. I have tried a number of ways to do this using SDO_TOUCH, SDO_BUFFER, SDO_RELATE, SDO_INTERSECTION, and a number of others. It appears that a combination of SDO_RELATE and SDO_INTERSECTION is the correct way to do this but I am not clear that this is the optimal way to "create the box" around an area of interest.
Any comments or advice would be appreciated. And also if someone has written a function to do the above and wouldn't mind sharing, it would be appreciated.
Thank you.

I resolved this issue last Friday; am just posting this now. The following appeared to work. In this particular case, the user request is to select geometric features of Hillsborough County, New Hampshire without inputing an x/y starting centroid or a map size as you would find in MapViewer demo applications such as topology.jsp.
SQL> select sdo_geom.sdo_mbr(a.geom) mbr from geod_counties a where a.state = 'New Hampshire' and county = 'Hillsborough';
MBR(SDO_GTYPE, SDO_SRID, SDO_POINT (X,Y,Z), SDO_ELEM_INFO, SDO_ORDINATES)
SDO)GEOMETRY(2003,8307,NULL,SDO_ELEM_INFO_ARRAY(1,1003,3), SDO_ORDINATE_ARRAY(-72.062851,42.696899,-71.246002,43.207188))
SQL> select sdo_geom.sdo_intersection(geom.sdo_geometry(2003,8037,null,
sdo_elem_info_array(1,1003,3),sdo_ordinate_array(-72.062751,42.696899,-71.246002,43.207188)),0.0005) int_geom
from geod_counties a
where mdsys.sdo_relate(a.geom,sdo_geometry(2003,8307,null,sdo_elem_info_array(1,1003,3),
mdsys.sdo_ordinate_array(-72.062751,42.696899,-71.246002,43.207188)),
'mask=anyinteract querytype=window') = 'TRUE;
Thank you all for your assistance.

Similar Messages

  • AC3 Collison detection inside a movie clip (rather than with its bounding box)

    I want to navigate a maze and therefore I want to create collison detection with the maze itself, but when I try the collison is made with the entire maze movieclip, so even if my character is safe in a corridor without touching the walls of the maze it still counts as collisons.
    Is there a way to detect collison with the content iside the movieclip rather than it's bounding box?

    Check out Collision Detection Kit: http://code.google.com/p/collisiondetectionkit/

  • Bounding box of placed pdf 'reflecting' objects of parent Ai file... Not what I want!

    As a self-taught Illustrator CS3 user I keep running into confounding issues.  The latest is this:
    Artboard is US letter size.  I have a placed jpg image in the top half that extends beyond the artboard on one side.  Only want 3/4 of the jpg content
    in the final product.
    Some text at the bottom.
    All in all a basic poster. 
    A clipping mask hides the part of the image that extends past the arboard.
    I save this 'parent' Ai file as a copy PDF - no layers - no editing - no thumbnails ect.  Keep original Ai parent file for later editing.
    I want to put this PDF into another ai document, but when I do, the bounding box extends past the pdf content out to
    where the jpg image is in the parent Ai file.
    Why?  Why can't I save a pdf that produces a stand alone img/doc without any apparent connection to its 'parent'?  Why can't this just happen without me having to crop the original jpg in photoshop to fit the parent Ai document perfectly and or somehow crop the image in the parent Ai. 
    Oh, and I have tried the crop tool and "make" crop area under the Object menu that contains only what is showing on the artboard.
    Same result.
    PDF that in Preview shows correctly but when placed in another ai file somehow 'becomes' larger with a bounding box that includes much more than what is actually there.
    This is maddeningly stupid IMO.
    Hope someone can be that patient professor of the design/Illustrator course that I can't afford, but that I need so desperately all the time.

    Why?
    I don't know; I just chalk it up as another instance of the sloppiness that permeates Illustrator, and the convoluted multiple nested clipping paths so common in PDFs.
    If I place the PDF as a Link, its bounding box corresponds to the clipping mask of the PDF.
    If I place the PDF embedded, not linked, then I get the result you describe.
    That arguably sort of makes sense in that, when you "place" (but embed) a PDF in Illustrator, you're really importing its content, including the nested clipping paths; and AI CS3 and prior always displays the bounds and edges of masked portions of clipping paths. When you "place" the PDF as a link, it's a preview that displays on the page, as if you were just linking a raster image.
    In CS4 and CS5, Adobe finally fixed the silliness of displaying edges of masked portions of the content of clipping paths, so in those versions, it probably acts the way you want whether linked or embedded. (I only have CS3 on this laptop, so can't verify right now.)
    JET

  • Bounding box, paths and control points are not visible

    When I select an element, in this case a building, to make changes, the entire file is selected instead of the building. There is nothing to ungroup when this happens. Can someone tell me how to fix this? Thanks

    pk,
    You may have a look for Clipping Masks or other means of disguising the artwork. You may start by looking at the Layers palette/panel (expand as needed).
    Presuming we are not just talking about View>Show Bounding Box (and/or Show Edges).

  • Bounding Box Doesn't Match Object (Illustrator CS4)

    I'm not sure if this is an error on my part or a bug, but for the last week or so, the bounding box for my objects hasn't actually matched the objects. This is really problematic when I try to transform the object using the bounding box handles.
    On occasion, after I transform the object the bounding box will match it again and will transform correctly. Sometimes it will stay off. If it does reorient itself, undoing the transformations back the original size will cause the bounding box to reset back to it's mismatched state.
    Things I have tried to resolve the issue:
    Reset the Bounding Box
    Copying and pasting the shape to a different document
    Starting a new document from scratch (I thought it was possible I corrupted the file)
    Return Keyboard Shortcuts to the Default
    Restarting Illustrator
    Restarting my System
    To my knowledge, my system hasn't been updated in the last week nor has anything new been installed. However, IT does push out maintenance so there is a possibiltiy that it was updated and I don't know about it. The only programs open while working in Illustrator are Bridge, Outlook 2007, IE8, Explorer, InDesign CS4, Word 2007, Photoshop CS4, Acrobat Professional 9, Dreamweaver CS4, PowerPoint 2007, Previewer and possibly FireFox 3.something (though not necessarily all at once - generally about 7 of the above listed). My system runs XP Professional SP3 with an Intel Core2 Quad @ 2.66GHz and 3.25 GB of RAM. The objects are not grouped, do not contain clipping masks, do not contain transparency masks and are not compound paths. They are simple paths/shapes, often rectangles.
    I have included some pictures to better explain my issue. This first image indicates how the bounding box doesn't match the rectangle.
    The second image shows the process of transforming the shape via dragging.
    The third image shows the result.
    Thanks for any help you can provide!

    Mr. Bugge:
    Thank you for your response and I apologize for the delay in mine. I couldn't try all of the fixes immediately because I had to complete some job duties before I could tinker with this issue.
    Things that did not work:
    Closing Firefox
    Clearing the Preferences
    Moving the Preferences Folder
    Deleting Temp Files
    Closing Other Adobe Programs (Including Bridge Running in the Background
    Things I cannot do for various reasons:
    Re-installing Acrobat
    Turning Off the Firewall (My Company Only Uses 1 Anyway)
    Things I haven't tried yet but hope to try later:
    Update Printer Definition or Change Default Printer
    Check for Corrupt Fonts
    Clear My Font Cache
    Things I learned:
    The issue is most easily recreated by transforming an object to a smaller object. However, zooming in will realign the bounding box but it will only stay aligned when zoomed in. I find it very curious.
    Even if I don't end up finding an answer, I do appreciate your time and help.

  • Vector Smart Object bounding box is huge

    I've copied and pasted a shape from Illustrator into Photoshop CS6.
    When I go to transform layer, Photoshop is putting a large bounding box around the object — even though the object's bounds are much smaller.
    Any ideas how to fix this? No other layers are selected or linked to the Vector smart object.

    Turns out that arrow was really a clipping path for an invisible giant rectangle.
    Seems silly that Photoshop cares about hidden stuff inside a clipping path, no?

  • Illustrator files not getting cut off in bounding box of InDesign

    Hello,
    I have a page in illustrator full of vector images. I bring it into InDesign and crop them by putting each piece in it's own window. Then, I make a pdf. When I open the pdf in Illustrator it looks fine but when I hit the preview/artwork option, I can see that all the images from that original Illustrator doc with it. Is there any way to have just the vectors I have revealed through each InDesign window come in? The InDesign Files contains multiple pages and each window contain only ones part of that illustrator file...but all the other pieces in the illustrator file stay outside that cropped area of the window when brought into Illustrator again...anyone know how to avoid this?
    thanks
    babs

    I think it should work the way she is doing it I would say this is a bug of either ID or Illustrator but you have a work around, however if she changes her mind or is asked to recrop she now has one lousy time.
    The way she was doing it is the logical way and what the feature in ID was about.
    Perhaps before hitting the preview artwork she can flatten the art or maybe by placing the the pdf in a blank Ai document instead of opening it would do the trick.
    I see what she is saying, the solution is is simple when you get the pdf into AI select all the art and open the pathfinder and hit the second icon on the bottom row which is trim that will clear the art work outside of the bounding box now when you hit outline preview or select all the art you will see only what you have showing in ID.
    But I would place this in a already existing or in a new document rather than opening it because if you accidentally save it without renaming it I think you might lose the ability to use that pdf to edit the clipping mask which is what you are creating in ID and it is translated that way in ID as well.
    Unless of course you really want to lose the rest of the artwork for sure.

  • Bounding box bug CS6 (Creative Cloud)

    Anyone else have the bounding box occassionally stick to an object? I can select other objects but the bounding box will extend across the artboard from the new object and group the older object with it. I can't click off of the object either. I think it's mainly a text box problem, I can't recall having this problem with shapes or path drawn objects. I just fixed it by isolating it then immediately jumping out of that isolation, it was suddenly unselected. Anyway, just checking in with other users, wanted to catalog this at least.
    EDIT: Just had this happen with a photo in illustrator, as well as a circle I just clicked off from creating. The only hinderance it brings is that scaling, rotating, etc. is directly correlated to both selected objects rather than the one I intend to scale or rotate, etc.

    I've seen this happen on and off since the original CS. On both Mac and Windows systems across several OS versions. Sad to hear it's still with us in CC. I've seen it blamed on all sorts of things; text objects, clipping masks, imbedded / non-imbedded objects, a particular OS, etc. None of which have ever held true in all cases.
    Anyway, one way that (sometimes) solves it is to;
    Create another object, even a small square.
    Align the new object with the 'stuck' one - use any alignment at all. If another object moves, you can immediately undo.
    In any case, once you deselect and delete your dummy object after the align (or align and undo), four times out of five the stuck bounding box is gone (for a while, anyway).
    good luck.
    --OB

  • Bounding Box Overlap Print Issues - Very FRUSTRATED?

    Someone with more knowledge than I, please help.
    I have created several works in AI. In nearly all of them I've had issues printing to .pdf especially when the bounding boxes for my text elements overlap each other.
    The result when printed is an occluding/blocking/masking of the text so that the color is not correct and there is a clear line where the bounding box is overlapping the text elements.
    This seems to be happening regardless if the two text boxes are in the same layer or separate layers.
    For the life of me I can't figure out how to make this a NON-issue.
    Can someone please provide me with an answer. I have a deadline to meet and this is driving me out of my mind.
    Thank you. Thank you.

    Any way you could post a screen shot of the problem?  Is text getting clipped?  Not sure if a bounding box would effect anything related to color.  I usually apply a locked holding line around the document ( i.e., if the document is 8.5 x 11", create a holding line [ rectangle ] 8.5 x 11 with no stroke, no fill ).  Then, the PDF will technically hold all of the contents without anything getting clipped.

  • Forcing onPress to react on the exact shape, rather then on the bounding box

    If I have a clip with an imported image then clip.onPress
    reacts on the
    bounding box of the clip rather then on the exact shape of
    the imported
    image even if the imported image has a transparent
    background.
    To make it to react to in image shape only I have to use
    Trace BitMap which
    results in deterioration of the image quality and if the clip
    is moving,
    Trace BitMap also slows down computer perfprmance.
    Is there other technique to make onPress to react on the
    exact shape, rather
    then on the bounding box?

    An image is always rectangular, it just may have transparent
    parts. So an MC containing an image is always as big as the whole
    image (at least).
    You could use the MovieClip.hitArea property, and create
    another MC inside your clip that specifies the active area for
    mouse clicks. This is easy if you have the image loaded into the
    clip inside the Flash IDE.
    If it's loaded on runtime, you might use the BitmapData class
    (if you use Flash 8) to get the pixel value of the image at the
    position where the image was clicked, check if it's transparent or
    opaque, and decide whether to call the onPress action or not.
    hth,
    blemmo

  • How do you not align with the biggest bounding box?

    This is driving me up the wall, I know a way around it, but at some point later in this project the work around won't be efficient enough.
    Ok here is the problem, I have four objects that are going to be large oversized buttons on a website. Inside these buttons (which are square) I have placed a picture, as the picture is larger than the button area I have duplicated the button box and made it a clipping mask for the picture. I have aligned it all up and grouped everything for one button together as one big group. I have done this for each button, so now all buttons are made up of a group of objects.
    The problem is because these images are too big for the buttons and I have clipped them there bounding box is bigger than the buttons so when I come to align them or distribute them it all goes wrong. Why? Well the distribution/alignment goes on the combined area bounding box, in this case the pictures are much bigger so it's pretty much there bounding boxes that everything is getting aligned with. In InDesign it treats the bounding boxes of objects within a clipping mask as being the size of the clipping mask, which is exactly what I want to do here. This seems a massive limitation and I can't see why I would ever want to distribute or align with something that I am effectivly removing from the document.
    The work around is quite simple, I can take everything out of the button boxes, align the button boxes and then put everything back in the button boxes. This would be acceptable if I only had to do it once, but if (and I probably will) want to tweak the layout as I go it's going to be a pain in the rear.
    Any ideas?

    I could pre-crop the images in PS but then I loose the ease of changing them in Illustrator. I always try and do as much work as possible in Illustrator so I am able to undo or change things quickly, I am not a big fan of the finality of working with raster images.
    The real issue is that the client is comming to look at some mockups and if they ask for changes, which we usually do there and then, we will look a bit silly as we complete destruct and then re-construct each object.
    If those align scripts work how I am thinking I might make 4 place holder graphics (that I switch off when I am finished) and centre align each button to those with the scripts.
    Illustrator should just be have an option to align the visable layers or items only. I would even accept the ability that when you switch off a layer in a group (say these pictures where there bounding box goes beyond that of the clipping mask) so your only active layer is a box the same size as your clipping mask and so that is the only bounding box that gets used, but no the off layers still have active bounding boxes.
    Regards
    Paul

  • 3d figure bounding box

    I load some 3d model into 3d figure in labview. I need to find bounding box of that boject programmatically and then I am going to use clip plane on that object strating from minimum (object visible) to maximum (object invisible). Do You have any Ideas?

    Vi and model  attached.
    Next thing that i want to achieve after cutting plane is applied:
    -Places where object was cut have to change color like this:
    Any sugestions on this?
    Attachments:
    testt.zip ‏2033 KB

  • Text put into a canvas element with context.fillText() always has a black box where each letter goes. If the text is black you just see the black rectangle. If the text is not black you see it on the black bounding box. Surely this is not right.

    This has happened on the last few versions of firefox, as long as canvas has been supported. I see other people's screen shots from canvas tutorials, and the text always looks normal. On my system, any text put into a canvas element via context.fillText() will have a black bounding box for each letter, sized appropriately for the letter. If the text is black, of course you only see rectangles. If the text is a contrasting color, then you can read it, but it looks bizarre.

    Thomas...same kind of crap here.
    I used Custom Text - entered a sentence, hit return, entered another.
    Set to 72 pt.
    The default alignment is centred - I want left aligned text...the text start point stays at the centre of frame and the sentence runs off the edge of the bounding box.
    There is no settings in the Text or Title inspector dialog to correct that!
    Using Transform will not sort it!

  • Bounding boxes appear in Acrobat after exporting from InDesign

    Whenever I create outline fonts in my CS3 version of InDesign (I haven't upgraded to CS4 on this one program yet), I'm left with some very strange thin white lines surrounding some or all of the resulting letters that look suspiciously like bounding boxes. This never seems to occur if I don't create outline fonts, but simply embed the fonts and create a PDF using the Export command, so I have to believe the anomaly has something to do with this conversion process within the program. If I use illustrator CS4 to create outline fonts and then place them within my InDesign documents, I don't appear to have the problem. However, that's not a very desirable solution as it negatively impacts the fluidity of layouts and the ease of design, both of which I use in design for.
    And yes, these small thin white lines do print, so the problem is far more than merely academic.
    Has anyone else ever experienced this issue, and if so, how did you solve the problem (assuming you did)?

    Sorry about that, I apparently forgot to attach the file; have done so now.
    The method I'm using for creating outlines is simply to use the "Create Outlines" command under the Type menu within InDesign. Then I create my PDF files by using the Export command under the File menu and choosing the PDF/X1a option. 99% of the time I get perfect results, it's only when I try to make outline type that I encounter this problem. You'll clearly see the artifacts in question in the example attached.
    I don't know whether or not the press would have printed these artifacts, as you suggest, since no printer has been willing to execute a file that shows any anomaly in the proof process. I can't say that I blame them.
    Hopefully you will see what I'm talking about and can recommend a solution, though I like your idea of simply giving them a properly executed file and then telling them to get a life. It hasn't worked so far, as I unfortunately deal with a lot of Neanderthals around here, but I suppose it's worth putting forth again the next time this issue arises. It will.
    By the way, no print house of my choosing is this far behind the curve, if at all. These cavemen are always printers who have long-standing relationships with my clients, and for whatever reason (generally lowest cost I'm sure), the clients think they hung the moon. We, of course, no otherwise, but it does it profit a designer to tell his client he or she is crazy for using a printer who is a decade behind the technology curve.
    We cowboy up and seek solutions, eh?

  • I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    What do you mean a moderator

Maybe you are looking for

  • IPhoto no longer works with Nikon 5100 after upgrade to 10.8

    IPhoto with newly installed Mountain Lion no longer recognizes a connection to my  Nikon 5100.  The USB cable is good, as it works with  my other Macs  -- OSX versions 10.6.8 and 10.7.4, just as it did with my Imac before I upgraded to 10.8.  My Pref

  • Help!: syncing with itunes just erased all my data

    is there any way to recover?  I just wanted to copy one app from itunes running on my pc to my ipad.   Now all of my ipad icons are all mixed up (different order than before) and several of my applications are no longer on the ipad.  When I tried to

  • Transfer order

    Hi Is creation of transfer order(LT03)must in the order to cash cycle. Thanks

  • Joining of cluster tables

    Hello Mr .kishan ,navneet ,sachin and aakash , I asked a doubt and you guyz are making mountain out a molehill.No one is Mr .Know here in this comm, the community should cater to the needs of all the proficiency levels . You should also try to think

  • Stop audio when projector looses focus???

    I am using the MPEG Advance Xtra to play audio. I import the audio with the Xtra and it places an audio member in my cast. I then drag that onto the stage and into Channel 20. It spans 10 frames and there is a stop command on the last frame so that t