Previous Page | Next Page

The MAPIMPORT Procedure

PROC MAPIMPORT Statement


Identifies the input ESRI shapefile and converts this map into a SAS/GRAPH map data set.
Requirements: The name and location of an output data set and the complete path for the input data file.

PROC MAPIMPORT OUT= map-data-set DATAFILE= 'path-to-shapefile' <CONTENTS> <CREATE_ID_>;

Required Arguments

OUT= map-data-set

specifies the name of the output map data set that is created.

DATAFILE= 'path-to-shapefile'

specifies the path and filename of the shapefile that is read and processed.

Alias: INFILE=

Note:   By default, all of the fields in a shapefile are included in the output map data set. To include only specific fields in the output map data set, use the SELECT statement. To exclude specific fields from the output map data set, use the EXCLUDE statement.  [cautionend]


Options

CONTENTS

displays information about the shapefile, including field identifier names and types.

CREATE_ID_

creates a map ID variable named _ID_ with a unique value for each polygon in the map. This variable is created automatically if the DBF file is missing.

Interaction: This statement has no effect if you also specify the ID statement.

Previous Page | Next Page | Top of Page