Remi-C / interactive_map_tracking

A QGIS 2.6 plugin to track camera of user , AND/OR to autocommit/refresh edit on PostGIS vector layer
http://remi-c.github.io/interactive_map_tracking/
GNU General Public License v3.0
8 stars 4 forks source link

tracking : error when switching srs while tracking on shapefile #8

Closed Remi-C closed 9 years ago

Remi-C commented 9 years ago

To reproduce :

error is : `Traceback (most recent call last): File " \interactive_map_tracking\interactive_map_tracking.py", line 505, in canvasExtentsChangedAndRenderComplete self.update_track_position() File " \interactive_map_tracking\interactive_map_tracking.py", line 752, in update_track_position list_points = [xform.transform(point) for point in list_points_from_mapcanvas] QgsCsException: Poursuivre la transformation de (-24479.530208, 57767.106935) PROJ.4: +proj=longlat +datum=WGS84 +no_defs +to +proj=lcc +nadgrids=@null +a=6378137.0000 +rf=298.2572221010000 +lat_0=46.500000000 +lon_0=3.000000000 +lat_1=44.000000000 +lat_2=49.000000000 +x_0=700000.000 +y_0=6600000.000 +units=m +no_defs Erreur: latitude or longitude exceeded limits

Remi-C commented 9 years ago

assign @yoyonel

Remi-C commented 9 years ago

Bonus : when canceling error, zooming to track result in infinite loop

yoyonel commented 9 years ago

Oki i see the problem. Right now we don't follow the SRS switch on layer (tracking layer). We need to intercepted the signal from QGIS Gui. Not difficult.

Remi-C commented 9 years ago

@yoyonel : please don't, better to change the way the threshold is defined so it is independant of srs (see #9)

yoyonel commented 9 years ago

Anyway i will add a catch exception on this transformation

Remi-C commented 9 years ago

Good idea