{"id":497,"date":"2017-10-24T17:13:01","date_gmt":"2017-10-24T17:13:01","guid":{"rendered":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/?post_type=ht_kb&#038;p=497"},"modified":"2022-07-14T14:59:20","modified_gmt":"2022-07-14T14:59:20","slug":"adding-a-background-map","status":"publish","type":"ht_kb","link":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/knowledge-base\/adding-a-background-map\/","title":{"rendered":"Importing a Background Map"},"content":{"rendered":"\n<div class=\"hkb-article__content\">\n<p>Stormwater Studio supports the addition of coordinate referenced background maps for display behind your Plan view. This feature can be very useful when adding your Lines as it provides a coordinate-based alignment.<\/p>\n<div class=\"hts-messages hts-messages--info \">\n<p>It is recommended to add your background map prior to adding any Lines. You can only use one background map in a project.<\/p>\n<\/div>\n<p>A variety of file formats are supported including, bmp, jpg, png, tiff as well as CAD-based DXF and LandXML files.<\/p>\n<p>For image formats, you have the option of rectifying the picture by entering in two coordinate-based, control-point coordinates. Ideally at the lower left and top right corners of your image-based map. But these points can be anywhere on the map. The further apart the better, however. Please note that&nbsp;coordinates need to be (X, Y) based and assumes North is straight up. Google Earth Latitude \/ Longitude formatted points will not work.<\/p>\n<p>The program automatically assumes the extents implied in DXF and LandXML files, so control points are not required, or allowed.<\/p>\n<h2 id=\"how-to-add-a-background-map\">How to Add a Background Map<\/h2>\n<p>Background maps must be added on the Plan tab.&nbsp; It is recommended that you add background maps prior to adding your storm sewer Lines.<\/p>\n<p>When importing image-type files, be sure the map is plenty large to work on. You can zoom in, but you cannot zoom out past the original image extents. If the image is too large, you\u2019ll have the option of cropping it.<\/p>\n<p>Once a map has been imported, you can zoom in or out with your mouse wheel as well as pan by dragging your mouse in any direction.<\/p>\n<p>To add a map, click the Map button on the side toolbar from the Plan tab.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-410\" src=\"https:\/\/learn.hydrologystudio.com\/channel-studio\/wp-content\/uploads\/sites\/5\/2017\/10\/MapBut-1.png\" alt=\"\" width=\"43\" height=\"44\"><\/figure><p><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-933\" src=\"https:\/\/learn.hydrologystudio.com\/channel-studio\/wp-content\/uploads\/sites\/5\/2017\/10\/BackgroundMap1.png\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" alt=\"\" width=\"376\" height=\"117\"><\/figure><p><\/p>\n<p>Then select, Import Background Map.<\/p>\n<p>You can then choose your file from an open file dialog box. Note that you can select from .XML, DXF, BMP, JPG, PNG or TIF file types. Each of these are described below.<\/p>\n<h2 id=\"importing-landxml-files\">Importing LandXML Files<\/h2>\n<p>Stormwater Studio can import maps from any LandXML file containing Parcel, Alignment or Plan Feature elements. Once you have selected your file, the following screen is displayed:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-412\" src=\"https:\/\/learn.hydrologystudio.com\/channel-studio\/wp-content\/uploads\/sites\/5\/2017\/10\/LandXMLMapScreen.png\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" alt=\"\" width=\"456\" height=\"258\"><\/figure><p><\/p>\n<p>Select the entities available within the file and click [Import]. If the Entities checkboxes are disabled, then the LandXML file does not contain any Parcels, Alignments or Plan Features and cannot be imported.<\/p>\n<h2 id=\"importing-dxf-files\">Importing DXF Files<\/h2>\n<p>Stormwater Studio will import LINE, POLYLINE, LWPOLYLINE, ARCS and CIRCLES from any DXF file. Just select the file to be imported and click [Open]. It is recommended that you only export\/import what you think you\u2019ll need. Minimize the size of the exported DXF by selecting only the layers you&#8217;ll use to draw against, and not the entire project. Also avoid including title blocks or other nonessential entities that may have X, Y coordinates completely different from the main map. Large DXF files can slow the program&#8217;s redraw significantly as well.<\/p>\n<h2 id=\"importing-image-files\">Importing Image Files<\/h2>\n<p>Stormwater Studio will import from most image-based formats. Once opened, the map will display automatically. It will fill in the Plan canvas uniformly until either the top is reached, or the sides, whichever comes first. The image will be centered on the canvas.<\/p>\n<h3 id=\"georeferencing-your-image-based-map\">Georeferencing Your Image-based Map<\/h3>\n<p>Once imported, your map is just a set of un-georeferenced pixels, so it will be of little use. You\u2019ll need to georeference it so that you can use real world coordinates to build your model.<\/p>\n<p>You can georeference your map by locating two control points on your map and providing their real world, state plane coordinates (X, Y) or Northings and Eastings or scaled map-based coordinates.<\/p>\n<p>It should be noted that the software assumes North is straight up, not at an angle, when georeferencing. If North is not vertical then you&#8217;ll need to determine the horizontal distance (Dx) and vertical distance (Dy) between your two control points. If the angle of rotation is unknown, use of your plan&#8217;s graphic scale is recommended. See images below.<\/p>\n<p>Prior to georeferencing, you will need to identify these two points on your map and obtain their (X, Y) coordinates. Once that is done, follow these steps:<\/p>\n<p><strong>1. Add Georeference Control Point 1<\/strong><\/p>\n<p>Select \u201cAdd Georeference Control Point 1\u201d from the Map menu.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-954\" src=\"https:\/\/learn.hydrologystudio.com\/channel-studio\/wp-content\/uploads\/sites\/5\/2018\/12\/BackgroundMap3.png\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" alt=\"\" width=\"320\" height=\"115\"><\/figure><p><\/p>\n<p>Then place the cross-hair cursor over the control point on your map. (You can still zoom in\/out and pan to better locate the exact spot.) Once there, click your mouse to select that spot. The Control Point window opens where you can enter the X, Y point as shown below:<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-953 alignnone\" src=\"https:\/\/learn.hydrologystudio.com\/channel-studio\/wp-content\/uploads\/sites\/5\/2018\/12\/BackgroundMap2.png\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" alt=\"\" width=\"604\" height=\"147\"><\/figure><p><\/p>\n<p>Enter the X and Y values and click [Ok]. The Control Point will be shown on your map for confirmation.<\/p>\n<p><strong>2. Add Georeference Control Point 2<\/strong><\/p>\n<p>Go back to the Map Menu and select \u201cAdd Georeference Control Point 2\u201d.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-955 alignnone\" src=\"https:\/\/learn.hydrologystudio.com\/channel-studio\/wp-content\/uploads\/sites\/5\/2018\/12\/BackgroundMap4.png\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" alt=\"\" width=\"319\" height=\"116\"><\/figure><p><\/p>\n<p>Repeat the same steps as you did for Control Point 1 by moving the cursor to the point on your map and clicking your mouse. Then enter the corresponding coordinate point and click [Ok].<\/p>\n<p>Your map is now georeferenced.<\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-image alignnone size-full wp-image-956\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"846\" src=\"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNUp.png\" alt=\"\" class=\"wp-image-2397\" srcset=\"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNUp.png 891w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNUp-300x285.png 300w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNUp-768x729.png 768w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNUp-50x47.png 50w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNUp-60x57.png 60w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNUp-100x95.png 100w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><figcaption>Coordinates must be (X, Y) based. Latitude \/ Longitude points will not work.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"846\" src=\"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNAng.png\" alt=\"\" class=\"wp-image-2399\" srcset=\"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNAng.png 891w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNAng-300x285.png 300w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNAng-768x729.png 768w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNAng-50x47.png 50w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNAng-60x57.png 60w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2022\/05\/BackgroundMapGeoNAng-100x95.png 100w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><figcaption>X2=X1Cos(\u03b8)+Y1Sin(\u03b8), Y2=\u2212X1Sin(\u03b8)+Y1Cos(\u03b8), Where \u03b8 is positive in CW direction.<\/figcaption><\/figure>\n\n\n\n<p>It is recommended that your control points be as far apart as possible (both X &amp; Y) to maximize the georeferencing accuracy, similar to example shown above.<\/p>\n\n\n\n<p>Note that georeferencing can only be done once. In other words, you cannot edit the control points once they have been set. If you made a mistake, you will need to clear the background map and start over.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cropping-your-image-based-map\">Cropping Your Image-based Map<\/h3>\n\n\n\n<p>Sometimes your background images are too large for your specific project boundary. You can narrow the space by simply zooming in and panning (with your mouse) to manipulate the image to your desired zoom level and location. Once this is done, select \u201cCrop Background Image to Current Extents\u201d from the Map menu.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/learn.hydrologystudio.com\/channel-studio\/wp-content\/uploads\/sites\/5\/2017\/10\/BackgroundMap7.png\" alt=\"\" class=\"wp-image-1026\"\/><\/figure>\n\n\n\n<p>This will set the extents of the map to exactly what is shown on the canvas. Be sure to leave yourself ample room on the map as you can zoom in, but not out beyond the original cropped image.<\/p>\n\n\n\n<p>It is recommended that you georeference your map prior to cropping in case your control points fall outside of the cropped image.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-world-files\">Using World Files<\/h3>\n\n\n\n<p>Stormwater Studio will recognize and automatically utilize a World file.&nbsp;A world file is a six-line ascii text sidecar file used by geographic information systems to georeference raster-type maps. It typically will share the same name as the image file but will have a \u201cw\u201d added to the file\u2019s extension. The second character of the original extension will often be deleted in order to main the three-letter standard. For example, tfw or jgw.<\/p>\n\n\n\n<p>While opening your specified image file, Stormwater Studio will see if an associated world file is present in the same folder as the image file. If true, it will use that data and insert the X, Y coordinate points for you when you add the two control points.<\/p>\n\n\n\n<p>Georeferencing with a world file differs slightly from the procedure outlined above. You will still add two control points, but they must be placed as follows:<\/p>\n\n\n\n<p>Control Point 1 \u2013 At the lower left corner of the map.<br>Control Point 2 \u2013 At the upper right corner of the map.<\/p>\n\n\n\n<p>Once you have clicked on the designated corner, the Control Point window appears as usual but with the X, Y coordinates already entered. You just need to click [Ok] to accept. Perform this procedure for both control points.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/learn.hydrologystudio.com\/channel-studio\/wp-content\/uploads\/sites\/5\/2017\/10\/BackgroundMap8.png\" alt=\"\" class=\"wp-image-1031\"\/><\/figure>\n\n\n\n<p>You can override the world files points by just following the procedure for non-world file images. Locate your own control points and enter the corresponding X, Y values, overwriting the ones supplied by the world file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"clearing-the-background-map\">Clearing the Background Map<\/h2>\n\n\n\n<p>You may unload the map from your display by selecting \u201cClear Background Map\u201d from the Map menu shown above. There may be cases when you just needed a map to develop your storm sewer model but not needing it afterwards. You can remove the map and your system will stay intact with the georeferencing.<\/p>\n\n\n\n<p>You can add the map back again if you\u2019d like but you may need to re-georeference it to align it back up with your model.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setting-the-background-extents\">Setting the Background Extents<\/h2>\n\n\n\n<p>Even if you\u2019re not using a background map, but a blank canvas instead, you can adjust the extents of the Model canvas to whatever you\u2019d like. But it\u2019s just as easy to simply scroll your mouse wheel to expand or contract the canvas\u2019s existing coordinates.<\/p>\n\n\n\n<p>To adjust the canvas coordinates, select, \u201cSet Background Extents\u201d from the Map menu shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/learn.hydrologystudio.com\/channel-studio\/wp-content\/uploads\/sites\/5\/2017\/10\/BackgroundMap6.png\" alt=\"\" class=\"wp-image-965\"\/><\/figure>\n\n\n\n<p>You will then be prompted to set the map extents by the following screen:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"400\" src=\"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2017\/10\/SetMapExtents.png\" alt=\"\" class=\"wp-image-504\" srcset=\"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2017\/10\/SetMapExtents.png 630w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2017\/10\/SetMapExtents-300x190.png 300w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2017\/10\/SetMapExtents-50x32.png 50w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2017\/10\/SetMapExtents-60x38.png 60w, https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-content\/uploads\/sites\/3\/2017\/10\/SetMapExtents-100x63.png 100w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>Enter the X, Y coordinates associated with the lower left and upper right corners of the map and click [Ok]. A default value for the upper right (yMax) value will be inserted for you and will be based on your screen size and aspect ratio.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"saving-background-maps\">Saving Background Maps<\/h2>\n\n\n\n<p>DXF-based Background Maps ARE NOT saved with project files but their file path locations are. When the project is reopened, Stormwater Studio will look in the file path location for the dxf file and reload it. If you plan to share your project with someone, be sure to provide them with the actual DXF map file.<\/p>\n\n\n\n<p>LandXML maps ARE saved and will be embedded within the project file.<\/p>\n\n\n\n<p>Image-based maps will be saved but as a separate side-kick file, apart from its original. It will be saved under the same name as the project file but with a .bmp extension. Like the dxf, Stormwater Studio will look for this file and reload it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add background maps to draw against<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[29],"ht-kb-tag":[],"class_list":["post-497","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-importing-exporting"],"_links":{"self":[{"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/ht-kb\/497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":32,"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/ht-kb\/497\/revisions"}],"predecessor-version":[{"id":2408,"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/ht-kb\/497\/revisions\/2408"}],"wp:attachment":[{"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/media?parent=497"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/ht-kb-category?post=497"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/learn.hydrologystudio.com\/stormwater-studio\/wp-json\/wp\/v2\/ht-kb-tag?post=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}