Skip to content
Permalink
Browse files

Added explicit conversion for long attributes.

  • Loading branch information...
sdlime committed Feb 21, 2019
1 parent 7fe9b2b commit a05d92de8263b1c5bcfada89a9755c366d1f9061
Showing with 4 additions and 1 deletion.
  1. +4 −1 mapmvt.c
@@ -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") ) {

0 comments on commit a05d92d

Please sign in to comment.
You can’t perform that action at this time.