# Shapefile Importer for SketchUp

**URL:** <https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078>\
**Category:** Extensions\
**Created:** [April 15, 2015, 3:07am UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078 "2015-04-15T03:07:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![blipscomb](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@blipscomb](https://forums.sketchup.com/u/blipscomb)\
**Post date:** [April 15, 2015, 3:07am UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078/1 "2015-04-15T03:07:42Z")

</div>

I have been working on a personal open source project for SketchUp. It will import point and polyline shapefiles.

Just add a geo-location and make sure your shapefiles are in geographic coordinates WGS 1984.

Please let me know if you come across any errors. It is in beta/development.

Once I get some feedback and make improvements, I will place in the extension warehouse.

> **[GitHub - BLipscomb/ShapeImporter: A SketchUp plugin built in Ruby. It enables...](https://github.com/BLipscomb/ShapeImporter)**
>
> A SketchUp plugin built in Ruby. It enables the user to import shapefiles into SketchUp. - GitHub - BLipscomb/ShapeImporter: A SketchUp plugin built in Ruby. It enables the user to import shapefile...

---

<div class="post-metadata">

**Author:** ![ChrisDizon](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/chrisdizon/32/61_2.png) [@ChrisDizon](https://forums.sketchup.com/u/ChrisDizon)\
**Post date:** [April 15, 2015, 3:08pm UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078/2 "2015-04-15T15:08:29Z")

</div>

@blipscomb

Thank you for helping out the SU GIS community with the development of the plugin.

I used MapWindow to reproject the attached dataset to wgs84.

[bostonMA\_polylines.zip](https://forums.sketchup.com/uploads/default/5751/bba25eac507a1a4d.zip) (579.5 KB)

The result is what you see here:

The import also has issues with the generated geometry. The ability to navigate, measure and work with the linework is compromised in some way. See attached skp  
[gis\_linework\_buggy.skp](https://forums.sketchup.com/uploads/default/5754/03146f5befbcba42.skp) (704.0 KB)

Cheers  
CD

---

<div class="post-metadata">

**Author:** ![blipscomb](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@blipscomb](https://forums.sketchup.com/u/blipscomb)\
**Post date:** [April 15, 2015, 5:46pm UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078/3 "2015-04-15T17:46:29Z")

</div>

Thanks for testing it! I will look into this tonight.

I have three questions to help me check this issue.

1. Did you geo-locate your model?
2. Do you know if these are multi-part lines?
3. Do you have any lines queried out in MapWindow?

---

<div class="post-metadata">

**Author:** ![blipscomb](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@blipscomb](https://forums.sketchup.com/u/blipscomb)\
**Post date:** [April 15, 2015, 5:53pm UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078/4 "2015-04-15T17:53:45Z")

</div>

Here’s an example from last night. I download this data from MARIS (Mississippi’s GIS data site). It was railroads and Churches. I’ll look into your file tonight though.

---

<div class="post-metadata">

**Author:** ![blipscomb](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@blipscomb](https://forums.sketchup.com/u/blipscomb)\
**Post date:** [April 16, 2015, 3:28am UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078/5 "2015-04-16T03:28:06Z")

</div>

I pulled the x,y values when I ran it, and they were showing as feet.

Also, the .prj file is showing WGS 1984, which does not correctly identify the projection.  
_GEOGCS[“WGS 84”,DATUM[“WGS\_1984”,SPHEROID[“WGS 84”,6378137,298.257223563,AUTHORITY[“EPSG”,“7030”]],AUTHORITY[“EPSG”,“6326”]],PRIMEM[“Greenwich”,0,AUTHORITY[“EPSG”,“8901”]],UNIT[“degree”,0.0174532925199433,AUTHORITY[“EPSG”,“9122”]],AUTHORITY[“EPSG”,“4326”]]_

So I defined the projection back to Mass. Mainland by downloading the .prj file.  
[http://spatialreference.org/ref/epsg/2249/](http://spatialreference.org/ref/epsg/2249/)

I then reprojected to WGS 1984 Geographic Coordinates using QGIS. I then added to SketchUp.

---

<div class="post-metadata">

**Author:** ![durrroy](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/durrroy/32/109_2.png) [@durrroy](https://forums.sketchup.com/u/durrroy)\
**Post date:** [December 30, 2015, 12:56am UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078/6 "2015-12-30T00:56:45Z")

</div>

Where can I get the plugin? I don’t see it in the Extension Warehouse.

---

<div class="post-metadata">

**Author:** ![jimhami42](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/jimhami42/32/1781_2.png) [@jimhami42](https://forums.sketchup.com/u/jimhami42)\
**Post date:** [December 30, 2015, 3:54am UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078/7 "2015-12-30T03:54:16Z")

</div>

> [@durrroy](#):
>
> Where can I get the plugin? I don’t see it in the Extension Warehouse.

> **[GitHub - BLipscomb/ShapeImporter: A SketchUp plugin built in Ruby. It enables...](https://github.com/BLipscomb/ShapeImporter)**
>
> A SketchUp plugin built in Ruby. It enables the user to import shapefiles into SketchUp. - GitHub - BLipscomb/ShapeImporter: A SketchUp plugin built in Ruby. It enables the user to import shapefile...

This will import points and polylines. If you’re interested in importing polygons (such as building footprints and heights), you might try this plugin as well:

[https://sites.google.com/site/spirixcode/code/jimhami42\_shapefile\_importer.rbz](https://sites.google.com/site/spirixcode/code/jimhami42_shapefile_importer.rbz)

There is also a plugin to read OSM XML files that you can select and export data from:

> **[OpenStreetMap](https://www.openstreetmap.org/)**
>
> OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

The plugin can be found at:

[https://sites.google.com/site/spirixcode/code/jimhami42\_osm\_importer.rbz](https://sites.google.com/site/spirixcode/code/jimhami42_osm_importer.rbz)

---

<div class="post-metadata">

**Author:** ![vishnue](https://avatars.discourse-cdn.com/v4/letter/v/f475e1/32.png) [@vishnue](https://forums.sketchup.com/u/vishnue)\
**Post date:** [April 9, 2018, 6:59am UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078/8 "2018-04-09T06:59:51Z")

</div>

I have a shapefile of watersupply pipelines in WGS84 GCS. While importing, Ruby Console displaying that: "BLOCK-IN" ![RubyError](https://global.discourse-cdn.com/sketchup/original/3X/1/9/19479f384a13229b724b568909513e5889e5d84a.png)  
Please help me out.

---

<div class="post-metadata">

**Author:** ![blipscomb](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@blipscomb](https://forums.sketchup.com/u/blipscomb)\
**Post date:** [April 10, 2018, 1:14am UTC](https://forums.sketchup.com/t/shapefile-importer-for-sketchup/10078/9 "2018-04-10T01:14:20Z")

</div>

I’m sorry about the issues you are having.

Did you bring in a Google Earth image for geolocation?

Also is you’re line file a 2D or 3D line file?
