Skip to content
This repository was archived by the owner on Dec 3, 2018. It is now read-only.

Support key_field_as_attribute postgis option #1477

Merged
merged 4 commits into from
Oct 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"js-yaml": "https://github.com/mapbox/js-yaml/tarball/scalar-styles",
"fstream": "1.0.x",
"tar": "2.1.x",
"mapnik": "3.4.7",
"mapnik": "3.4.8",
"mapnik-reference": "~8.5.0",
"carto": "0.15.2",
"carto": "0.15.3",
"tilelive": "~5.9.0",
"tilelive-bridge": "~1.6.0",
"tilelive-vector": "~3.5.0",
Expand Down
1 change: 1 addition & 0 deletions templates/layerpostgis.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ <h3 class='fl'>
<input type='hidden' name='Datasource-type' value='postgis' />
<input type='hidden' name='Datasource-max_size' value='512' />
<input type='hidden' name='Datasource-srid' value='<%= obj.Datasource.srid %>' />
<input type='hidden' name='Datasource-key_field_as_attribute' value='<%= typeof obj.Datasource.key_field_as_attribute !== undefined ? obj.Datasource.key_field_as_attribute : 1 %>' />
</section>
<section class='clearfix pad2x pad1y keyline-bottom'>
<label class='pad0y col3 inline'>Extent </label>
Expand Down
1 change: 0 additions & 1 deletion test/duplicate_module.pretest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var count_module = function (name, callback) {
'mbtiles',
'mapnik-reference',
'carto',
'node-pre-gyp'
].forEach(function(mod) {
tape.test('there should only be one ' + mod + ' module, otherwise you are asking for pwnage', function (t) {
count_module(mod, function (err, count) {
Expand Down
2 changes: 1 addition & 1 deletion test/source.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ test('source.mbtilesExport: verify export', function(t) {
src._db.get('select count(1) as count, sum(length(tile_data)) as size from tiles;', function(err, row) {
t.ifError(err);
t.equal(row.count, 5461);
t.equal(row.size, 376830);
t.equal(row.size, 376847);
check([
[0,0,0],
[1,0,0],
Expand Down