Tag Archives: Google

Importing high resolution imagery from Google to CAD using QGIS

See my previous post here to see the full process. This is an expansion on this process to bring in more or better quality imagery.

Once you have setup your coord system etc. as per previous post, you then want to zoom your screen down to the desired resolution. I find going one zoom level further in than you like is usually a good strategy.

Now you want to keep pressing “save as image” then panning your screen around to get the tiles you desire. Just use your middle mouse button, don’t zoom in and out. Give the images about 5/10% overlap.

Once you have saved all the images you need. Just read them back in to have a look at the finished result. I have saved 6 images below.

Now I want to merge them together as one image.

Raster -> Miscellaneous -> Merge

image004image005

So now you just need to output your merged image in the desired coordinate system.

Right click the layer and press “save as”

Make sure you tick “rendered Image” and specify your desired coord system.

Give it a short moment to output

Now read into cad. Don’t forget to set your units to “meters” on command INSUNITS if you are using the metric system.

You should now have an image in CAD that is better resolution, or covers a more vast area

Loading

Google/Bing etc. Imagery into CAD using Quantum GIS (QGIS)

This is the free option for those of you looking to get some public imagery into cad. Although I imagine if you are using Civil 3D 2015 with the new bing maps functionality. This method is a little defunct. If your using Vanilla Autocad you will need to download the GEOREFIMG lisp from CAD Studio to import

Feeling Lazy… Watch the video


QGIS or Quantum GIS has much more functionality than just saving Aerial Imagery. It’s a very comprehensive and powerful free GIS tool that should be in every designers arsenal.

Firstly install the latest version from https://www.qgis.org/en/site/forusers/download.html

1. Next open up QGIS from the desktop shortcut (im using 2.8.3 Wien when writing this)

2. Go to Plugins – > Manage and Install Plugins

3. Search for the OpenLayers Plugin and Install

4. Next we need some data to quickly get your location correct. Export either a 2007 DXF or MAPEXPORT a SHP file that contains some line work of your area that’s in a known coordinate system.

5. You can either drag drop it into QGIS or just press the “Import Vector Data button”

6. QGIS should prompt you for a coordinate system for your data. If it doesnt, right Click on the layer in the layers window on the left and select “Set Layer CRS”

7. Im in Australia so I select MGA zone 56. QGIS’s coordinate system library is incredibly comprehensive so you shouldn’t have any problems finding yours here.

8. Now the imagery, go to Web -> OpenLayers plugin -> pick a imagery source. Google/Bing/Yahoo/OSM/Apple street and aerial/hybrid sources are available

9. You should now have imagery in. You might need to change the draw order to check that your line work matches up, drag drop them so that your line work is on top.
image009
I
magery in
imagery2

10. Now just get your viewport to the imagery extents you want, then turn off the linework. The image will save whatever you are looking at, in whatever coordinate system you have specified for the project.

The resolution will be what you see is what you get (WYSIWYG) so if you want a better resolution you will need to save multiple images at a closer view. See my post here on how to do that, or watch the video above.
imagery1

11. Now save your image. Go to Project -> “Save As Image” and call it “Google-PSY” the PSY indicates it is in the WGS84 Pseudo Mercator Coordinate system.

12. We now need to read the saved image back in and convert it to the correct coordinate system been – MGA zone 55. Using the Warp (Reproject) from the Raster-> Projections menu.
imagery3

13. Specify the “Google-PSY.png” we saved, choose the output file, Make sure you specify the source coordinate system (WGS84 – Psuedo Mercator) and the target coord system (mine is MGA zone 55)
imagery4

14. Export it as a “Geotiff” and call it Google-MGA55 or whatever your coordinate system is. The Geotiff format will contain all the georeferencing information inside the file.
imagery5

15. Now just use MAPIINSERT command (GEOREFIMG lisp for vanilla cad users) to import into CAD. Pow! Imagery. This also works well for stitching bits of imagery together.

Any questions just ask below.

Loading

Should I be using Google Imagery In My Drawings?

It seems to be bubbling up as a hot topic lately. A lot of companies are tightening up and saying no to using Google Earth imagery in drawings and reports.

It is quite a inconvenience for us as drafters, to not have access to this useful capability. Especially with fantastic tools like PlexEarth out there. If you havent seen it check it out here, they offer a free trial.
I believe companies may be disadvantaging themselves for no reason. Google has a online guide to provide users and companies with some basic information on when and how to use content they make available. Its briefly discussed below.
The guide
The simple to follow “content restriction” guide allows users to determine if you can use imagery for any particular purpose. If you can use imagery for the selected purpose, it imposes several small requirements that must be met when doing so, such as attributing sources and restrictions on tiling etc.
The guide can be found here.
Interpretation of the Guide
My menu selections from the guide were…
“Google Earth… Print Distribution … Professional Use”
The first statement made under the section “Using Content for Professional Documents” is…
“You may use Google Maps and Google Earth for reports, presentations, proposals, and related items professional documents. We request you still retain attribution and follow the other guidelines.”
Clearly indicating that it is possible to use Google Imagery in our reports and presentations. However the real issue here is whether we are allowed to use imagery as a background for linework and contours etc.
 
Restriction on using imagery as an underlay
I’m assuming the restriction is based on the section entitled “Ensuring Print Reflects Online”. The section states…
”When using Maps/Earth Content in print, any images used must reflect how they would look on online. For example, you are not allowed to make any changes (e.g. delete, blur, etc.) to our products that would make them look genuinely different. This includes, but is not limited to, adding clouds or other natural elements, altered user-interfaces, and modification that do not appear in the actual product.
However, Google offers a Styled Maps API which allows you to edit the colors of individual map components as well as toggle visibility for each component (i.e. change water to purple and make roads invisible).”
I believe what is trying to be stated here is that the imagery, as an object, should not be modified to appear as if it is genuine. In other words, we should not be fudging the image to look like it has no trees or place fake cloud cover over a tributary.
“not allowed to make changes… that are genuinely different”.
Adding linework and contours on top of Google imagery is not modifying the imagery object. Linework is not only separate from the imagery electronically as an object, but clearly on plan it is not part of the imagery. In no way does it intend to distort the imagery or make it appear as if the imagery genuinely contained the linework.
Google allows a user to import all sorts of linework and shapes as KMZ to be placed on to their imagery. Why would it suddenly be restricted going the other way?
 
Restriction on tiling imagery using PlexScape
Those users of PlexScape out there that are “tiling” or “stitching” images together to make high resolution photos may find themselves in trouble. The guide has a very specific clause against it.
A solution
I believe we can continue to use Google imagery legally. Although we do need to make a few changes to ensure we comply with their content use guide.
I would like to discuss this further so we can potentially remove the restriction on Google imagery use. Please leave your comments.

Loading