My Account     Contact Us     Cart

Improve Mosaic By Resampling Images in Geographic Imager

The Mosaic function in Geographic Imager merges multiple georeferenced images together to create a single composite georeferenced image. Though the goal of the mosaic is to create a single and seamless composite image, combining images with the Mosaic tool will often result in a slight shift of the imagery due to differences in the original pixel registration grid. This means that even when images are in the same coordinate system with the same spatial resolution, error can still be introduced because of a difference in the pixel alignment. Due to this, mosaicking processes in general tend to produce results that may be very close, but not exact. With this in mind, the results of your mosaic may be improved by resampling your images beforehand to the smallest unit of the resolution.

As an example, let’s say we have an image where the pixel size is 2.00 metres. When plotting the X coordinates of every pixel in this image (using the top left corner of the pixel), the X coordinate value will be incremented by the number/distance of the pixel size. For example, if the X coordinate values were to start at 111.00, then the next pixel would be 113.00, 115.00, 117.00, and so on. It’s important to note that these coordinate values are discrete, which means that the values could not be 113.22 or 115.77 because the origin of the coordinate in this case starts at 111.00 metres.

Now, we have another image that we want to mosaic with the first image. In this instance, the first image will be “Image A” and the second image will be “Image B”. Image B has the same coordinate system as well as the same pixel size as Image A.

Take a look at the X coordinates in Image A and Image B below:

We can see that the X coordinate in the top-left corner is different between these two images, and as previously mentioned, we know that the X coordinate values are discrete. When mosaicking Image B to Image A, the X coordinate cannot be 111.75 or 113.75. The coordinates must be 111.00, 113.00, 115.00, and so on, following the pattern of the pixel grid values in Image A.

This means that Image B will need to be “shifted” or “snapped” to the closest coordinates when the mosaic is performed, see below:

As a result, the X coordinate of Image B will be shifted by 0.75 metres (less than half a pixel). The pixel with X coordinate 111.75 is now placed at 111.00 and the next pixel with X coordinate of 113.75 will now be placed at 113.00, and so on.

With this in mind, the results of your mosaic may be improved by resampling your images to the “smallest unit of the resolution”. The smallest unit of the resolution can be determined from the difference in the coordinates (spatial alignment difference) between the two images.

Looking back at our example, we can see that the smallest unit of the resolution (represented by the blue arrow) in this case is 0.75 metres – this is the value we will use to resample our images.

Once the images have been resampled to 0.75 metres, we may go ahead with our mosaic.

The above example demonstrates the possibility of a pixel shift after a mosaic for two images with a different pixel alignment. It should be noted that this example explains the problem in one-dimension (looking at only the X coordinate) when the image in reality is in two-dimension (looking at both X and Y coordinates). The basic principal of the pixel shift in 2D is the same, but it would include the direction of the shift when mosaicking images. In addition, it’s important to keep in mind that although resampling your images to the smallest unit of the resolution will improve the final mosaic, this is not always an efficient process when mosaicking with more than two images. Another thing to remember is that resampling your images will make your file size much larger. However, in cases where high precision is desired, resampling the images beforehand is a process that should be considered.

Defining the Projection or Projecting the Data?

Have you ever imported data that doesn’t quite line up how you’d expect? It may be that you’ve fallen victim to a common workflow error when importing GIS data. Some file types such as CSV can be used for GIS data but don’t contain coordinate system information. When you are importing data from this format, you first have to define the correct coordinate system.

In this example, we’re going to look at the common mistakes people make and how to avoid them. We’ll start with a world map in the Robinson projection.

Robinson mapWe have a CSV file containing points for large cities that we’d like to add to the map. We know from our data source that the CSV uses the WGS84 coordinate system. After selecting the file for import, the MAPublisher Import dialog box helpfully notifies us that some required settings are missing. We’ll click the blue ‘Required settings are missing’ link to continue.

required settingsSetting up the import, the coordinate column settings are easy since we have an X_COLUMN and a Y_COLUMN, but we can’t forget to check that the format is correct. The default is Projected units, but we know the file uses WGS84, and can tell by the numbers in the column that the coordinates are in decimal degrees, so we’ll change the format to reflect this information and click OK.

csv correct settingsBack at the import window, we see the message ‘Data loaded successfully’. Great! Let’s click OK and add the large cities to the map.

csv settings are okThe data has been imported but the result isn’t what we expected. The new layer has been added to a new MAP View, so let’s try dragging it into the Robinson MAP View with the world map.

import incorrectWe get a prompt saying that there isn’t any coordinate system information. We want it to be in Robinson like the rest of the map so we’re going to leave the default setting of Same as: Robinson.

coordinate system undefinedThe data has moved, but it still doesn’t look like we were expecting. Where did we go wrong here?

transformation incorrectThere are actually two places in the workflow where we could have avoided this common mistake. When we dragged the point layer into the Robinson MAP View, the pop-up dialog box prompted that a coordinate system wasn’t specified. We specified Same as: Robinson, thinking this was the correct choice, but we had already determined during import that the CSV was in WGS84. What we should have done here was to specify the coordinate system as WGS84.

missing coordinates correctThe other place where we could have avoided this error was right after setting up the CSV file for import. In MAPublisher 9.4, there’s a new button on the Import dialog box that allows you to see more detailed information about files being imported. By clicking the Advanced button in the Import dialog box, we would have noticed that there was no coordinate system specified.

advanced import windowEven here, it might have been tempting to choose Same as: Robinson to add it to the Robinson MAP View, but this would import the points exactly the same as before – all in one location in the middle of the map. Instead, what we want to do is click the blue ‘No Coordinate System Specified’ link and choose WGS84. After this is set up, we’ll click OK to add the data to the map.

correct import settingsThe data still isn’t quite right – it looks the same as when we first imported it. But again we notice that it has been imported into a new MAP View, so we’re going to drag the layer into the Robinson MAP View and see what happens.

import incorrectPerfect! By assigning the correct coordinate system to the data during import, the points have been imported correctly!

correct map with pointsMistakes during data import are common amongst GIS users, especially those who are just starting out. In the first scenario, when we imported the CSV and added the data directly to the Robinson MAP View, we thought we were telling MAPublisher that we’d like it to match up with the map. What we really did was tell MAPublisher that the data was already in the Robinson projection, even though we knew it was in WGS84. What we should have done first was to define the projection by telling MAPublisher what coordinate system the data is already using. Once MAPublisher knows what system the data is starting in, we can then ask it to project or transform the data into the coordinate system that we’d like to use.

When working with data that doesn’t have coordinate systems already defined, it is very important to follow the workflow in the correct order to avoid frustration when the data doesn’t line up as expected. Always check your sources when using data that isn’t defined, and make sure you’re assigning the correct coordinate system before performing any transformations or projections.

New Image Data Type Available in MAPublisher

Do you have pictures and images you want to insert as an attribute in MAPublisher?

MAPublisher 9.4 introduces a new data type called Image. To work with the Image data type, you’ll have to take a look in the MAP Attributes panel. The Image data type can be used in the same way as the other data types in the MAP Attributes panel. Use the Edit Schema dialog box to edit or create the Image data type as an attribute.

For this example, we have a point layer called “Point of Interests”. Let’s create a new attribute column with Image data type called “Picture”.

Edit Schema with a new data type "Image Data Type

We added a fourth attribute to this point layer (existing attributes were PlaceName, Note, and PhoneNumber).

Let’s insert an image into the attribute cell. Click the “No image…” hyperlink in the attribute cell. It will open the Edit Picture dialog box. Click Let's insert an image file to an attribute cell to browse for an image to add to the attribute cell. Once the image is added, a preview of the image will be visible in the Edit Picture dialog box.

Inserting a photo as an attribute value

There are other controls in this dialog box.

Edit Image Attribute Window: button for Select an image Select and insert an image to the attribute cell. Use this button to replace the existing image to something else. You can insert jpg or png file.
Edit Image Attribute Window: button for Export image attribute as jpg or png Export image as jpg or png
Edit Image Attribute Window: button for removing image from the attribute cell Remove image from the attribute cell
Edit Image Attribute Window: button for navigation control (zoom to fit) Navigation control – zoom to fit
Edit Image Attribute Window: button for navigation control (zoom to actual size) Navigation control – zoom to actual size
Edit Image Attribute Window: button for navigation control (zoom in) Navigation control – zoom in
Edit Image Attribute Window: button for navigation control (zoom out) Navigation control – zoom out
Edit Image Attribute Window: Textbox to change the name of the imageChange the name of the image

 

After clicking OK, the image will be listed in the attribute cell. The cell shows the file name of the image (it will be the file name of the image by default but you can change the name of the image to anything else). Also, hovering the mouse pointer over the image name in the attribute cell will show a quick preview of it.

An image file is inserted to an attribute cell as image data

The Image attribute type also supports images exported from PDF Maps (in KML format) and images exported to Google (in KML format).

 

What is the difference between Grid Bounds vs Grid Constraints?

In MAPublisher, the grid bound is the visual extent of the grid or graticule. The grid constraint is the geographic extent of the grid or graticule. It may be a little confusing since both grid bound and grid constraint are defined by coordinate values. In terms of hierarchy, think of the grid bound as the overall container of the grid and the constraint as being contained within the bound.

MAPublisher Grids & Graticules dialog box

These examples may help you better understand it.

1. In this example, the grid bounds are specified as the lower-left and upper-right of the artboard corners. Notice that the graticule extends all the way to the edge of the artboard (as specified). This is a very typical way to use a grid or graticule.

Grid bound extent set to artboard corners

2. Here, the grid bounds are still the lower-left and upper-right of the artboard. The grid constraint is based on the minimum and maximum longitude and latitude values of the specified MAP Locations. Notice that the rectangular black border of the grid bound is at the edge of the artboard. This is also a common way to use a grid or graticule, especially for larger scale maps.

Grid constraints set to MAP Locations

3. In this example, the grid constraints were disabled and, instead, the two MAP Locations are used to define the grid bounds. Notice that the rectangular black border of the grid bound is defined by two MAP Locations.

Grid bound extent set to MAP Locations

4. When both grid bound and grid constraint are set to the same coordinates (in this case, MAP Locations) you can see the result here. The grid bounds are clipping the grid constraints. This would not be an ideal situation to use grid constraints, but it is definitely possible to use it in this fashion.

Both grid bound and grid constraints set to MAP Locations

MAPublisher Grids & Graticules are highly customizable and we’ll be blogging more about its features.

Avenza Releases MAPublisher 9.4 for Adobe Illustrator

– Enhanced cartography tools to create high-quality maps made even easier –

Toronto, ON, May 5, 2014 – Avenza Systems Inc., producers of the PDF Maps app for mobile and geospatial plugins for Adobe Creative Suite, including Geographic Imager for Adobe Photoshop, is pleased to announce the release of MAPublisher 9.4 for Adobe Illustrator. This latest update includes new many features including streamlined import, support for additional formats when exporting a document to web tiles, and a new image attribute type to support images imported from the PDF Maps app on both iOS and Android platforms.

“We’re excited to release MAPublisher 9.4 because of its continued evolution to make it even easier to create great looking maps with enhanced cartography tools,” said Ted Florence, President of Avenza. “The enhancements and features in this release have been developed from customer feedback with significant improvements to import and export interoperability. The primary focus of this release is to increase productivity for cartographers and GIS professionals by enabling them to easily and quickly import data, create high-quality map products, and easily publish or export to print and digital formats,” he added.

Enhancements and new features of MAPublisher 9.4

  • Streamlined data import: Import (formerly Simple Import) and Multiple Data Import (formerly known as Advanced Import). Improved interface provides additional coordinate system information and easier access to format specific Adobe Illustrator options that affect how data is imported.
  • New image attribute type to store an image for each record in a layer’s MAP Attribute table. Image attributes are supported when importing from the PDF Maps app (in KMZ format) and exporting to Google Earth (in KMZ format).
  • Export Document to Web Tiles now supports MapBox and Tile Map Service map providers. A new anti-aliasing option to optimize art or type is now available.
  • New ability to export a coordinate system file for non-geospatial image formats.
  • New ability to specify grid constraints to limit the geographical extent of a Measured Grid. In addition, a new option is available for ticks to follow the line at the grid boundary.
  • New file export option to assign metadata for TAB/MIF and KML/KMZ formats. The metadata assignment option allows layer attributes to be assigned to format specific metadata fields.
  • Improved preview quality makes it easier to see how settings affect the scale bar.
  • Newly designed MAP Layer icons and feature type icons.
  • Various user interface and performance enhancements to improve usability.

 

More about MAPublisher for Adobe Illustrator

MAPublisher for Adobe Illustrator is powerful map production software for creating cartographic-quality maps from GIS data. MAPublisher tools leverage the superior graphics design capabilities of Adobe Illustrator to manipulate GIS data and to produce high-quality maps with accuracy and efficiency.

MAPublisher 9.4 for Adobe Illustrator is available free of charge to all MAPublisher users with an active maintenance subscription and as an upgrade for non-maintenance users at US$599. New licenses start at US$1399. MAPublisher FME Auto and MAPublisher LabelPro are also available as add-ons to MAPublisher 9.4 at prices starting at US$399 per license. Academic, floating and volume pricing are also available. Prices include one year of full maintenance. Visit www.avenza.com/mapublisher for more details.

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 PDF Maps app for purchasing and using maps on iPhones, iPads and iPod Touch devices. Visit www.avenza.com for more details.

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

News Archive