Importing spatial data from a shapefile
You can import spatial data that is stored in a shapefile by transferring the shapefile to your database server and then using a stored procedure to extract and load that data. For example, a map vendor might provide a shapefile containing spatial data about cities, streets, and points of interest that you can import into your database and use.
Before you begin
- Note that a shapefile is actually a collection of files with the same file name but different file extensions (.shp, .shx, .dbf, and others) that, together, constitute a load unit.
- The shapefile that contains the data to be imported must be located on the same server as the database.
- Ensure that your user ID has the necessary authorities or privileges to issue the INSERT statement for the target table.
Procedure
To import spatial data from a shapefile: