Welcome, Guest. Please login or register.

Login with username, password and session length
Forums Search:  


Author Topic: GDAL ESRI shapefile driver, for ms windows?  (Read 1929 times)

hwstock

  • Mapper
  • ***
  • Posts: 54
  • Karma: 0
    • View Profile
GDAL ESRI shapefile driver, for ms windows?
« on: June 19, 2013, 11:07:11 AM »
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.

nm_map_user

  • Jr. Member
  • **
  • Posts: 38
  • Karma: 0
    • View Profile
Re: GDAL ESRI shapefile driver, for ms windows?
« Reply #1 on: June 20, 2013, 05: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.

hwstock

  • Mapper
  • ***
  • Posts: 54
  • Karma: 0
    • View Profile
Re: GDAL ESRI shapefile driver, for ms windows?
« Reply #2 on: June 20, 2013, 11:15:14 AM »
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.
« Last Edit: June 20, 2013, 06:24:51 PM by hwstock »