MIERUNE / qgis-plugx-plugin

QGIS to Illustrator with PlugX
GNU General Public License v2.0
3 stars 0 forks source link

scale issue #92

Closed Kanahiro closed 10 months ago

Kanahiro commented 11 months ago
bordoray commented 10 months ago

Investigation in progress : Scale factor = 1/cos(latitude)

image

refs:

results on qgis depending on latitude:

calculated scale : 2994408.2013047514
Latitude: 25.855500599895247
Scale Factor: 1.1112385892564363

calculated scale : 2994408.2013047514
Latitude: 36.63425998848918
Scale Factor: 1.2461667610335012

calculated scale : 2994408.2013047514
Latitude: 45.63643828579945
Scale Factor: 1.4301879142998573

calculated scale : 2994408.2013047514
Latitude: 64.7501353833507
Scale Factor: 2.344299796305868

calculated scale : 2994408.2013047514
Latitude: 69.46402503064274
Scale Factor: 2.8506642625807803
bordoray commented 10 months ago

Note to myself if geographic test

QgsProject.instance().crs().isGeographic()
bordoray commented 10 months ago

Scale factor using PyQGIS

QgsProject.instance().crs().factors(QgsPoint(129.38109,28.29317)).parallelScale()
1.1348203411033124
QgsProject.instance().crs().factors(QgsPoint(129.38109,28.29317)).meridionalScale()
1.0044692066757388

QgsProject.instance().crs().factors(QgsPoint(141.8803,45.5082)).parallelScale()
1.4244934909888043
QgsProject.instance().crs().factors(QgsPoint(141.8803,45.5082)).meridionalScale()
1.0015995958532242
bordoray commented 10 months ago

Reminder https://mierune.slack.com/archives/C054M54KLSU/p1686027294170319

image