GPSFileDepot Forums

General Category => Map Making Support => Topic started by: hwstock on June 19, 2013, 12:07:11 PM

Title: GDAL ESRI shapefile driver, for ms windows?
Post by: hwstock on June 19, 2013, 12:07:11 PM
Do you know where I might find this driver (from title)?  There is a GDAL page for drv_shapefile, and maybe even find c++ source, but I was hoping not to build the entire package from scratch.

I decided to try gdal_contour, but apparently need the shapefile drive... the package for Windows doesn't seem to have anything but exe files, and I really can't tell if the drivers are embedded in one of those.  I don't even know what extension I'm looking for. I just spent about an hour cruising the web for a pre-made version of the driver package for windows.
Title: Re: GDAL ESRI shapefile driver, for ms windows?
Post by: nm_map_user on June 20, 2013, 06:37:22 AM
gdal file drivers are not drivers in the same sense as windows device drivers. They are pieces of code that know how to understand a specific file format. If you've downloaded the full pre-built gdal package, it's in there buried in a dll. Just try running gdal_contour. If you're still having problems, give us the error messages.
Title: Re: GDAL ESRI shapefile driver, for ms windows?
Post by: hwstock on June 20, 2013, 12:15:14 PM
I figured that out -- looked at the source, and realized that they were complied into the executable.  I just got a newer distribution, and made a map directly via gdal_contour, by creating shapefiles for the major and minor contours.  The result is interesting -- I'll compare this new map with that made by dem2topo.  I've just started exploring gdal_demo, so I don't know which options exist to smooth the contours, etc.

A bad thing about gdal_contour: it leaves blocky angular lines at the finest scale (no smoothing for contours, so it seems -- so far).  The good thing: you can directly handle much larger maps than you could by dem2topo -- a 10812x10812 geotiff, for example.