Updated CSV Plugin (markdown)

Dane Springmeyer 2013-11-13 17:30:35 -08:00
parent ffad4058d3
commit 553cbf5d8b

@ -2,7 +2,7 @@ _New in Mapnik 2.1_
This plugin can read tabular data with embedded geometries. It auto-detects column types based on common sense type coercion and auto-detects geometry data by looking for header names like `latitude/lat` and `lon/long/lng/longitude` that likely encode point data. It can also handle GeoJSON and WKT encoded geometries and will find these if any column headers are named `geojson` or `wkt` (case-insensitive). This plugin can read tabular data with embedded geometries. It auto-detects column types based on common sense type coercion and auto-detects geometry data by looking for header names like `latitude/lat` and `lon/long/lng/longitude` that likely encode point data. It can also handle GeoJSON and WKT encoded geometries and will find these if any column headers are named `geojson` or `wkt` (case-insensitive).
It supports reading CSV data from files if you pass the `file` option. But if you instead pass the `inline` option and provide CSV data as a string then it will read this data instead of looking on the filesystem. An example of this usage is describe in the page on [how to author good testcases(https://github.com/mapnik/mapnik/wiki/A-perfect-testcase#portable). It supports reading CSV data from files if you pass the `file` option. But if you instead pass the `inline` option and provide CSV data as a string then it will read this data instead of looking on the filesystem. An example of this usage is describe in the page on [how to author good testcases](https://github.com/mapnik/mapnik/wiki/A-perfect-testcase#portable).
This plugin reads the entire file upon initialization and caches features in memory so it is extremely fast for rendering from after initial startup (for reasonable size files under 5-10 MB). This plugin reads the entire file upon initialization and caches features in memory so it is extremely fast for rendering from after initial startup (for reasonable size files under 5-10 MB).