mapbox / node-wmshp

Reproject shapefiles to EPSG:3857 using node-gdal
ISC License
9 stars 5 forks source link

Crop again #8

Closed rclark closed 9 years ago

rclark commented 9 years ago

A bunch of changes:

Question: Cropping presents a scenario where a feature might fall entirely outside the bounds of the target SRS. In this case, we have to decide if we should drop the feature out of the output shapefile, or if we should keep the feature, but set its geometry to null. As written right now, this PR drops the feature out. Is this the right behavior?

cc @GretaCB @BergWerkGIS

wilhelmberg commented 9 years ago

As written right now, this PR drops the feature out. Is this the right behavior?

Yes, I dare say so. If the feature is out of the +/-85.xxx bounds it cannot reasonably be displayed with Web Mercator anyway. If anybody wants to display data close to or on the poles they have to look for other solutions.