Comments (3)
Comment by grisxa on 4 Sep 2009 13:18 UTC
I should also explain, how this bug happens.
Several multi-lingual applications, like QLandkarteGT, call pj_init() and pj_transform() internally. If projection is specified in form "+init=epsg:2393", file /usr/share/proj/epsg is parsed and datum parameters for 2393 are used. But they are stored with a dot as decimal point, while pj_init() already operates locale-specific decimal point (comma in my case). So atof() rounds float numbers to integers (it stops parsing at first dot met).
That is why I suggest to reset LC_NUMERIC.
As far as I can see, console utils from proj.4 don't have such issue, probably because they are not localized (don't use setlocale()).
from proj.
Comment by warmerdam on 24 Sep 2009 02:14 UTC
I concur with your analysis and I have applied just a slight variation on the patch in trunk (a26eedd4 (SVN rev1630)).
from proj.
Attachment added by grisxa on 4 Sep 2009 01:18 UTC
https://trac.osgeo.org/proj/attachment/ticket/49/proj-4.6.1.diff
from proj.
Related Issues (20)
- Clean up sqlite3 further in CMake HOT 1
- tpeqd returns bad values and transforms on small lines
- Help installation HOT 3
- Allow +inv to work like -I HOT 1
- Invalid PROJ string syntax on cct man page example HOT 2
- Prime meridian inconsistency: Madrid HOT 2
- Prime meridian inconsistency: Copenhagen HOT 3
- Missing Paris RGS prime meridian? HOT 5
- Misleading Greenwich longitude values for prime_meridian from EPSG HOT 6
- proj_create_crs_to_crs_from_pj returns NULL for valid CRS pair HOT 8
- Enable Proj GitHub Discussions HOT 9
- sqlite detection broken? HOT 9
- gcc13 installation fails HOT 7
- General Oblique Transformation yields unexpected results using o_lat_c, o_lon_c and o_alpha HOT 3
- Build error in src/transformations/gridshift.cpp after #4038 HOT 4
- Omerc doc patches ready HOT 3
- Allow offline HTML doc download, but in individual files, not just one massive index.html HOT 6
- proj_factors in the C API does not properly return meridian convergence HOT 5
- For discussion: Future `ellps` defaults?
- There are cases where the results from cs2cs differ between PROJ 5.2.0 and PROJ 7.0.1. HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proj.