Skip to content

Commit

Permalink
Merge pull request #6389 from rouault/fix_mvt_point
Browse files Browse the repository at this point in the history
MVT generation: fix writing of point/multipoint geometries
  • Loading branch information
rouault committed Aug 25, 2021
2 parents 8e582ad + 8b3c906 commit 01d0e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapmvt.c
Expand Up @@ -318,7 +318,7 @@ int mvtWriteShape( layerObj *layer, shapeObj *shape, VectorTile__Tile__Layer *mv

if(layer->type == MS_LAYER_POINT) {
int idx=0, lastx=0, lasty=0;
mvt_feature->geometry[idx++] = COMMAND(MOVETO, mvt_feature->n_geometry-1);
mvt_feature->geometry[idx++] = COMMAND(MOVETO, (mvt_feature->n_geometry-1) / 2);
for(i=0;i<shape->numlines;i++) {
for(j=0;j<shape->line[i].numpoints;j++) {
mvt_feature->geometry[idx++] = PARAMETER(MS_NINT(shape->line[i].point[j].x)-lastx);
Expand Down

0 comments on commit 01d0e7c

Please sign in to comment.