Query a shapefile


PurposeThis sample opens a cursor on a shapefile and prints all the values of each field for all the records in the shapefile.

How to use

If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Run the application with a valid input shapefile as the parameter.
  2. Results will be output to the console.

QueryShapefile.h Header file
QueryShapefile.cpp Implementation file
LicenseUtilities.h Licensing header file
LicenseUtilities.cpp Licensing implementation file
PathUtilities.h Path parsing header file
PathUtilities.cpp Path parsing implementation file
Makefile.Windows Windows Makefile
Makefile.Solaris Solaris Makefile
Makefile.Linux Linux Makefile
Download the CPP files

Download the files for all languages




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime