C3D 2019 Image Insertion/Projection Issue

C3D 2019 Image Insertion/Projection Issue

sfore
Collaborator Collaborator
5,542 Views
22 Replies
Message 1 of 23

C3D 2019 Image Insertion/Projection Issue

sfore
Collaborator
Collaborator

Has anyone noticed a projection issue when inserting images in C3D 2019 when a coordinate system is set under drawing settings?

 

I have a .tif aerial photo that has an associated .prj and .tfw file. I set coordinate system to WV SPNAD 83 South Zone, US Survey foot under drawing settings, then inserted image (mapiinsert). It comes in way off from my surface which is in WV SPNAD 83 South Zone, US Survey Foot.

 

At first I thought maybe image was in HARN projection, despite what .prj file says, so I set Coordinate system to HARN WV South Zone, US Survey Foot. The image appeared to land correctly over top of surface. I thought I had it figured out but the image is not in HARN projection according to script in .prj file and according to our Surveyors. I also compared upper left image vertice between HARN and SPNAD 83 inserted images, the coords are slightly different.

 

So I did the following tests:

 

1.  I set coordinate system to No Datum, No Projection then inserted image and it landed perfect over top of surface.

 

2.  In same drawing, I set coordinate system to WV SPNAD 83 South Zone, US Survey Foot then inserted image and it landed way off, so I scaled image from 0,0,0 at 1200/3937 and image landed perfectly over surface.

 

3.  In same drawing, I left coordinate system at WV SPNAD 83 South Zone, US Survey Foot and inserted different images such as a USGS and a different aerial image, both of which has associated .tfw files. They landed perfectly over surface.

 

So, I can only conclude this is a bug in Civil 3D or the .prj file associated with initial image is causing issue.

Thoughts??

0 Likes
Accepted solutions (2)
5,543 Views
22 Replies
Replies (22)
Message 21 of 23

ChicagoLooper
Mentor
Mentor
Accepted solution

OK, I got it. The issue is the drone imagery, not any ol' imagery, but the composite drone imagery or the 'stitched-together-from-individual-tiles-image. In this composite image, there are gray areas emanating from the corners because they represent areas devoid of tiles, the gray is just fill-in. If you include both the gray areas and the aerial photo, you'll get a rectangular raster. However, if you  use a Magic Wand and eliminate the gray and keep only the aerial image, you'll end up with a funky shaped image. Unfortunately Acad doesn't have that Magic Wand (at least I don't think it has a wand) whereas other programs do. Too bad. (There's really no wand. Those other programs can handle funky shapes whereas Acad can't.)

 

1-Acad makes these gary fill-in areas which essentially changes the shape of the aerial to a rectangle. Coordinates on the status bar indicate State Plane Feet.  When using MAPIINSERT, the image is way, way off!1-Acad makes these gary fill-in areas which essentially changes the shape of the aerial to a rectangle. Coordinates on the status bar indicate State Plane Feet. When using MAPIINSERT, the image is way, way off!

The world file, or tfw, are the instructions that tell your computer program how to position the image, where you see it in your dwg. The instructions involve datum, projection, scaling and rotation. All that combined with a known CS you assign to your modelspace makes the image plop down accurately relative to other real world objects in your dwg. Keep in mind the composite-tfw is associated to the composite-image or the stitched-together-funky-shaped-image-WITHOUT-the-gray.

 

I don't know a way to inform Acad that the image is a funky shape. AFIK, Acad doesn't support funky shaped images and somehow, amends the funkiness by adding-in gray areas in order to make it rectangular (Acad likes rectangular images). Combine this amended rectangle with the original tfw and you'll get whacky results. Remember, Acad  erroneously linked the original tfw with the amended rectangle, not the funky shaped stitched together composite like it should have. Why Acad is capable of linking them like that is beyond me. Afterall, the shape has changed from funky to rectangular but the link still remains. Intuition tells me the link should fail when the shape changes but wutdoIno. Doh?

 

You have two options:

Option 1, Use original tiles. I'd suggest you back to the original tiles and figure out exactly which ones you need. Each one will have its own individual tfw file. Then use MAPIINSERT to bring in each tile. (Use Shift+click or Alt+click to select multiples.) As long as a tile doesn't have any gray stuff, it's go to go. If you have lots of tiles, this option may be way too cumbersome. Also, with a lot of tiles, they're subject to accidental nudging because they're individual tiles, not a composite image. Warning: since I don't have access to the original tiles, IDK if this will work. It's the path of least resistance and worth a try anyway.

 

Option 2, Export a new image. Use a geospatially capable program (I used Global Mapper) and export a 'portion' of the composite image. I exported to jpg (I tried Geotiff but spatial placement was still whacky) and made sure to create a jpg world file (.jgw) when during export. To keep the exported image a rectangle, Acad likes rectangles,  I drew a bounding box which 'defined the area' of export. I also exported 2 images for better coverage, a top portion and a bottom which abutted one another. Using MAPIINSERT command I accurately placed both images, Yay! Also used Data Connect on same 2 images, making sure to check 'Combine into one layer' on the Data Connect palette. Also edited <unknown> in the CS column to WV83-SF.

 

2-Using Data Connect palette, ,unknown> appears under Coordinate System column. Edit to the appropriate CS.2-Using Data Connect palette, ,unknown> appears under Coordinate System column. Edit to the appropriate CS.3-CS edited to WV83-SF (this is the CS in the tfw file when image was exported by Glo Map). Check 'Combine into one layer' to merge the images . Arrow indicates CS assigned to modelspace.3-CS edited to WV83-SF (this is the CS in the tfw file when image was exported by Glo Map). Check 'Combine into one layer' to merge the images . Arrow indicates CS assigned to modelspace.4-Using MAPIINSERT. Two images against Bing aerial. Yes, you can see the seam where they abut. Each image has its own world file. Coords on Status Bar indicate the general geospatial position.4-Using MAPIINSERT. Two images against Bing aerial. Yes, you can see the seam where they abut. Each image has its own world file. Coords on Status Bar indicate the general geospatial position.5-The 2 images 'combined'  into one using Data Connect. Yes, it's a funky shape without gray fill-in. Data Con couldn't read the world file so had to edit from <unknown> to WV83-SF. Coords on Status Bar indicate the general geospatial position.5-The 2 images 'combined' into one using Data Connect. Yes, it's a funky shape without gray fill-in. Data Con couldn't read the world file so had to edit from <unknown> to WV83-SF. Coords on Status Bar indicate the general geospatial position.

One more thing, don't confuse a newly redefined  geospatial image exported using Global Mapper with the image clipping function in Acad that you can use to crop an image. Clipping an image in Acad simply means you are hiding portions you don't want shown--it's still the same image with parts that are cropped. Want you need is a new image, with new limits which, in turn, define a new image shape and a new world file to go along with it..

Chicagolooper

EESignature

Message 22 of 23

sfore
Collaborator
Collaborator

Thanks for the reply Dave. I'm just seeing this. Motherboard fried last week, but I'm back up and running. 

 

I've never used iinsert, but I did both tests today and got the same results as you. Also, I also noticed the 2 lines in the dialog box 'edit spatial contexts'. Never seen that before. Regardless, I now have several ways to get image in correctly. Thanks to everyone that's replied to this post.

 

Shawn

0 Likes
Message 23 of 23

sfore
Collaborator
Collaborator

Thanks ChicagoLooper for your time and replies! You've also given me other options to get image in and helped me to understand this image issue and its world file.

0 Likes