My Account     Contact Us     Cart

Getting the Best Resolution when Importing an Image from a WMS

Using a Web Map Service (WMS) is a great way to easily get up-to-date imagery for your project. An issue you may run into, however, is that a server may not allow you to download images over a certain size (in pixels). The image resolution provided on most servers is usually high enough for most projects but there may be some instances where a higher resolution is needed (e.g. a poster-sized map or a web map that covers a large area).

One possible workaround for this issue is to get several small-area, high-resolution images from a WMS and then mosaic them together to make one large-area, high-resolution image. Here, we will use the City of Toronto Web Map Service to:

  1. Get an image of downtown Toronto
  2. Tile the image to split it into four smaller images
  3. Use the extents of the four tiled images to get four high-resolution images
  4. Mosaic the images to one large high-resolution image

 

Download an Image from the Web Map Service

First we will get an image of downtown Toronto from the City of Toronto WMS. Click the Advanced Import button on the Geographic Imager panel. Select Web Map Service from the Format drop-down and click Browse. Click Load services from Avenza and select City of Toronto WMS from the list.

 

Download an Image from the Web Map Service
(Click for larger version)

 

Select City of Toronto Imagery from the list of layers. Click Select Area then drag a box to zoom in on an area of downtown. Click OK to return to the previous window. There is no need to change the image size because we will use this image to get the extents of a higher resolution image. Leave the other options as default and click OK to load the image, and click OK again on the Advanced Import dialog box. The selected image will now open in Adobe Photoshop.

 

Tile the Image

Next, let’s tile the image to split it into four separate images. Open the Tile dialog box from the Geographic Imager panel. Choose By Number of Tiles as the Tiling Schema and change Horizontal and Vertical to 2. Change the Horizontal and Vertical Overlap to 3 percent. It’s important to have overlap between the images so they will mosaic properly when the data is transformed.

 

Tile the Image
(Click for larger version)

 

Click the Keep Images Open check box to enable it. Choose a name and location to save the tiles. You can save them to a temporary location because they will not be part of the final product. The four image tiles will open in separate tabs.

 

Estimate a Web Map Service’s Maximum Image Size

Open the City of Toronto Imagery WMS again and select an area. In this service, as with many other services, the maximum resolution is not provided. We can, however, use trial and error to find the largest image that the service will allow us to download. A WMS has a maximum allowed width and height set for an image request. The maximum width is usually the same as the maximum height.

Set the resolution of the image by adjusting the width of the image in pixels under Output Options. First, try setting Image Size to a pixel width of 5000. Height will update automatically based on the image’s dimensions. Click OK and you will see an error that says “Parameter ‘width’ contains unacceptable value” (or height if the images higher than it is wide). OK the error to close it.

 

Estimate a Web Map Service’s Maximum Image Size
(Click for larger version)

 

To estimate the maximum width and height allowed by a web service, you can adjust the image size to see when the server returns an error. The maximum width and height for the City of Toronto WMS is about 4000 pixels.

 

Downloading and Mosaicking Large Images

Next we will use the geographic extents of the four tiled images to download four higher resolution images with matching extents then mosaic the images together. Import an image again from the City of Toronto WMS using Advanced Import. Select an area, click Select Area by Another Document’s Extents and choose the first tiled image from the dropdown menu. The Select Area dialog will display an area matching that image’s area. Click OK to return to the previous screen.

 

Downloading large images
(Click for larger version)

 

Enter 3000 as the Image Size. Click OK to add the image to the Advanced Import dialog box. Repeat the above steps for each of the remaining three tiled images.

Creating a mosaic of four images (two by two) makes a single image just under 6000 pixels wide because of the overlap between the tiles (the height will vary depending on the area you selected). This is larger than the maximum size allowed by the WMS. Check the box Mosaic All Files to the Destination Document and select one of the images currently loaded in the dialog window from the drop-down menu. Leave the other options unchecked and select Normal as the Layer Blending Mode. This will merge the four images into a single document.

 

 

Mosaicking large images
(Click for larger version)

 

Avoid Downloading Images Greater than the Maximum Image Resolution

One further consideration when getting imagery from a service is to avoid requesting an image that is higher resolution than the full resolution of the image on the service. In this case, the number of pixels in the image and, therefore, the image size will increase without any increase in the actual resolution of the image.

To see an example of this, get an image from a WMS by zooming in on a small area and downloading images of varying resolution. The pictures below show two images of the same area side by side at different resolutions. The image on the left is 1024 by 870 pixels and the one on the right is 2500 by 2124 pixels but there is no noticeable difference between them. This is because the image exceeds the resolution of the image on the server so the WMS resamples the image to a higher resolution, creating duplicate pixels.

 

Avoid Downloading Images Greater than the Maximum Image Resolution
(Click for larger version)

 

Scottish / UK Post Brexit Maps Now Available on Avenza Maps

Latest European Union maps highlight recent political changes

Toronto, ON, March 9, 2017 – Avenza Systems Inc., producers of MAPublisher® cartographic software for Adobe® Illustrator® and Geographic Imager® geospatial tools for Adobe Photoshop®, is delighted to announce that updated political maps of the European Union (EU) are now available on the Avenza Map Store. After a sensational launch in Europe of the printed versions, map publisher XYZ Maps, is making the digital maps available through Avenza’s market-leading, award-winning mobile mapping app, Avenza Maps. Recently featured in the Scottish newspaper, The National, the standard EU 2019 – Post Brexit map shows the UK out of the EU. However, the map attracting widespread attention is the alternative Scottish EU 2019 – Post Brexit map as it shows an independent Scotland still a member of the EU, while the reduced UK of England, Wales and Northern Ireland are out.

“We continuously support all of our map publishers who strive to improve maps for everyone,” said Ted Florence, President of Avenza Systems Inc. “The ease and speed of which maps can be published to a world-wide audience using the Avenza Maps platform is unparalleled,” he added. “Historic events that change the political horizon are documented not only by the media and social networks, but also in maps because it can affect the way we travel and move.”

The Scottish EU 2019 – Post Brexit map and other maps of the EU and UK published by XYZ Maps are available on the Avenza Map Store.

More about Avenza Maps

The Avenza Maps app is an all-inclusive mapping platform for iOS, Android, and Windows mobile devices. Consumers can download the app for free, get georeferenced maps from the Avenza Map Store, and use them completely offline with a variety of tools. Map publishers can register as a vendor in the Avenza Map Store and generate revenue by pricing their maps and making them available for purchase in this iTunes-like model for maps. Businesses and organizations can upgrade to a cost-effective Avenza Maps Pro subscription which allows for commercial use, includes enhanced tools and features, and enhanced support. For more information, visit the Avenza Maps website at www.avenzamaps.com.

More about Avenza Systems Inc.

Avenza Systems Inc. is an award-winning, privately held corporation that provides cartographers and GIS professionals with powerful software tools to make better maps. In addition to software offerings for Mac and Windows users, Avenza offers value-added data sets, product training and consulting services, as well as the Avenza Maps app for purchasing and using maps on iOS, Android, and Windows devices. Visit www.avenza.com for more details.

For further information contact:
416-487-5116
info@avenza.com
www.avenza.com

Association of American Geographers (AAG) 2017 Annual Meeting – Boston, MA

The AAG 2017 Annual Meeting will take place April 5 – 9, 2017 in Boston, MA at the Hynes Convention Center, Marriott Copley Place and the Sheraton Boston.

Avenza will be participating in the conference exhibition and trade show, in booth #408, during which Avenza product specialists will demonstrate and discuss MAPublisher, Geographic Imager and the Avenza Maps app. This is a great time to see Avenza products in action and to have all your product-related and workflow questions answered. It will also be an opportunity to see upcoming features and functionality of future releases.

For more details or to book an appointment call 416-487-5116 or email Avenza.

 

About the AAG Annual Meeting

The AAG Annual Meeting is an interdisciplinary forum open to anyone with an interest in geography and related disciplines. Presentations from scholars, researchers, professionals, and students are welcome. The five-day conference will host more than 7,000 geographers from around the world and feature over 5,000 presentations, posters, workshops, and field trips by leading scholars, experts, and researchers. Sessions will be organized around many subfields, special tracks, and featured themes. For more information, visit www.aag.org/cs/annualmeeting.

 

News Archive