Inserting JPEG with JGW file into AutoCAD Map 3D 2020

Inserting JPEG with JGW file into AutoCAD Map 3D 2020

ccummingsEU5GU
Observer Observer
35,646 Views
12 Replies
Message 1 of 13

Inserting JPEG with JGW file into AutoCAD Map 3D 2020

ccummingsEU5GU
Observer
Observer

A client has provided me a JPEG of a project aerial and a JGW file to geo-reference the file in AutoCAD. The image came from NearMap, but I still cannot upload the image to the proper scale and geolocation after reading through NearMap's troubleshooting section. Can anybody help me with this problem? Ultimately, I'd like to be able to work with the georeferenced aerial in AutoCAD 2018, not AutoCAD Map 3D 2020. Thanks in advance.

0 Likes
Accepted solutions (1)
35,647 Views
12 Replies
Replies (12)
Message 2 of 13

АлексЮстасу
Advisor
Advisor

Hi,

 

Have you tried pasting this image with the MAPIINSERT command?
If you disable Modify Correlation and the file units (UNITS) correspond to the image units, the image will be inserted as needed.

 

Just in case, I’ll stipulate that for proper work with the image, you need to have not just an attached aerial photograph of sufficient resolution, but an orthophoto...

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 3 of 13

ccummingsEU5GU
Observer
Observer

I have tried using the MAPIINSERT command, but still with no luck. The aerial photograph is of sufficient resolution and is an orthophoto. How do I know what the image units are? Below is the information from the JGW file when I open it in Microsoft Word:

 

0.298582
0.000000
0.000000
-0.298582
-10840326.582095
4226987.457751

 

The name of the file is 'EPSG3857_Date20190408_Lat35.456102_Lon-97.375437_Mpp0.299' which I assume indicates the latitude/longitude coordinates, but I am unclear on how to get the image attached at a proper scale?

0 Likes
Message 4 of 13

ChicagoLooper
Mentor
Mentor

The jpg and the jpw go hand-in-hand. You have uploaded the jpg but not the jpw. Can you possibly upload the jpw too?

Chicagolooper

EESignature

0 Likes
Message 5 of 13

ChicagoLooper
Mentor
Mentor
Accepted solution

OK, you're at John Conrad Golf Course. Open an imperial template used by your office. Alternatively, you can use a brand new, clean OOTB template.

 

Warning:

Your jpg and jpw have names which are too long. Rename them like this or you'll have FDO connection issues.

 

0-Put Both the jpg and jpw in the same folder and shorten the names like this.0-Put Both the jpg and jpw in the same folder and shorten the names like this.

Now do this:

 

On command line=>MAPCSASSIGN. Enter OK83 in search box.

 

1-Assign coordinate system to modelspace.1-Assign coordinate system to modelspace.

 

After ASSIGN, go to Home Tab=>Data Panel=>Connect Icon. In Data Connect Palette, click 'raster' icon, browse to and CONNECT to your Nearmap jpg.

 

2-Add Raster Image in the Data Connect Palette.2-Add Raster Image in the Data Connect Palette.

 

In Data Connect palette, if your image displays <unknown> for Coordinate System, you'll need to correct it. It should be consistent with the jpw file or EPSG 3857, also known as WGS.84PseudoMercator.

 

 

3-To edit, click 'Edit Coordinate Systems.'3-To edit, click 'Edit Coordinate Systems.'

 

To give the Nearmap the correct coordinate system, do this.

 

4-Highlight DEFAULT then edit. Search for and assign EPSG 3857.4-Highlight DEFAULT then edit. Search for and assign EPSG 3857.

 

Verify the coordinate settings for Nearmap image and modelspace. It should look like this. Then click 'Add to Map.'

 

5-Your image CS=EPSG 3857. Your modelspace CS=OK83-NF.5-Your image CS=EPSG 3857. Your modelspace CS=OK83-NF.

 

 

The Nearmap image will appear in modelspace. It will also be listed in the Map Task Pane (MAPWSPACE=>On)

 

6-Nearmap image will be shown in Map Task Pane.6-Nearmap image will be shown in Map Task Pane. 

 

Turn on bing imagery. Go to Geolocation Tab=>Online Map Panel=>Map Hybrid from dropdown.

 

7-Turn on Bing Hybrid.7-Turn on Bing Hybrid.

 

Nearmap in modelspace with Bing Hybrid shown in background.

 

8-Nearmap vs. Bing (Intersection of SE 115th St. & S. Douglas Blvd.)8-Nearmap vs. Bing (Intersection of SE 115th St. & S. Douglas Blvd.)

 

Done.

 

 

 

Chicagolooper

EESignature

Message 6 of 13

ccummingsEU5GU
Observer
Observer

That works. Thank you!

0 Likes
Message 7 of 13

quicoLugo
Contributor
Contributor

hi

pero, entonces, qué indican esas coordenadas del .jpw?

but then, what do those coordinates in the .jpw file indicate?

gracias Looper

Message 8 of 13

koneillLR45R
Community Visitor
Community Visitor

Going back to what was said earlier about file name lengths. There is a limitation to 128 characters for Nearmap images to work properly. We are using Civil 2021 and have recently discovered mapiinsert wasn't always reading the jwg file. Turns out the location of the file was nested too deep in a project directory and we had to move it, plus rename it. 

 

Since learning this, we haven't had issues with mapiinsert or using the Data Connection option. 

 

https://docs.nearmap.com/display/ND/AutoCAD+Map+3D+-+Importing+Georeferenced+Images

 

Message 10 of 13

KDAddison
Enthusiast
Enthusiast

Convert it to a tif if you can because it will just cause trouble.

0 Likes
Message 11 of 13

ChicagoLooper
Mentor
Mentor

@quicoLugo wrote:

<<pero, entonces, qué indican esas coordenadas del .jpw?

but then, what do those coordinates in the .jpw file indicate?>>

 

  • Line 1: X-scale. This is the horizontal distance in meters represented by each pixel. 
  • Line 2: Rotation about the Y axis.
  • Line 3: Rotation about X axis.
  • Line 4: Y-scale This is the vertical distance in meters represented by each pixel. Normally negative, because whilst an image has its origin in the top left corner, for Northings and Eastings the origin is normally considered to be the bottom left corner - hence why the scale is normally negative.   
  • Line 5: X-reference point. This is the horizontal coordinate (or Easting) of the center of the top left pixel.
  • Line 6: Y-reference point. This is the vertical coordinate (or Northing) of the center of the top left pixel

Chicagolooper

EESignature

Message 12 of 13

crypto
Explorer
Explorer

Great little tutorial, thanks for the help.

0 Likes
Message 13 of 13

jfreeseAZJZQ
Participant
Participant

I wanted to personally thank you for your wise words to "disable to modify correlation". I have been having some real issues with NJ Ortho photos, and now Nearmap where it would insert into QGIS correct, but not CAD. Was almost thinking I needed to export from QGIS as a Rendered Image, but this did exactly what I was looking for. Thank you!

0 Likes