MAPIMPORT Procedure
PROC MAPIMPORT Statement
Identifies the input Esri shapefile and converts
this map into a SAS/GRAPH map data set.
Requirement: |
The name and location of an output data set and the complete
path for the input data file.
|
Syntax
PROC MAPIMPORT OUT= map-data-set DATAFILE= 'path-to-shapefile'
<CONTENTS> <CREATE_ID_>;
Summary of Optional Arguments
displays information about the shapefile, including
field identifier names and types.
creates a map ID variable named _ID_ with a unique
value for each polygon in the map.
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.
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.
Optional Arguments
- 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.
Copyright © SAS Institute Inc. All rights reserved.