How I clip tiff image

How I clip tiff image

ggeorges
Contributor Contributor
7,170 Views
15 Replies
Message 1 of 16

How I clip tiff image

ggeorges
Contributor
Contributor

Hello, my name is Georges and I'm from Brazil and I apologize for the bad English. I have a question, I have a Tiff image and I would like to crop it within a limit defined by me.

OBS: The clip image command does not work!

Screenshot_1.png

0 Likes
Accepted solutions (1)
7,171 Views
15 Replies
Replies (15)
Message 2 of 16

Pointdump
Consultant
Consultant

Georges,
Raster Design has a good cropping tool.
An alternative way would be to use QGIS to crop your Tiff with a Polygon Shapefile. Also GeoViewer will do this easily.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 3 of 16

parkr4st
Advisor
Advisor

try the command iinsert to put the image into the map

 

and iclip to clip the image 

 

and isave  and iworldout to save the new image with a world file.  

 

Not sure if those commands are in Civil 3d as I don't have it but the commands work as raster design commands

0 Likes
Message 4 of 16

ChicagoLooper
Mentor
Mentor
Accepted solution

If you want to crop the image along your white line then use MAPIINSERT to attach your georeferenced image. Don't use Data Connection. 

Insert Tab+.Image Panel=>Image Icon.Insert Tab+.Image Panel=>Image Icon.

 

After insert, you can use CLIP.

 

Insert Tab=>Reference Panel=>Clip IconInsert Tab=>Reference Panel=>Clip Icon

 

On command line, for select image=>click on your image=>then NEW=>then 'S' (for Select Polyline). Your image will be clipped using the white polyline.

Chicagolooper

EESignature

Message 5 of 16

ggeorges
Contributor
Contributor

Have a problem, I can't put the image through the insert, just through the 'data' ... In Arcmap it loads normally

0 Likes
Message 6 of 16

ggeorges
Contributor
Contributor

Thanks you all, I did it!

0 Likes
Message 7 of 16

ggeorges
Contributor
Contributor

Another stupid question .... In AutoCAD MAP you have the option to see the surface in 3D ... If I use AutoCAD MAP in AutoCAD Civil 3D does it also give this option?

0 Likes
Message 8 of 16

ChicagoLooper
Mentor
Mentor

Congratulations on your clip job.

 

I'm not sure I understand what you mean by the option to see the surface in 3D. Are you referring to a TIN surface? Can you upload a screenshot that displays that option?

Chicagolooper

EESignature

0 Likes
Message 9 of 16

qchenTPPXV
Collaborator
Collaborator

Hello Dave,

 

Thank you for sharing that. I found GeoViewer is a good tool. Just wondering if it can crop tif using polylines. For example, custom shape instead of rectangle.

0 Likes
Message 10 of 16

qchenTPPXV
Collaborator
Collaborator

Hello Chicagolooper,

 

The method for my to connect tif is to use data connect as mapiisert doesn't work for the tif. I think probably it is because of the file size. Do you know if there are some workarounds to cop data connect tif file?

0 Likes
Message 11 of 16

ChicagoLooper
Mentor
Mentor

@qchenTPPXV 

<< Do you know if there are some workarounds to cop data connect tif file?>>

 

What does cop data mean? Do you mean 'crop' data, as in cut-out parts of the data you don't need?

Please explain?

 

Chicagolooper

EESignature

0 Likes
Message 12 of 16

qchenTPPXV
Collaborator
Collaborator
Sorry for my typo. You are right. It's cut off the data I don't need.
0 Likes
Message 13 of 16

Pointdump
Consultant
Consultant

Hi Qixing,
"Just wondering if it[GeoViewer] can crop tif using polylines."
I'll have to take back my words. I don't think so. But QGIS certainly can. I haven't tried the Clip Command that @ChicagoLooper mentions in Message #4.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 14 of 16

ChicagoLooper
Mentor
Mentor

@qchenTPPXV 

Clipping a raster that's connected using the Data Connect palette (FDO connection) is called RESAMPLING THE RASTER.

 

Here's an example explaining how it's done:

  1. You downloaded an image that's 100mX100m or 10,000 square meters. You want to display only 8mX8m (64 sq meters) in your viewport. In modelspace, zoom-in on the target portion of your image making sure you have approximately 10X10M (100 sq meters) visible in modelspace. You want your area a little bigger than 8mX8m in case you PAN your viewport left/right or up/down.
  2. Next, right-click the image on the Map Task Pane=>Resample Raster (See image below.)
  3. When you zoom-out you'll see that your image has been 'reduced' to the size that was DISPLAYED on your monitor right before clicking resample raster. The parts that were offscreen will appear to be clipped. It hasn't been clipped, it's just hiding the offscreen part.

101.PNG

 

NOTES:

  • If you want create an irregular shape, something that's not a square or rectangle, you won't be able to do it. Map3D doesn't support those funny shapes. Haha. It only likes squares and rectangles.
  • If you want your image to return to its original size, zoom-out, waay waay out, then perform Resample Raster again. If you've zoomed-out far enough, the resample will expand to the original height and width.   

Here's an old video showing how to Resample. To watch, click >>HERE<<.

Chicagolooper

EESignature

Message 15 of 16

ChicagoLooper
Mentor
Mentor

@Pointdump 

Yes. Agree 100%, When using another GIS program you can clip using a polyline....but.....if you export that clipped  image, does it keep the clipped boundary? Does that clipped image still retain its projection? 

 

During export, will the exported image ignore the polygonal boundary and default back to a rectangle?

 

You may use AutoCAD's MAPIINSERT command to insert a georeferenced image AND use a polyline to clip it.

 

<<Best way: draw your pline first, then...when defining the boundary to clip, choose SELECT on the command line=>click your predrawn pline.>> 

 

As you already know, you can't use a polyline to clip an image that's on the Map Task Pane as an FDO connection but you can use Resample Raster workflow.

Chicagolooper

EESignature

Message 16 of 16

Pointdump
Consultant
Consultant

Hi @ChicagoLooper,
"...if you export that clipped image, does it keep the clipped boundary? Does that clipped image still retain its projection?"
With QGIS, Yes and Yes. But with a caveat. The image will have a bounding box that contains zero/null data between the polygon boundary and the bounding box. Only in Map/Civil does that zero/null data show. Every other GIS program knows better.

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes