Questions tagged [rotate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

NetCDF file is rotated QGIS

I downloded IMERG precipitation data as NetCDF files but when I use QGIS to open them, the raster files are rotated. Does anyone know how to solve this?
0
votes
1answer
39 views

Rotation of a spatial grid by an angle around a pivot with python gdal or rasterio

What I want to do: I have been trying to: Open a raster Make a copy Rotate the copy by an angle with the raster center as a pivot Keep the resolution constant in x/y dimension Solution 1 with gdal: #...
1
vote
1answer
51 views

DragRotate Interaction Distorts GeoTIFF OpenLayers 6.9.0 [closed]

Context I have some GeoTIFF files that are loaded directly into OpenLayers via a WebGLTile Layer with a GeoTIFF source. My code is similar to the example in this workshop. I am also registering a non-...
1
vote
0answers
55 views

Rotating a shapefile to North in QGIS

In QGIS 3.x, is there a way to rotate a 50 x 2 metre rectangle (ESRI shapefile) to exactly grid/map North (0.0 degrees in British National Grid) whatever angle it has been drawn at originally, but ...
8
votes
1answer
142 views

Calling Rotate Feature from Python code in QGIS

To rotate feature(s) in QGIS you need to be in editing mode, select one or more features then use "Rotate Feature" tool present inside Advanced Digitizing Toolbar: But how can we call this ...
1
vote
0answers
17 views

Doubt with tools "rotate object" and automatic tracing mode

I have a doubt with the edition of polygons. I have created many tables to digitize some archaeological surveys and I have encountered several problems. For reasons of the site, these surveys were not ...
0
votes
0answers
19 views

Open binary format for grids with rotation support

Is there some relatively generally accepted open binary format for rotation-enabled grids? I want to provide the most convenient interaction between different packages of geological modeling and ...
3
votes
1answer
42 views

Esri's symbol rotation angle in QGIS 3.18

I have few point layers from Esri ArcMap, whose symbols rotate as per the values(double) defined in a "Rotation" field. However, when I use the layers in QGIS 3.18, the rotation value ...
1
vote
0answers
65 views

Adding Azimuth to each point in GeoJSON

I have a GeoJSON which returns a set of points, for each point I have different azimuth(rotation) is required. I have tried using the rotate property of OpenLayers, however when I use it all the point ...
0
votes
0answers
26 views

Rotating point feature on line feature in ArcMap

I have a line and a point feature class in ArcMap. I want to rotate the point feature on the line feature. I will use the Symbol Rotate Option with a defined field. I have a script for Field ...
0
votes
1answer
137 views

Rotating GeoTIFF images

I have a GeoTIFF file which when imported using rasterio get flipped on the y-axis, and now I am trying to rotate this GeoTIFF file using NumPy rotate, it gives an error (Axes=(0, 1) out of range for ...
0
votes
0answers
38 views

Haversine formula on rotated poles sphere

I'm working with climate data from the CORDEX domain WAS-22. The data are on rotated poles grid defined as: char rotated_pole; :long_name = "coordinates of the rotated North Pole"; :...
2
votes
1answer
147 views

Rotation of a cropped portion of a raster map

We create printed maps from a GeoTIFF file projected in LCC, which is a common projection for aviation maps. Part of our process includes customization of the raster image by selecting a region and ...
1
vote
1answer
138 views

Using R, how do I rotate a GeoTiff file with multiple bands and save it?

My existing code (see below) only reads and rotates one band but I want all 360 of my bands to rotate. library(raster) your_raster <- raster("path/to/raster.tif") rotated_raster <- ...
6
votes
0answers
83 views

QGIS vector field marker not respecting map rotation

I’m working on a map the shows point displacement between two dates. These are survey benchmarks that are surveyed periodically to observe slope movement. Symbolizing this is QGIS is straight forward ...
2
votes
0answers
92 views

Rotating vertices of geometries in QGIS

I have a great number of area geometries, and line- and point-geometries which have a geometric relation to the area. That means that the distance and the orientation of the lines/points to the areas ...
3
votes
1answer
73 views

Rotating a selection of features around their individual centroid rather than the combined centroid

The rotate feature in QGIS 3 allows you to select multiple features at once and rotate them around the centroid of their combined geometries, as found in the documentation. You can also use an anchor ...
2
votes
1answer
529 views

Mapbox GL - data driven icon rotation

So I am trying to rotate map icons based on an "orientation" attribute field (which provides the bearing in degrees). I've tested this in Mapbox studio and it is working fine. When I copy ...
1
vote
1answer
285 views

Rotate and edit Legend in layout (Python-QGis)

I'm trying to set up a legend in the lower part of the map and I have only achieved this: legend = QgsLayoutItemLegend(layout) legend.model().setRootGroup(root) layout.addLayoutItem(legend) legend....
2
votes
1answer
173 views

Moving rotated polygons horizontally to avoid overlap

To rotate rectangular polygons, I use the following (courtesy from this answer): rotation = 50 vlayer = iface.activeLayer() provider = vlayer.dataProvider() couples_id_geom = [] for feature in vlayer....
2
votes
1answer
193 views

Rotating features in memory layer using PyQGIS

I can rotate polygon features in a shapefile using: vlayer = iface.activeLayer() vlayer.startEditing() for ft in vlayer.getFeatures(): geom = ft.geometry() pt = ft.geometry().centroid()....
1
vote
0answers
78 views

Change of latitude and longitude when rotating around an Euler pole

Suppose we have a point P on the surface of the Earth characterized by its latitude and longitude. There is an Euler pole given together with an angle of rotation around the axis associated with this ...
0
votes
2answers
171 views

QGIS 3.10: Project and Layer have Proj. Coord. System, why is layer tilted?

[OP edited to change tense and to show correct steps, in italics] QGIS 3.10, Ubuntu 18.04 I was questioning why my map displayed at a +10 degree rotation, but displayed unrotated in the Print Layout. ...
3
votes
0answers
268 views

Compute a rotation relative to ENU

I am using CESIUM JS. I posted a message in cesium forum some days ago, but I didn't manage to find a solution. I have a 3D camera moving freely on a map. I have a 2D map (let's call it minimap) that ...
1
vote
1answer
429 views

Rotating a map/projection in GeoPandas

I'm trying to get a map of Manhattan that is aligned vertically. I have a GeoJSON file with polygons in EPSG:4326 in fname that I've been transforming to EPSG:6539 gdf = gpd.read_file(fname).to_crs("...
1
vote
0answers
32 views

3D variography: rotation matrices for multiple angles support

I'm currently working on a 3D variogram algorithm based on geostatsmodels (which only handles 2D datasets). I'm having a hard time understanding how to have rotation along the z-axis for azimuth ...
2
votes
1answer
315 views

How do you flip and rotate NetCDF (.nc) files in QGIS?

I am trying to extract Surface PM2.5 values from the NetCDF files available on the Atmospheric Composition Analysis Group's website. However, when I load it into QGIS, it appears to be flipped and ...
0
votes
1answer
84 views

ArcGIS Pro SDK set rotation / angle field in renderer

I'm in the process of converting an Addin written in ArcObjects to an ArcGIS Pro Addin. I need to rotation everything in a point layer using the values stored in the ANGlE field. In ArcObjects I was ...
1
vote
1answer
23 views

Define raster Rotation in NetCDF

I am trying to add rotation to a NetCDF File One Idea was to add a additional parameter to my current grid mapping that describes the rotation point and the rotation: PROJCS["...
0
votes
1answer
209 views

Rotate raster before tiling

I have set of referenced rasters (.tif), which need to be tiled - but each of them need to be rotated by a certain degree before that using python (gdal mainly as other routines use it as well). In ...
2
votes
1answer
344 views

QGIS3 Separately rotate the orientation of individual composer atlas maps?

Is it possible to rotate each individual atlas detail map separately? In creating an atlas for a long linear feature (rivers) to be output in engineering-style pages (11 x 17), it is nice to include ...
1
vote
2answers
912 views

How to rotate rasters with GDAL, QGIS or GRASS GIS

I need to rotate raster files from the TRMM Multisatellite Precipitation monthly product 3B43. For some unknown reason, this data comes rotated 90 degrees clockwise, meaning that the y coordinate is ...
1
vote
0answers
100 views

Rotating vector grid in QGIS 3.10 vs 3.8

Just wondering if anyone else has had an issue with vector rotation via the advanced editing tools in 3.10? I have a vertical grid overlaying Vancouver Island that I had tried to rotate using the ...
2
votes
1answer
119 views

Rotating Feature in Vector Layer using PyQGIS

I am using QGIS 3.4. I am new in gis and I am trying to rotate a feature of a vector layer. Code: for ft in feat: vlayer.startEditing() the_geom = ft.geometry() pt = ft.geometry()....
3
votes
2answers
398 views

Rotating legend item labels in QGIS Layout Manger?

I want to create horizontal legend in QGIS (v 3.8.0). Is it possible to rotate legend item labels in Layout Manager?
2
votes
1answer
2k views

Converting Longitude range from (0,360) to (-180,180) in Python or by using gdal commands

I have a raster downloaded. Visualising it in QGIS. I want to correctly project it so that its extent varies with longitudes from -180 to 180 instead of 0 to 360. gdalinfo filename.nc outputs the ...
0
votes
1answer
50 views

2dm data disappears after rotating layout in QGIS

I ran into a bug (I suppose) recently. After loading a *.2dm format mesh (triangulated irregular network with elevation data), with the Layer --> Add Layer --> Add Mesh Layer command, I put some ...
1
vote
1answer
3k views

Rotate raster in QGIS

I have two raster datasets of Antarctica, however, they do not match spatially as one of the raster should be rotates 90 degrees. Is there a way to do this in QGIS?
1
vote
1answer
91 views

Point symbol rotation in QGIS 3

In QGis 2.x, I could rotate a point symbol towards the nearest geometry of a certain kind by using: geomnearest('featuretype', 'BEARING') This however does not work in QGIS 3.x, and I cannot find ...
1
vote
1answer
291 views

Rotating Polygon in 3D Space as KML for Google Earth?

I'm trying to create this effect in a KML to be displayed in Google Earth. I am writing in KML 2.1 as a reference. I know it is possible to create a polygon that is circular in appearance, but can ...
2
votes
1answer
257 views

Determining rotation of rectangle features for Data Driven Pages in ArcGIS Desktop?

I am trying to generate a large number of plans using the Data Driven Pages in ArcGIS Desktop. I have created an index layer comprising a series of rectangle features that correspond to set scales ...
0
votes
1answer
84 views

Rotating around arbitrary point, not center when using Google Earth Pro to Edit Image Overlay?

In Google Earth Pro "Edit Image Overlay", we can rotate the overlay around its center (via grabbing the green diamond,) but how might one rotate it around an arbitrary point not its center? (Yes, ...
6
votes
2answers
2k views

Rotating shape around defined point instead of centroid in QGIS?

The rotate feature in QGIS 3 rotates shapes around the centroid of that shape (with our without a defined angle). When I start to rotate, I see that a cross appears at the centroid of that shape. I ...
1
vote
1answer
28 views

Including rotated label alongside stacked label in ArcMap?

I am trying to replicate the label that I have attached an image of. Is this possible in ArcMap? So far I have stacked 3 labels but am unsure how to: Create 3 individual boxes around the stacked ...
2
votes
0answers
223 views

Rotating symbols by Data Frame coordinate system in ArcGIS Pro?

Is it possible to ensure that symbols rotated by attribute (compass azimuth) retain their proper orientation when the Data Frame coordinate system changes? Answers have been provided for this issue ...
0
votes
0answers
73 views

Rotate feature around defined fixed point using ArcGIS 10.4

I have a polygon feature and want to rotate it around defined (fixed point). There is a Rotate tool in Editor toolbar but I can't define fixed rotation point. I am using ArcGIS 10.4 and want to know ...
0
votes
0answers
810 views

Flipping raster with Python

I am trying to calculate summary statistics for a raster file. I am encountering a problem when loading my raster into Python. When I load the raster and I plot it, it is flipped 180 degrees. This ...
1
vote
0answers
78 views

QGIS extracted azimuth used for symbol rotation seems not reproduced faithfully [closed]

A field of calculated azimuths* (degrees) of digitized two-point lines was created. Field expression to calculate azimuth: degrees( azimuth( point_n( $geometry ,1) , point_n( $geometry ,2 ) ) ) . ...
1
vote
2answers
937 views

How to make a raster gradient in any direction in R

How can I create a raster, where the values increase in a certain direction? I know how to do the "main" directions with full 90 degree steps, as illustrated in the image. But I would need some help ...
2
votes
1answer
129 views

Rotating polygons by azimuth from attribute table using ArcPy [closed]

I want to rotate some polygons according to the value of azimuth from attribute table. I try to use this code but there is an error that I can not understand. CODE import arcpy, math fc = 'Polygons'...