These are the steps to test the new CARTO COPY endpoint (more details here and here.
- Downloaded a Brooklyn PLUTO shapefile from here as a data testing example.
- Generated a 1 row dataset to upload to CARTO the definition of the shapefile
- Uploaded it to CARTO using normal Import API (with a client I have for convenience)
- Removed the row
- Converted the original shapefile into a
PGDump
file - Generated the
COPY
command using the third line ofbkmappluto.txt
- Removed first 4 and last 2 lines of the resulting
$file
. - Encoding the
COPY
command to be used on a URL, I runcurl
command to upload the dataset