Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Spatial Data Support » Spatial data » Tutorial: Experimenting with the spatial features


Lesson 2: Download the ESRI shapefile data

In this lesson, you will download an ESRI shapefile from the US Census website ([external link] The shapefile you download represents the Massachusetts 5-digit code zip code information used during the 2002 census tabulation. Each zip code area is treated as either a polygon or multipolygon.


This lesson assumes you have completed all preceding lessons. See Lesson 1: Install additional units of measure and spatial reference systems.

This lesson assumes you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Experimenting with the spatial features.

  1. Create a local directory called c:\temp\massdata.

  2. Go to the following URL: [external link]

  3. On the right side of the page, in the State- and County-based Shapefiles dropdown, click Massachusetts, and then click Submit.

  4. On the left side of the page, click 5-Digit ZIP Code Tabulation Area (2002), and then click Download Selected Files.

  5. When prompted, save the zip file,, to c:\temp\massdata, and extract its contents. This creates a subdirectory called 25_MASSACHUSETTS containing another zip file called

  6. Extract the contents of to C:\temp\massdata.


This lesson unpacks five files, including an ESRI shapefile (.shp) that you can use to load the spatial data into the database.