As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [center]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers

Finding center point of opened QGIS application using PyQt

How can I find the center point of the opened QGIS application by means of PyQt? By center point I mean this red cross in the middle of my screen where I have opened QGIS, see the image below. I ...
Taras's user avatar
  • 28.8k
2 votes
1 answer

Recenter projection in QGIS

I'm new here, using QGIS 3.26.3. I have limited experience with GIS (mainly Global Mapper). I've also used QGIS before, but only to view data. I've used Global Mapper to make maps, including re-...
Craig's user avatar
  • 23
1 vote
0 answers

Draw polygon with specific dimensions [closed]

I'm a beginner with QGIS, and I'm trying to draw a polygon that is 10m x 10m with 90 degree angles placed along a line, and centred around a point on that line. I don't know what projection to use (I'...
Shona Guthrie's user avatar
1 vote
0 answers

Specifying center and zoom for ol.View

Is it a must to specifiy center and zoom when you declare ol.View? Because it still works when I pass in the extent value to fit function. Here's the example. This is my map variable. var map = new ol....
Seong-Min Brian Baek's user avatar
1 vote
1 answer

sDNA - cycle model based on start and end elevations rather than 3d shapefile

I want to run a cycle roundtrip model in sDNA. My file is a road center line (RCL) map, containing z coordinates (start Z, end Z - image attached). The RCL vector file is shown by GRASS GIS as 3D, but ...
SPet's user avatar
  • 111
7 votes
3 answers

Shifting existing points (Shapefile) to the center of raster pixels

I have some points in a shapefile in order to sample reflection values out of raster files. As these points are not positioned exactly in the center of their respective pixels, I am looking for a tool ...
jaysigg's user avatar
  • 477
1 vote
0 answers

How to get centerline of each polygon (rectangles) in QGIS [duplicate]

How to get centerline of each polygon (rectangles) as in Figure 1 in QGIS to obtain centerlines as in Figure 2 Figure 1 Figure 2
HansrajR's user avatar
  • 537
2 votes
0 answers

QGIS how to center the map while drawing a line

I have a line shapefile which represents a delivery route. I am able to extent this route by drawing, using an OSM layer for snapping. (works great!) Since I need a certain zoom level to see what I am ...
Maas 's user avatar
  • 21
4 votes
1 answer

Population centroid of irregular-shaped German counties based on a population density grid

I'm new to QGIS and stuck with this task. Here's the data I'm working with: 1-square-kilometer grid Shapefile of Germany (
flx_adam's user avatar
0 votes
1 answer

Centering Feature before exporting map to PDF?

I am trying to export single point file maps to PDF. My maps are exporting fine, but I'm having trouble centering the point file in the middle of the map, it's always outside of the data frame. Any ...
Mark1994's user avatar
1 vote
1 answer

GeoServer 2.10.1 Center Justify Polygon Label Style File .xml

The Title kind of says it all. Trying to Center Justify a label of a polygon using a sld style file on Geoserver 2.10.1. Here is the code snippet followed by a screenshot of the label now. ...
lowsparked's user avatar
3 votes
1 answer

QGIS 3.2 - How can I scale polygon about his center? [duplicate]

How can I scale a polygon about his center? I find only transform function, but the scale function here can only move the polygon with the scale factor and don't enlarge it.
Tibor's user avatar
  • 365
4 votes
0 answers

Calculating centre of city? [closed]

A lot of career websites allow you to select jobs from within a radius of your chosen location. Since cities and towns can be considered irregular in shape, sprawling in the definition (do you ...
Trig Point's user avatar
2 votes
1 answer

Centering label in polygon in TileMill/CartoCSS

For some reason, labels are always placed in the bottom right of a polygon. I want them in the center of a polygon. I tried these: text-horizontal-alignment: middle; text-vertical-alignment: middle; ...
Vanuan's user avatar
  • 273