<div dir="ltr"><div dir="ltr">Thanks for the reply.<div><br></div><div>I can see how spatially filtering the input (-spat) is useful, but I don't want to clip the geometries (other than clipping by tile edges that MVT driver does by default). What I'm after is spatial filtering of the output tiles based on each tile extent.</div><div><br></div><div>So to further clarify, I could do the translation using -spat <ROI> and then iterate over all of the generated MVT files and delete the ones whose tile extent does not intersect with <ROI>. But that would waste resources in a big way.</div><div><br></div><div>Thanks,</div><div>Jan Wolski</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 5, 2023 at 4:05 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <p>You can use the -spat + (-clipsrc or -clipdst) switches of
      ogr2ogr<br>
    </p>
    <div>Le 05/12/2023 à 14:57, Jan Wolski via
      gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I'm creating MVT tilesets for the ETRS-TM35FIN tiling
          scheme using GDAL/OGR. I'm prototyping with ogr2ogr but later
          I will be using Python bindings to create the production
          workflow.</div>
        <div><br>
        </div>
        <div>Is there a way to limit the geographic extent of where the
          MVT driver creates tiles? By default it seems to create all
          tiles that intersect any input feature. I would like to create
          only tiles that intersect a given extent. This is to enable
          partial update of a MVT tileset.</div>
        <div><br>
        </div>
        <div>This is the ogr2ogr command I have now:</div>
        <div>
          <p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ogr2ogr
              -f MVT stand MV_R5232B.gpkg stand -dsco "MAXZOOM=11" -dsco
              "MINZOOM=8" -dsco "TILE_EXTENSION=mvt" -dsco
              "TILING_SCHEME=EPSG:3067,-548576,8388608,2097152" -dsco
              "TYPE=overlay" -dsco "COMPRESS=NO"</span></p>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Jan Wolski</div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </div>

</blockquote></div></div>