Skip to content

Commit

Permalink
Added explicit conversion for long attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlime committed Feb 21, 2019
1 parent 7fe9b2b commit a05d92d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mapmvt.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ int mvtWriteShape( layerObj *layer, shapeObj *shape, VectorTile__Tile__Layer *mv
if( item->type && EQUAL(item->type,"Integer")) {
mvt_value->int_value = atoi(value->value);
mvt_value->has_int_value = 1;
} else if( item->type && EQUAL(item->type,"Real") ) {
} else if( item->type && EQUAL(item->type,"Long")) { /* signed */
mvt_value->sint_value = atol(value->value);
mvt_value->has_sint_value = 1;
} else if( item->type && EQUAL(item->type,"Real")) {
mvt_value->float_value = atof(value->value);
mvt_value->has_float_value = 1;
} else if( item->type && EQUAL(item->type,"Boolean") ) {
Expand Down

0 comments on commit a05d92d

Please sign in to comment.