How to use gdal warp with modified crop_to_cutline? Unicorn Meta Zoo #1: Why another...

What's parked in Mil Moscow helicopter plant?

Align column where each cell has two decimals with siunitx

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

Has a Nobel Peace laureate ever been accused of war crimes?

Why isn't everyone flabbergasted about Bran's "gift"?

PIC mathematical operations weird problem

What to do with someone that cheated their way through university and a PhD program?

std::is_constructible on incomplete types

Why did C use the -> operator instead of reusing the . operator?

What is the least dense liquid under normal conditions?

c++ diamond problem - How to call base method only once

Is accepting an invalid credit card number a security issue?

How to not starve gigantic beasts

What ability score does a Hexblade's Pact Weapon use for attack and damage when wielded by another character?

Are these square matrices always diagonalisable?

Mistake in years of experience in resume?

Multiple options vs single option UI

Could Neutrino technically as side-effect, incentivize centralization of the bitcoin network?

What is a 'Key' in computer science?

Vigenère cipher in Ruby

What’s with the clanks in Endgame?

Can I criticise the more senior developers around me for not writing clean code?

What's the difference between using dependency injection with a container and using a service locator?

Retract an already submitted recommendation letter (written for an undergrad student)



How to use gdal warp with modified crop_to_cutline?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I know that this question might be confusing, so I'll try my best to explain it.



I have a shapefile that I will be using to clip my raster:



This is my shapefile (whole island of Palawan, Philippines): enter image description here



And this is my input raster to be clipped/extracted:
enter image description here



Now using gdalwarp, my result looks like this:
enter image description here



My question is, can I produce an output where its extent is based on the input raster only (and its partial shpfile extent) and does not include the whole shapefile?



This is the ouput raster extent that I want to have (as covered by green bounding box).
enter image description here









share





























    0















    I know that this question might be confusing, so I'll try my best to explain it.



    I have a shapefile that I will be using to clip my raster:



    This is my shapefile (whole island of Palawan, Philippines): enter image description here



    And this is my input raster to be clipped/extracted:
    enter image description here



    Now using gdalwarp, my result looks like this:
    enter image description here



    My question is, can I produce an output where its extent is based on the input raster only (and its partial shpfile extent) and does not include the whole shapefile?



    This is the ouput raster extent that I want to have (as covered by green bounding box).
    enter image description here









    share

























      0












      0








      0








      I know that this question might be confusing, so I'll try my best to explain it.



      I have a shapefile that I will be using to clip my raster:



      This is my shapefile (whole island of Palawan, Philippines): enter image description here



      And this is my input raster to be clipped/extracted:
      enter image description here



      Now using gdalwarp, my result looks like this:
      enter image description here



      My question is, can I produce an output where its extent is based on the input raster only (and its partial shpfile extent) and does not include the whole shapefile?



      This is the ouput raster extent that I want to have (as covered by green bounding box).
      enter image description here









      share














      I know that this question might be confusing, so I'll try my best to explain it.



      I have a shapefile that I will be using to clip my raster:



      This is my shapefile (whole island of Palawan, Philippines): enter image description here



      And this is my input raster to be clipped/extracted:
      enter image description here



      Now using gdalwarp, my result looks like this:
      enter image description here



      My question is, can I produce an output where its extent is based on the input raster only (and its partial shpfile extent) and does not include the whole shapefile?



      This is the ouput raster extent that I want to have (as covered by green bounding box).
      enter image description here







      qgis gdal clip





      share












      share










      share



      share










      asked 1 min ago









      brentiemapperbrentiemapper

      378621




      378621






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f320794%2fhow-to-use-gdal-warp-with-modified-crop-to-cutline%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f320794%2fhow-to-use-gdal-warp-with-modified-crop-to-cutline%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

          Meter-Bus Содержание Параметры шины | Стандартизация |...