3

I downloaded an LPK file from the ESRI site that contains USPS defined zip codes. Because I'm working with QGIS on a Mac, I converted the file to a .zip. There's a .lyr file that opened up in the zip, but I'm not able to open that up on QGIS.

Is there a way to convert the contents of an ESRI layer package file (.lpk) into a shapefile with the associated data, and that I can open with QGIS on a Mac?

I looked into using utilities like 7-zip, but it doesn't seem to work on a Mac.

Apparently one of the .xml files in the layer package should contain a link to the actual data under the packagelocation tag, but I wasn't able to find that tag in the .xml files.

Does anyone know if that tag name might have switched?

I downloaded the layer package file from here.

  • Try renaming the .lpk to .zip and extract it. Is there a FileGDB in there? If there is and it's >=10.0 then you may be able to open it in QGIS or use gdal (ogr2ogr) to convert it into a shapefile. I remember doing something similar with a map package. – SaultDon Jun 24 '13 at 20:00
  • gis.stackexchange.com/questions/24662/… - Looks like data is stored as an .sdc which is a compressed format proprietary to ESRI. ArcCatalog may be able to convert to shp. – SaultDon Jun 24 '13 at 20:21
  • 3
    yay for closed formats! – Nathan W Jun 25 '13 at 5:09
  • There's no GDB file in the zip, and that ArcCatalog tool is unfortunately proprietary. Would the file formats be more compatible to a conversion if I download/ use Windows Virtual Machine? – Alex Jun 25 '13 at 15:12
  • 1
    Hi all- thanks for your help! The Census Bureau's ZTCA files cover tabulated areas, rather than encompassing all USPS zip code routes, so in dense areas like NYC, I was missing a good handful of zips. On the bright side, we came to a solution! By downloading Windows Virtual Machine, I was able to open and convert the .SDC file using lib.ncsu.edu/gis/formats.html . Turns out you just need to say your on campus to gain access. Thanks for your help everyone! – Alex Jul 1 '13 at 13:14
6

From the Comments it appears that the asker solved this by unzipping the *.lpk to find a *.sdc file that was then converted to shapefile format using instructions from NCSU Libraries' Geospatial Data Formats page.

2

If you're looking for zip code boundaries in other formats, you should turn to the US Census Bureau:

Go to: http://www.census.gov/cgi-bin/geo/shapefiles2013/main and choose "zip code tabulation area"

  • ZCTAs are not zip codes, which are used the USPS. ZCTAs are a Census Bureau invention roughly based on zipcodes but tailored to their needs. I've seen some estimates put the correlation to be only ~80% – winwaed Sep 17 at 3:12
1

Right click and extract the .lpk file using unzipping software. With a certain lpk file I then searched around and found a folder in the extraction that contained shapefiles.

0

Disclaimer I work here.

You can get US Zipcode Boundaries via this API: https://www.mashape.com/vanitysoft/boundaries-io

The API shows US Boundaries(GeoJson) by zipcode,city, and state. you should use the API programatically to handle large results.

enter image description here

0

You just need 7zip. The archives that ESRI uses are basically zip files but winzip and windows default zipping does not work. Use 7zip to unzip a layer package LPK,OR Mobile map package or VTPK or TPKX

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.