Import of a 4 MB zipped shapefile gives the error 'Fatal error: Maximum execution time of 30 seconds exceeded in ..\sites\all\modules\geo\includes\shp2sql.inc on line 304'.
It appears that only 39 records have been imported out of 253.

For importing significant shapefiles, the maximum execution time should be increased to e.g. 300 seconds. In addition, using the drupal progress indicator would be ideal :-)

Comments

allie micka’s picture

Do you have a reference to that shapefile? I'd like to see that for myself! I was successfully testing with a 4200+ record file, but perhaps the data was simpler than yours.

Agreed, the batch API would be most useful here.

jpulles’s picture

It can be found as an attachment at http://aardbodem.nl/?q=node/68.

allie micka’s picture

Title: Maximum execution time is exceeded when importing shapefiles » Batch API for bulk imports

OK, that's a wonderful dataset! I love it!

I'm not able to reproduce the timeout, and it's really weird you only got though a small percentage. However, I continue to agree that the batch api is where it's at, and I'm updating the title of this issue accordingly.

jpulles’s picture

The import was run on my 2 1/2 year old notebook, still single core. Probably it's getting too old and slow for this work...