Rotating ortho-satellite imagery so that square polygon perpendicular to the viewer The Next CEO of Stack OverflowHow to decrease GeoTIFF file size by eliminating or negating the blackfill?ST_NumInteriorRings not returns zero, is a bug?Rotate Polygon to be Parallel with the X AxisHow to transform any GeoTIFF to Lambert Azimuthal Equal Area with GDAL?How do I select polygons that overlap by a specified percentage of overlap?Need unique id and to select for polygons by size after ST_Dump, ST_IntersectionCut, rotate and interpolate raster heightmap with QGISConvert N-sided polygon to nearest fitting rectangle?Using --config flag with the Python GDAL gdal.Translate()GDAL: Using gdallocationinfo on a rotated SAR image to get pixel value at Coordinates

Could a dragon use its wings to swim?

What happens if you break a law in another country outside of that country?

When are "cron.monthly" cron jobs run?

Does Germany produce more waste than the US?

What are the unusually-enlarged wing sections on this P-38 Lightning?

Integrating a list of values

Percent Dissociated from Titration Curve

Issue with New version of Metamask: Remix cannot detect the Metamask address

A collective noun for a group of spaceships

Noise during hard braking

Why do we say “un seul M” and not “une seule M” even though M is a “consonne”?

Free fall ellipse or parabola?

Words hidden in my phone number

Masking layers by a vector polygon layer in QGIS

How does a dynamic QR code work?

An elegant way to define a sequence

Is it okay to majorly distort historical facts while writing a fiction story?

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

Compensation for working overtime on Saturdays

Man transported from Alternate World into ours by a Neutrino Detector

Shortening a title without changing its meaning

How to pronounce fünf in 45

What does this strange code stamp on my passport mean?

forward revert message from low level solidity call



Rotating ortho-satellite imagery so that square polygon perpendicular to the viewer



The Next CEO of Stack OverflowHow to decrease GeoTIFF file size by eliminating or negating the blackfill?ST_NumInteriorRings not returns zero, is a bug?Rotate Polygon to be Parallel with the X AxisHow to transform any GeoTIFF to Lambert Azimuthal Equal Area with GDAL?How do I select polygons that overlap by a specified percentage of overlap?Need unique id and to select for polygons by size after ST_Dump, ST_IntersectionCut, rotate and interpolate raster heightmap with QGISConvert N-sided polygon to nearest fitting rectangle?Using --config flag with the Python GDAL gdal.Translate()GDAL: Using gdallocationinfo on a rotated SAR image to get pixel value at Coordinates










0















I'm trying to figure out how to rotate this satellite geotiff so that the rooftop polygon would appear as square as possible to the viewer rather than a diamond shape. See example below.



How to calculate the angle that the polygon and the image should be rotated to appear squarish? And how to rotate the geotiff by that amount (using gdal say)?



I've tried measuring the angles on the polygon with ST_Dump and ST_Angle but that returns nulls. I tried ST_Azimuth which returns values, but I don't understand how to use this information to solve my problem.



Example:



POLYGON((-104.947919 39.530436,-104.948051 39.530497,-104.948127 39.530398,-104.947995 39.530337,-104.947919 39.530436))


enter image description here



enter image description here










share|improve this question




























    0















    I'm trying to figure out how to rotate this satellite geotiff so that the rooftop polygon would appear as square as possible to the viewer rather than a diamond shape. See example below.



    How to calculate the angle that the polygon and the image should be rotated to appear squarish? And how to rotate the geotiff by that amount (using gdal say)?



    I've tried measuring the angles on the polygon with ST_Dump and ST_Angle but that returns nulls. I tried ST_Azimuth which returns values, but I don't understand how to use this information to solve my problem.



    Example:



    POLYGON((-104.947919 39.530436,-104.948051 39.530497,-104.948127 39.530398,-104.947995 39.530337,-104.947919 39.530436))


    enter image description here



    enter image description here










    share|improve this question


























      0












      0








      0








      I'm trying to figure out how to rotate this satellite geotiff so that the rooftop polygon would appear as square as possible to the viewer rather than a diamond shape. See example below.



      How to calculate the angle that the polygon and the image should be rotated to appear squarish? And how to rotate the geotiff by that amount (using gdal say)?



      I've tried measuring the angles on the polygon with ST_Dump and ST_Angle but that returns nulls. I tried ST_Azimuth which returns values, but I don't understand how to use this information to solve my problem.



      Example:



      POLYGON((-104.947919 39.530436,-104.948051 39.530497,-104.948127 39.530398,-104.947995 39.530337,-104.947919 39.530436))


      enter image description here



      enter image description here










      share|improve this question
















      I'm trying to figure out how to rotate this satellite geotiff so that the rooftop polygon would appear as square as possible to the viewer rather than a diamond shape. See example below.



      How to calculate the angle that the polygon and the image should be rotated to appear squarish? And how to rotate the geotiff by that amount (using gdal say)?



      I've tried measuring the angles on the polygon with ST_Dump and ST_Angle but that returns nulls. I tried ST_Azimuth which returns values, but I don't understand how to use this information to solve my problem.



      Example:



      POLYGON((-104.947919 39.530436,-104.948051 39.530497,-104.948127 39.530398,-104.947995 39.530337,-104.947919 39.530436))


      enter image description here



      enter image description here







      postgis gdal orthophoto






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday







      metalaureate

















      asked 2 days ago









      metalaureatemetalaureate

      1366




      1366




















          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%2f317233%2frotating-ortho-satellite-imagery-so-that-square-polygon-perpendicular-to-the-vie%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%2f317233%2frotating-ortho-satellite-imagery-so-that-square-polygon-perpendicular-to-the-vie%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

          Magento 1.9 observer on only new product added ( no updated product )Admin Create New Order ObserverObserver checkout_cart_product_add_after get product quantity in cartHow can I differentiate between product creation and saving existing products?How to get the original price Product SaveBeforeMagento Observer for Admin Sales order Address updateHow do i get quantity in a product_save_after event observer magento2?Using observer event to get updated customer infoSave product observer - detect availabilityEvent not triggered when new product added in admin : Magento 2magento 1.9 observer on quantity product change

          Does an object always see its latest internal state irrespective of thread? The 2019 Stack Overflow Developer Survey Results Are InDoes a finally block always get executed in Java?Java: serial thread confinement questionJava difference between fixed threadpool and scheduled threadpoolJackrabbit and concurrent modificationHow to stop a Runnable scheduled for repeated execution after a certain number of executionsMultiple threads accessing inner classHow can a loop be completed by two thread? say loop from count=1 to count=4 by ist thread and count =5 to 8 by 2nd thread?If I keep a reference to a Runnable, when does the Thread it ran on get released?How to stop a schedule ScheduledExecutorServiceHow to implement a singleThreadedScheduledExcecutor in wildfly

          Adding contour labels to SpatialLinesDataFrame or sf object? The Next CEO of Stack OverflowTearing of SpatialLinesDataFrame and problem with gClip functionAutomatically adjusting map labelsExtracting data.frame from simple features object in RR convert sf object back to SpatialPolygonsDataFrameSimplify polygons of sf objectlines of a SpatialLinesDataFrame corresponding to pointsCropping sf object in R?Pattern matching with grepl on SpatialPolygonsDataFrame object in RHow to create and empty SpatialLinesDataFrame in RWarning message in raster::rotate(): “this does not look like an appropriate object for this function”