code: function Primitive(geojson){
      if(geojson){
        switch (geojson.type) {
        case 'Point':
          return new Point(geojson);
  
        case 'MultiPoint':
          return new MultiPoint(geojson);
  
        case 'LineString':
          return new LineString(geojson);
  
        case 'MultiLineString':
          return new MultiLineString(geojson);
  
        case 'Polygon':
          return new Polygon(geojson);
  
        case 'MultiPolygon':
          return new MultiPolygon(geojson);
  
        case 'Feature':
          return new Feature(geojson);
  
        case 'FeatureCollection':
          return new FeatureCollection(geojson);
  
        case 'GeometryCollection':
          return new GeometryCollection(geojson);
  
        default:
          throw new Error("Unknown type: " + geojson.type);
        }
      }
    }
docs: /*
  Internal: Base GeoJSON Primitive