Reverse Wipeout

Reverse Wipeout

dvikse_cow
Explorer Explorer
7,480 Views
9 Replies
Message 1 of 10

Reverse Wipeout

dvikse_cow
Explorer
Explorer

Good morning.  I have brought in multiple shapefiles from the entire province (rivers, lakes, municipalities, etc), but that's making the drawing extremely sluggish.  Is there a way to wipeout the shapefiles outside of the County boundary?  Like a reverse wipeout?  Thanks!

Dallas

0 Likes
Accepted solutions (1)
7,481 Views
9 Replies
Replies (9)
Message 2 of 10

braudpat
Mentor
Mentor
Hello

When you add GIS FDO layers, instead of adding the whole layers, add FDO layers with a query based on an existing Pline which is your limit / boundary !

Regards, Patrice
Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 3 of 10

dvikse_cow
Explorer
Explorer
I can get this to work... so long as the object/segment resides fully within my boundary. When I add a query to include features by filtering when crossing the polygon, they don't show up. Example, a railroad line segment only shows up when itsnfully within my polyline. Any crossing railroads aren't displaying. Thoughts? Thank you!
0 Likes
Message 4 of 10

braudpat
Mentor
Mentor
Hello from France

If you want to trim FDO Entities relatively to an existing PLine (inside or outside), I believe it's impossible ?!

Maye somebody will have a brillant idea ?

Regards, Patrice
Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Message 5 of 10

dvikse_cow
Explorer
Explorer

The requested task seems like functionality that should be a commonplace tool. Hide and/or filter all data outside of a boundary (specifically FDOs).  I know Xclip works if the objects are a block.  Maybe that will spark someone's creative juices.  Hopefully. Smiley Wink

Message 6 of 10

parkr4st
Advisor
Advisor

try query objects touching polygon that will get all objects inside the polygon and touching the boundary which pulls in those objects you haven't got.

 

save a .layer file to that you can D&D the .layer into a map and get only what you need

 

analysis intersection the layers and the polygon.  The new sdf file will trim everything neatly, retain all the attributes and then you can work with that data set. again save the .layer file

 

if you need .shp format mapimport and mapexport with the data to the .shp

 

The sdf new files will hold only data you need to work with within the boundary which will speed up things

 

another other way to proceed is to map import all the objects with the data to cad layers, trim it and then mapexport it to a sdf file

 

having all your data in the one sdf file will cut the time factor also

 

dave

 

 

Message 7 of 10

ChicagoLooper
Mentor
Mentor
Accepted solution

 

If your query is only keeping objects completely inside your boundary and excluding objects outside as well as intersecting the boundary, then you are using an inappropriate query. To fix, do this:

  1. DRAW a Rectangle representing the area you wish to keep. Anything completely outside will be filtered out. Hint: Make it slightly bigger than what you actually need so you'll have a little 'extra' if you decide to shift, expand or change your viewport scale. 
  2. Right click a shapefile in the MapTaskPane and select 'Query to Filter Data....' from the shortcut menu.
  3. In Create Query dialog select Locate on Map button on top edge of the dialog and you'll get a dropdown list.
  4. There are 2 sections: Inside and Touching Any Part of.
  5. In Touching Any Part of, select POLYGON.
  6. The dialog will close and you'll switch to model space. On command line, type "S" then Enter. (This tells AutoCAD you want to select polygon, which is the rect you drew in step 1.)
  7. With your cursor, it'll be a square, not cross hairs, click the rectangle you drew in step 1.
  8. After clicking the rectangle, the query dialog will re-appear. AutoCAD's expression that describes your rectangle and what to do with that rectangle will be shown in the dialog box in Blue. Cool! You don't need to know code, you only need to be able to click.
  9. Hit OK to close the dialog.
  10. Go back repeat to steps 2 thru 9 for each shapefile that you want to filter down. Use the same rectangle drawn in step 1 so you'll continue to have a little extra than what you need. Hint: If you want to remove the filter, simply highlight the Blue 'Code' shown in query dialog and hit DELETE key. 

Note: If you run this query by selecting circle, polygon or rectangle from INSIDE section instead of TOUCHING ANY PART OF..... section you will get a different result. Inside and Touching Any Part of are not interchangeable queries. 

Objects completely inside a rectangle and objects intersecting the same rectangle can be kept while objects outside are filtered out.Objects completely inside a rectangle and objects intersecting the same rectangle can be kept while objects outside are filtered out.

 

 

 

Chicagolooper

EESignature

Message 8 of 10

dvikse_cow
Explorer
Explorer

Will try this when I'm back in the office.  Can you elaborate on "Inside and Touching Any Part of are not interchangeable queries."?  Can these queries not be performed together?  Basically, Inside & Touching... Thank you

0 Likes
Message 9 of 10

ChicagoLooper
Mentor
Mentor

Yes, you can perform them together but it would be redundant. Example. You draw a boundary box, 10-miles wide and 10-miles tall. Your workflow now requires you to bring in a line that's 30-miles long running horizontally through the center of the box. Does the line intersect the edges of the bounding box? Yes, it definitely intersects. It can't fit inside because it's way too long and the box way too small.

 

The question remains: Is it in or out? Well both......yes and no. Doh? Can't be both, it's either in or out. Confusing? Absolutely.

 

If you pick INSIDE to execute your query, then it's filtered out, or discarded, because the 30-mile long line doesn't fit inside (as in INSIDE query) the box. If you went to other way and chose TOUCHING ANY PART OF to define your query then it's NOT discarded, it's KEPT, because line intersects, or touches, the edge of the box (as in TOUCHING ANY PART).

 

Here comes the confusing part: What if you bring a line, 3-miles long, running vertically down the center of the box? What if it also doesn't intersect any of the edges AND at the same time isn't outside the box? Will this line WILL be kept. Yes, it'll be kept, it won't be discarded. But why? You could argue it be discarded because it's not 'touching' the box and your query stipulates to keep only those lines TOUCHING ANY PART OF. AutoCAD would win the argument and you'd lose.

 

Summary: AutoCAD considers anything intersecting as TOUCHING, as in touching an edge. It also considers anything within the box to be TOUCHING, as in touching the INTERIOR of the box. An INSIDE query means the whole line, the entire length, must be completely INSIDE the box and no part, not a scintilla, of the line to be outside.

 

Conclusion: If you have a 30-mile long line and a 10-mile x 10-mile box, I'd select Touching Any Part of because I want it to show it on my final drawing. If I were to select INSIDE then the 30-mile line would be discarded and wouldn't appear on the final drawing because it's not completely INSIDE. If it's a major highway, it wouldn't show on my final map. If it's critical to show that highway, then I must pick TOUCHING.

 

Don't get me wrong, there are times you do want to be discard objects. Say you have contaminated soil with off-gasses that might be toxic. You want to relocate residents whose homes are completely inside the contaminated plume immediately. Later, you'll relocated those on the plume's fringes. In this case, I want to isolate residents who are INSIDE a contaminated polygon that represents the plume and discard (not really discard but defer) those who are partially outside or simply TOUCHING the contaminated soil. For those who are outside the plume, they are not relocated, saving the city relocation costs. Those on the fringes can be relocated the following week, giving residents with increased toxic exposure higher priority with immediate relocation.

Chicagolooper

EESignature

Message 10 of 10

dvikse_cow
Explorer
Explorer

Your "Summary:" nails it.  I will give it a whirl.  Thanks for the assistance.

0 Likes