[Qgis-developer] Bookmarks can be imported/exported?

Pedro Venâncio pedrongvenancio at gmail.com
Tue Feb 24 11:49:25 PST 2015


I also confirm here.

I think what it is doing is exchanging yMin by xMax.

Please see the images

-
https://dl.dropboxusercontent.com/u/5772257/qgis/1_bookmarks_before_export.png
-
https://dl.dropboxusercontent.com/u/5772257/qgis/2_bookmarks_after_import.png

and this query in qgis.db:

select * from tbl_bookmarks

- Before export the result is:
"bookmark_id", "name", "project_name", "xmin", "ymin", "xmax", "ymax",
"projection_srid"
"1", "north", "", "-55027.0163934426", "122440.672131148",
"138610.344262295", "274711.672131148", "1721"
"2", "center", "", "24699.6035052022", "68084.4791722655", "124465.925154528",
"146537.921795216", "1721"
"3", "south", "", "-64823.6749913617", "-278157.939148463",
"-14940.5141666986", "-238931.217836987", "1721"

- After import:
"bookmark_id", "name", "project_name", "xmin", "ymin", "xmax", "ymax",
"projection_srid"
"1", "north", "", "-55027.0163934426", "138610.344262295",
"122440.672131148", "274711.672131148", "1721"
"2", "center", "", "24699.6035052022", "124465.925154528",
"68084.4791722655", "146537.921795216", "1721"
"3", "south", "", "-64823.6749913617", "-14940.5141666986", "-278157.
939148463", "-238931.217836987", "1721"


Randal,

The SRID represents the srs_id field in srs.db database, not the
AuthorityID.

For example, if you query in srs.db

select * from tbl_srs
where srs_id = 222

you will see that this is your EPSG: 2240

"srs_id", "description", "projection_acronym", "ellipsoid_acronym",
"parameters", "srid", "auth_name", "auth_id", "is_geo", "deprecated",
"noupdate"
"222", "NAD83 / Georgia West (ftUS)", "tmerc", "GRS80", "+proj=tmerc
+lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=699999.9998983998 +y_0=0
+ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs", "2240", "EPSG",
"2240", "0", "0", "0"


So, I think this is a bug and the problem is the exchange of yMin by xMax.


Best regards,
Pedro Venâncio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150224/864b0480/attachment-0001.html>


More information about the Qgis-developer mailing list