Skip to content

Instantly share code, notes, and snippets.

@statgeek
Created June 19, 2015 16:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save statgeek/944d4a62a142a108b8ad to your computer and use it in GitHub Desktop.
Save statgeek/944d4a62a142a108b8ad to your computer and use it in GitHub Desktop.
SAS - Import SHP file and create CSV for Tableau
PROC MAPIMPORT OUT=Polygon DATAFILE="Boundaries.shp";
run;
data Polygon;
set Polygon;
by feature_name notsorted;
if first.feature_name then order=0;
else order+1;
run;
proc export data=Polygon outfile="Polygon_Tableau.csv" DBMS=CSV;
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment