kunitoki
74342e3083
- no need to #ifdef all the time: the compiler should optimize out the log calls when no MAPNIK_LOG is defined
...
- initially got rid of those ifdefs in plugins only
2012-04-09 12:05:49 +02:00
kunitoki
8c58a9aa73
- improved again the logging facilities
...
- aligned the plugins to using the new methods with severity
- implemented per object severity, with fallback to global (with global functions to set them programmatically)
- initial check in of logger python bindings (todo)
2012-04-09 03:00:51 +02:00
kunitoki
1f351e0e09
implement new debug system
2012-04-08 02:20:56 +02:00
Dane Springmeyer
c88fcc8f04
revert unintended change to sqlite in a7e150a593
2012-04-03 16:33:06 -07:00
Dane Springmeyer
a7e150a593
tests: add simple tests for postgis 'bbox' token replacement
2012-04-02 19:29:06 -07:00
Hermann Kraus
c3cd50ff57
Complete new XML structure.
2012-03-07 19:16:41 +01:00
Dane Springmeyer
77c58e487d
whitespace fixes
2012-02-01 17:37:35 -08:00
Dane Springmeyer
aa6da2dce9
collect context before featureset creation in sqlite
2012-01-23 23:51:31 -08:00
Dane Springmeyer
b0d0d06564
finish refactor, moving to separate method off datasources to get_geometry_type and using enums all around
2012-01-17 01:09:46 -05:00
Dane Springmeyer
834310f2d8
refactor
2012-01-14 22:35:40 -08:00
Dane Springmeyer
7be62e594a
ensure all plugins report best guess at top level geometry_type using new descriptor attribute
2012-01-11 20:03:23 -08:00
Dane Springmeyer
04dd46315e
add support for 'intersects' token in sqlite plugin - closes #809
2011-12-16 10:05:54 -08:00
Dane Springmeyer
b518402686
sqlite: when building rtree sql, only try WHERE substitution if not doing join
2011-12-16 08:14:08 -08:00
Dane Springmeyer
0ebf79e5ea
sqlite: improve the error message when geometry_field could not be autodetected
2011-12-16 07:48:02 -08:00
Artem Pavlenko
cc60b74921
Simplify geometry model to support: Point/LineString/Polygon
...
Multi geometries are collections of single geometries
Remove multiple_geometries parameter
2011-12-06 12:53:16 +00:00
Dane Springmeyer
d5252187d3
sqlite: ensure non-existant columns requested in query prompt error by switching quoting character to brackets - closes #984 - refs #792
2011-12-05 13:22:00 -08:00
Dane Springmeyer
d8c6529654
sqlite: add (currently unused) in-memory rtree creation code
2011-11-20 16:42:28 -08:00
Dane Springmeyer
ce9e44b5f2
plugin code formatting based on emacs format in utils/format_source_files
2011-11-13 19:37:50 -08:00
Dane Springmeyer
a4715aa8df
sqlite: disassociate extent calculation from rtree auto-index creation, and grab immediate lock on rtree table
2011-11-13 16:02:27 -08:00
Dane Springmeyer
5669226166
sqlite: autoquote table names that start with numbers to better support natural earth conversions from shapefiles
2011-11-10 09:42:04 -08:00
Dane Springmeyer
bdc726a525
sqlite: return success or failure from rtree indexing function and report available tables if the pragma table_info() fails
2011-11-09 19:18:12 -08:00
Dane Springmeyer
d965bcbeae
sqlite: futher refactoring of sqlite plugin, allowing all tests to pass
2011-11-03 19:51:37 -04:00
Dane Springmeyer
03137cf523
first pass at refactoring bind() to be more manageable in sqlite plugin - refs #928
2011-10-28 21:24:47 -07:00
kunitoki
b779e406d0
- aligned coding style in sqlite plugin
2011-10-22 14:50:24 +02:00
kunitoki
3e60fa2d5a
- favour speed for already specified keys
2011-10-19 00:44:20 +02:00
kunitoki
8383603703
- fixed nose tests on attachdb (still this code seems a bit messy?)
2011-10-19 00:42:49 +02:00
kunitoki
ba6e6d9c31
- improved automatic determination of key_field from pragma table_info.
...
- avoid using rowid if we don't have a primary key
2011-10-18 23:51:01 +02:00
kunitoki
5d72d50f74
- added some comments to clear that using rowid as default key_field for sqlite is *EXTREMELY* dangerous (aka no primary key, unexpected results may appear)
...
- more cosmetics in sqlite plugin
- refactor unquote function to be lighter and simpler
2011-10-18 23:32:25 +02:00
kunitoki
8b9d05db0a
- fixed a problem in automatic sqlite wkb format determination code
...
- other cosmetics in sqlite datasource
2011-10-18 22:53:47 +02:00
kunitoki
b23697e1b3
- cosmetics changes to sqlite datasource plugin
...
- added initial wkbAuto to auto determine WKB type in sqlite
2011-10-18 22:19:03 +02:00
Dane Springmeyer
f1b8452794
sqlite: report rtree index creation failure - patch from kkaefer - closes #884
2011-09-15 21:58:20 +00:00
Artem Pavlenko
5476e8410b
+ amend input plug-ins to use new wkb interface
2011-09-13 11:54:20 +00:00
Dane Springmeyer
5fcc403135
sqlite: move init logic into bind()
2011-09-02 21:21:01 +00:00
Dane Springmeyer
546edcc684
sqlite: improve debug output mode
2011-09-02 13:50:40 +00:00
Dane Springmeyer
3c2b154c52
fix nightlies compile on boost 1.42
2011-09-02 01:38:24 +00:00
Dane Springmeyer
aa9bdf0d5a
sqlite: complete symlinks so that the proper relative path can be fetched for an attached db reference - closes #859
2011-09-01 23:23:29 +00:00
Dane Springmeyer
7b89a580f6
quote the index table to avoid sql failures during index creation if the table has characters like needing quotes like ':'
2011-08-31 22:47:37 +00:00
Dane Springmeyer
d5eb58a46a
sqlite: fix and optimize unicode dequoting of double quoted field names returned from subqueries
2011-08-24 00:32:00 +00:00
Dane Springmeyer
c227b9a6a5
sqlite: move to 64bit id types for generation of index, and improve error message when pragma table_info fails
2011-08-17 20:39:07 +00:00
Dane Springmeyer
d3211372a4
sqlite: support both single and double quoted table names
2011-08-16 23:24:02 +00:00
Dane Springmeyer
aaf9d960d7
sqlite: properly initialize rowid default
2011-08-16 23:05:19 +00:00
Dane Springmeyer
6d5c6d7458
sqlite: query from geometry_table_ rather than table_ to hopefully avoid problems with rowid being missing from subquery
2011-08-16 16:45:03 +00:00
Dane Springmeyer
9f4deb00c0
sqlite: do not warn anymore about a spatial index being missing because it will be created automatically
2011-08-16 16:27:49 +00:00
Dane Springmeyer
443297efe8
sqlite: better error handling around key_field, when not manually supplied
2011-08-16 16:17:54 +00:00
Dane Springmeyer
40df7f57c3
sqlite: add auto-indexing of sqlite files if use_spatial_index=true and a spatial index is missing (which is the case for ogr2ogr -f SQLite created sqlite files)
2011-08-15 20:02:57 +00:00
Dane Springmeyer
cfe49fcaf6
sqlite: enable dynamic querying of extent as a last fallback for non-spatialite and non-indexed sqlite files
2011-08-13 02:52:46 +00:00
Dane Springmeyer
17d5173678
restore compile with boost 1.42
2011-08-13 01:44:37 +00:00
Dane Springmeyer
f1b8f02110
sqlite: fix relative path logic for attachdb - closes #817
2011-08-12 19:26:30 +00:00
Dane Springmeyer
00866525fd
sqlite: better error checking and reporting around an rtree spatial index that is empty
2011-08-10 23:42:47 +00:00
Dane Springmeyer
4a4ac626ef
sqlite: handle a potentially quoted geometry table
2011-08-10 22:48:50 +00:00