Relative Newbie Question: I have Civil War earthworks tied to the State Plane Coordinate system with a jpeg of the terrain as a 100k scale USGS Quad of the area that is not georeferenced. When I work with the features in CAD, they all have georeferences. But when I export the shapefiles out of CAD and into QGIS, all of the shapefiles come into QGIS where they should be. BUT, the jpeg is not only not under them, but it is 10x larger than it should be and displaced by some absurd difference. Can anyone shed some light on what I'm not doing in order to get them all into one area and at the right size?

1 Answer 1


JPG is not a spatially aware raster format, and the process by which different programs independently georeference rasters and save that transformation information doesn't necessarily transfer. I see two potential options. In CAD export the image as a georeferenced tif file (you may or may not be able to do this depending on what software you have), or alternatively redo the georeferencing directly in QGIS. See How to align (georeference) images using QGIS? or this tutorial for that.

The reason the image is so large is that a pixel is counted as a raster cell, and cell size can be defined. If not defined (ie, in a spatially aware format or reference file), it is assigned by the software and rarely correct. And of course the reason it's in the wrong place is there's nothing in a jpg to tell GIS where the right place is.

Also, I'm assuming you say the shapefiles are where they are supposed to be as confirmed by other data or basemaps. While the process you generally describe could/should allow your CAD data to be correctly projected, if you're not actually comparing it to anything other than itself there is a possiblity it, too, is not in the correct place. Much of that depends on knowing Vectorworks and how those tools work, which I do not. Therefore I have to solve from the other direction (not that I'm a QGIS expert, but more from the GIS side than from the CAD side).

Step one would be to go into Vectorworks (or QGIS, having just loaded the layer and done nothing else) and find the coordinates of a point. If it's in the hundreds of thousands x/y value, it probably is state plane. If not, you have a different problem. Step two is to go into QGIS and for each one of those vector layers (as they come in, don't move anything) define the projection to whatever state plane you're using (see also this alternative information page). QGIS knows the values of the coordinates but not what they are referring to, and by defining the projection you establish where the x/y origin should be among many other things. As an aside, if you're exporting actual shapefiles (.shp) from Vectorworks and the data truly is georeferenced to state plane, it really should be saving a prj file that defines what projection the data is in.

Once you have your vector lines in the right place, then you can load your image in and georeference it as above. I don't know how Vectorworks stores the info for a georeferenced image, and whether those files can be used by QGIS to get it into the right place - and this is making the assumption you had the image file referenced in Vectorworks to begin with; I might have misinterpreted your original post. You definitely don't want to move either your image or your vector lines to match the other unless you know whatever you're matching is for sure in the right place. I suggest using an additional base layer from somewhere (ie, find a PLSS grid from the county or BLM, as your topo map is going to have multiple sections at that scale) to get your control points for referencing and/or verifying your data is where it should be and you think it is. Also note that georeferenced images rarely line up exactly with other spatial data unless they've been orthorectified or are the source it's been digitized from.

  • Thanks for the info. I've now exported the image as a gif. The CAD program (Vectorworks) allows each layer to be individually georeferenced. All are in the State Plane Coordinate System. When I import the vector layers in QGIS, the georeference information does not appear to come along as QGIS states that there is no georef with it. The 15 layers all appear in the correct relative position to each other when imported into QGIS but are not confirmed by other data. Apr 26, 2014 at 2:00
  • 1
    @LyleBrowning GIF isn't spatially aware either. It's pretty much georeferenced tif or some image file with additional location files, some of which can be read by multiple softwares. Also, careful with the term 'shapefile' vs just any file with vector lines. CAD formats typically only store as a local coordinate system. If Vectorworks is truly storing state plane coordinates, you just have to define it as the correct projection in QGIS to get it in the right place.
    – Chris W
    Apr 26, 2014 at 19:09
  • Another layer of the knowledge onion peeled. Now I need to learn how to put all that together. What I've now managed is to get the shapefiles and the gif image to overlap to about 80% with each at the relative apparently correct size in relation to one another. All this was by setting the VW georef parameters. Unfortunately as yet I have not figured out how (or whether if) QGIS can select items from multiple layers and move them. I thought to select the shapefile items and move them where they should be, assuming the gif is accurately placed. Apr 26, 2014 at 23:59
  • That would be the opposite of what you want to do if your vector data is truly in state plane. I'll edit my answer for more clarification.
    – Chris W
    Apr 27, 2014 at 0:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.