Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#651 closed bug (fixed)

Zoom to layer does not work if layer has only one point

Reported by: maris.gis@… Owned by: nobody
Priority: critical: causes crash or data corruption Milestone:
Component: Vectors Version: 0.8
Keywords: Cc:
Must Fix for Release: No Platform: Gentoo
Platform Version: Awaiting user input: no

Description

In new QGIS work session I added new vector layer (shapefile) with single point and QGIS showed me nothing. I clicked "Zoom to layer" and still nothing, "Zoom full", "Zoom to selection" and still nothing. Then I added other vector layer with more data, clicked "Zoom to layer" on second layer and then both layers where displayed correctly. Still "Zoom to layer" was not working correctly for layer with single data point.

QGIS 0.8.0 Qt 4.2.2 GDAL/OGR 1.3.2

ogrinfo ariports.shp ariports
INFO: Open of `ariports.shp'
using driver `ESRI Shapefile' successful.

Layer name: ariports
Geometry: Point
Feature Count: 1
Extent: (23.975832, 56.922447) - (23.975832, 56.922447)
Layer SRS WKT:
GEOGCS["GCS_North_American_1983",
    DATUM["North_American_Datum_1983",
        SPHEROID["GRS_1980",6378137,298.257222101]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
id: Integer (10.0)
f_code: String (5.0)
iko: String (4.0)
nam: String (18.0)
use: Integer (10.0)
zv3: Integer (10.0)
soc: String (3.0)
tile_id: Integer (5.0)
end_id: Integer (10.0)
OGRFeature(ariports):0
  id (Integer) = 1
  f_code (String) = GB005
  iko (String) = Null
  nam (String) = RIGA INTERNATIONAL
  use (Integer) = 22
  zv3 (Integer) = 10
  soc (String) = LVA
  tile_id (Integer) = 1
  end_id (Integer) = 1
  POINT (23.975831985473633 56.922447204589844)

Attachments (1)

Airport.tar.gz (514 bytes ) - added by maris.gis@… 17 years ago.
Shapefile for testing

Download all attachments as: .zip

Change History (3)

by maris.gis@…, 17 years ago

Attachment: Airport.tar.gz added

Shapefile for testing

comment:1 by g_j_m, 17 years ago

Resolution: fixed
Status: newclosed

Fixed in r6799 (head) and r6800 (0.8 branch).

comment:2 by (none), 15 years ago

Milestone: Version 0.8.2

Milestone Version 0.8.2 deleted

Note: See TracTickets for help on using tickets.