Code Monkey home page Code Monkey logo

Comments (10)

proj4-bot avatar proj4-bot commented on August 19, 2024

Modified by dgrichard on 13 Oct 2008 21:28 UTC

from proj.

proj4-bot avatar proj4-bot commented on August 19, 2024

Attachment added by dgrichard on 13 Oct 2008 21:26 UTC
https://trac.osgeo.org/proj/attachment/ticket/17/pj_init.diff

from proj.

bartoli avatar bartoli commented on August 19, 2024

I am updating this as it might still be usefull. If not then it should be closed after 8 years shouldn't it?
Note : The proposed diff doesn't patch anymore on current sources

from proj.

kbevers avatar kbevers commented on August 19, 2024

There's a lot of open tickets that probably should be closed. I guess we should make an effort to reduce the number of open tickets, since many of them are outdated or already solved. The thing is, it takes a lot of time and is very tedious work...

I can't see the value the +title parameter brings to proj.4. Care to educate me?

from proj.

bartoli avatar bartoli commented on August 19, 2024

Well, i don't know if +title itself would be usefull, but what could be more important would be that +title is not properly read. So if you have a title which contains spaces, but not in quotes, like in the IGNF file, only the first word will be read as the title, and the rest of the title string could cause parsing errors for the following text

from proj.

kbevers avatar kbevers commented on August 19, 2024

That seems more like user error to me, to be honest.

How does PROJ4JS use +title? To override the projection title that is already defined in the source?

from proj.

bartoli avatar bartoli commented on August 19, 2024

What seems a user error? The fact that titles are not in quotes in the file nad/IGNF of proj sources?

I don't know about PROJ4JS actually, but wanting to get a user friendly name for a coordinate system by reading it's title seems like a common action one would want to do using the Proj C API in my opinion

from proj.

kbevers avatar kbevers commented on August 19, 2024

What seems a user error? The fact that titles are not in quotes in the file nad/IGNF of proj sources?

No, not putting whatever comes after +xxx= in quotes when spaces are needed.

I don't know about PROJ4JS actually, but wanting to get a user friendly name for a coordinate system by reading it's title seems like a common action one would want to do using the Proj C API in my opinion

I agree. In a very roundabout way it is sort of possible with the current API. It is definitely reasonable to make that easier for users of the proj API. I can't really connect the dots between that and this ticket, however.

from proj.

micahcochran avatar micahcochran commented on August 19, 2024

A +title tag would be a feature that would make it similar to the "name" parameter for WKT for "Coordinate Transformation Services". The +title is a comment telling GIS users what projection is contained within the projection definition. It might clear up some confusion as to which PROJ.4 projection string the user is using. I've seen discussion about Proj4 projection strings being simpler, but WKT projection string are preferred by some GIS users/programmers because it has the projection's name within it.

@kbevers It is hard to say what the original submitter end goal was of this ticket. It could be as simple as an effort to maintain compatibility with PROJ4JS. Or it could be a more extensive goal to have the +title tag in most proj4 strings including the epsg & IGNF registry files.

from proj.

rouault avatar rouault commented on August 19, 2024

Fixed. Works in master

$ src/cs2cs -v +init=IGNF:RGF93G  +to +title="my foo bar" +proj=lcc +lat_1=1 +lat_2=2
# ---- From Coordinate System ----
+init=IGNF:RGF93G
# ---- To Coordinate System ----
+title=my foo bar +proj=lcc +lat_1=1 +lat_2=2

from proj.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.