Neil Robinson | 8 Aug 2008 19:10
Picon
Gravatar

Transverse Mercator south-oriented projection support?

Hi there,

Any idea whether there are plans to implement this stuff:
http://lists.maptools.org/pipermail/proj/2000-September/000099.html

Or is there a work-around I could use?

I would greatly appreciate being able to use this projection in my work with qgis.

Thanks,

--
Neil Robinson

_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj
Gerald I. Evenden | 8 Aug 2008 22:49
Picon

Re: Transverse Mercator south-oriented projection support?

On Friday 08 August 2008 1:10:11 pm Neil Robinson wrote:
> Hi there,
>
> Any idea whether there are plans to implement this stuff:
> http://lists.maptools.org/pipermail/proj/2000-September/000099.html
>
> Or is there a work-around I could use?
>
> I would greatly appreciate being able to use this projection in my work
> with qgis.
>
> Thanks,

Groan!

There is no need to modify the library routines as all that is needed is to 
switch around the x-y and signs of the lat-lons.

I would just use +proj=tmerc and put some added '-' flags to juggle the I/O.  
But that's somebody else's job as I only work on the library.  ;-)

--

-- 
The whole religious complexion of the modern world is due
to the absence from Jerusalem of a lunatic asylum.
-- Havelock Ellis (1859-1939) British psychologist
_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj

Neil Robinson | 11 Aug 2008 10:07
Picon
Gravatar

Re: Proj Digest, Vol 51, Issue 2

Hi Gerard,

Thanks for your response. I realise that this isn't a support forum, but I'm not getting any joy anywhere else and you are clearly very knowledgeable on this topic

On Sat, Aug 9, 2008 at 6:01 PM, <proj-request <at> lists.maptools.org> wrote:
Send Proj mailing list submissions to
       proj <at> lists.maptools.org

Message: 2
Date: Fri, 8 Aug 2008 16:49:58 -0400
From: "Gerald I. Evenden" <geraldi.evenden <at> gmail.com>
Subject: Re: [Proj] Transverse Mercator south-oriented projection
       support?
To: "PROJ.4 and general Projections Discussions"
       <proj <at> lists.maptools.org>
Message-ID: <200808081649.58507.geraldi.evenden <at> gmail.com>
Content-Type: text/plain;  charset="utf-8"

Groan!

Is  this a bit of a recurring nightmare for you? Sorry about that.



There is no need to modify the library routines as all that is needed is to
switch around the x-y and signs of the lat-lons.

I tried lodging a bug with qgis [1], but they seemed to think the problem was with proj4 (although, through my ignorance that was my guess, so I might have planted the seed of that conclusion). 


I would just use +proj=tmerc and put some added '-' flags to juggle the I/O.
But that's somebody else's job as I only work on the library.  ;-)

I tried this suggestion (I think I did), but negative zero doesn't make any sense to proj4.
Without adding the '-' flags, this is what I think the parameters need to be for one of the projections I'm interested in:

+proj=tmerc +ellps=WGS84 +lat_0 +lon_29 +k=1 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs

Is it defined more fully on spatialreference.org[2]. You'll note that spatialreference.org doesn't have a proj4 definition.

If the library isn't the right place to look for a solution to this, where is?

Thanks for your time. I'm sure this is a pain for you. I hope any additional groaning will not be too severe.
 


--
Neil Robinson
_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj
Gerald I. Evenden | 11 Aug 2008 16:36
Picon

Re: Re: Proj Digest, Vol 51, Issue 2

On Monday 11 August 2008 4:07:58 am Neil Robinson wrote:
> Hi Gerard,
>
> Thanks for your response. I realise that this isn't a support forum, but
> I'm not getting any joy anywhere else and you are clearly very
> knowledgeable on this topic
	...
> I tried lodging a bug with qgis [1], but they seemed to think the problem
> was with proj4 (although, through my ignorance that was my guess, so I
> might have planted the seed of that conclusion).
>
> > I would just use +proj=tmerc and put some added '-' flags to juggle the
> > I/O.
> > But that's somebody else's job as I only work on the library.  ;-)
>
> I tried this suggestion (I think I did), but negative zero doesn't make any
> sense to proj4.
> Without adding the '-' flags, this is what I think the parameters need to
> be for one of the projections I'm interested in:
>
> +proj=tmerc +ellps=WGS84 +lat_0 +lon_29 +k=1 +towgs84=0,0,0,0,0,0,0
> +units=m +no_defs

Can you give a sample input (lat/lon) and an approximation of what you expect 
(without datum conversion which I cannot handle).  Under normal circumstances 
the above would generate (viewed as a console screen capture):

gie <at> charon:~$ lproj +proj=tmerc +ellps=WGS84 +lon_0=29
31 45
157693.72       4986890.93

Note; option +towgs84 and +no_defs is not on my software and the other options 
are defaulted as you explicitly specified.

The input is longitude(31), latitude(45) and the output is easting(x) and 
northing(y) in meters.

What output would you prefer to see?

--

-- 
The whole religious complexion of the modern world is due
to the absence from Jerusalem of a lunatic asylum.
-- Havelock Ellis (1859-1939) British psychologist
_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj

Neil Robinson | 12 Aug 2008 10:09
Picon
Gravatar

Re: Re: Proj Digest, Vol 51, Issue 2

Dear Gerald,

Thanks to your suggestion. In trying to give you a sample of expected output I've tested things more thoroughly (I'm a chemical engineer by training, so this geo-referenced mapping stuff is all new to me) and it does appear to be working correctly -- almost.

my input file, "Desktop/proj" had this:
27.5 0.00
27.5 10.0
27.5 20.0
27.5 30.0
27.58676 26.18728

My commands and output from the console:

neil <at> neil:~$ proj +proj=tmerc +ellps=WGS84 +lon_0=27 Desktop/proj
55660.46    0.00
54820.34    1105896.37
52324.06    2212444.34
48243.45    3320218.65
58652.24    2897715.76

In each case, the magnitudes are correct (as far as I can tell using other software) but the first column of values should all be negative.

i.e. Desired output:
-55660.46    0.00
-54820.34    1105896.37
-52324.06    2212444.34
-48243.45    3320218.65
-58652.24    2897715.76


Gerald I. Evenden wrote:
On Monday 11 August 2008 4:07:58 am Neil Robinson wrote:
Hi Gerard, Thanks for your response. I realise that this isn't a support forum, but I'm not getting any joy anywhere else and you are clearly very knowledgeable on this topic
...
I tried lodging a bug with qgis [1], but they seemed to think the problem was with proj4 (although, through my ignorance that was my guess, so I might have planted the seed of that conclusion).
I would just use +proj=tmerc and put some added '-' flags to juggle the I/O. But that's somebody else's job as I only work on the library. ;-)
I tried this suggestion (I think I did), but negative zero doesn't make any sense to proj4. Without adding the '-' flags, this is what I think the parameters need to be for one of the projections I'm interested in: +proj=tmerc +ellps=WGS84 +lat_0 +lon_29 +k=1 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
Can you give a sample input (lat/lon) and an approximation of what you expect (without datum conversion which I cannot handle). Under normal circumstances the above would generate (viewed as a console screen capture): gie <at> charon:~$ lproj +proj=tmerc +ellps=WGS84 +lon_0=29 31 45 157693.72 4986890.93 Note; option +towgs84 and +no_defs is not on my software and the other options are defaulted as you explicitly specified. The input is longitude(31), latitude(45) and the output is easting(x) and northing(y) in meters. What output would you prefer to see?
Attachment (halfhaggis.vcf): text/x-vcard, 198 bytes
_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj
Maarten Plieger | 12 Aug 2008 11:08
Picon
Favicon

From proj4 string to EPSG code

Hi,

Is there a simple way to convert from a proj4 string to an EPSG code?
My proj4 string has the same format as the strings in the epsg 
definition file.

Regards,
 Maarten Plieger

--

-- 
Maarten Plieger
KNMI, R&D Information and Observation Technology, De Bilt
(t) +31 30 2206330 

_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj

Glynn Clements | 12 Aug 2008 13:04

Re: From proj4 string to EPSG code


Maarten Plieger wrote:

> Is there a simple way to convert from a proj4 string to an EPSG code?
> My proj4 string has the same format as the strings in the epsg 
> definition file.

If the format is identical in every regard, you could just "grep" for
the string then extract the code from the output.

But it would be more robust to parse each line and check that the
key/value pairs match. Even then, there's the possibility that some
floating-point value (e.g. the ellipsoid radius) won't match exactly
e.g. due to trailing zeroes or some negligible difference in value.

Other than the last issue, the following python script will do the
job:

#!/usr/bin/env python
import sys

myparms = sorted(sys.argv[1:])
# use this instead if you want one argument rather than many:
# myparms = sorted(sys.argv[1].split())

f = file("/usr/share/proj/epsg")
for line in f:
    if line.startswith("#"):
        continue
    l = line.split()
    code = l[0].strip("<>")
    parms = l[1:-1]
    if sorted(parms) == myparms:
        print code
        break
f.close()

Example usage:

	$ ./epsg.py +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000 +y_0=-100000 +ellps=airy
+units=m +no_defs
	27700

If you need to handle the precision issues, things get more
complicated.

--

-- 
Glynn Clements <glynn <at> gclements.plus.com>
_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj

joeri.theelen | 12 Aug 2008 14:40
Picon
Favicon

PROJ.4 and local coordinate systems


Hi,

Is it possible to use PROJ.4 or any of its related tools to transform
coordinates from a local carthesian system into another local carthesian
system (thus both are not earth related).

I inherit lots of datasets in many different formats for an archaeological
site, with coordinates measured in two different local systems (shift in
time). I managed to get the transformation parameters to transform sets of
coordinates between both systems, with minor error. By transformation, I
mean translation, rotation and dilation (scale factor) of the X/Y
coordinates only, not height.

I also managed to get the transformation parameters from both local systems
to the UTM system in use in that area. Thus, transforming from local to UTM
to local would be an option as well.

Can anybody help me with this? I know programming such a tranformation would
be trivial, but I need the power and flexibility of a tool like "cs2cs" to
cope with the many different formats I am facing.

Thank you,
Joeri
--

-- 
View this message in context: http://www.nabble.com/PROJ.4-and-local-coordinate-systems-tp18943556p18943556.html
Sent from the PROJ.4 mailing list archive at Nabble.com.

_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj

Heather M. Yager | 12 Aug 2008 23:01
Picon

installation question: proj_api.h

Hi!

I don't yet have experience with PROJ4, but I must install it on SuSE in
order to run MapServer with projection support. The problem: when I
install proj from an RPM (command I used: "yast -i
proj-4.4.9-1.guru.suse93.x86_64.rpm") it appears that the installation
was successful - I can locate proj, I can type "proj" at the command
line (and receive "Rel. 4.4.9, 29 Oct 2004" back).

But, when I try to configure MapServer with proj, MapServer cannot
locate the file proj_api.h, and when I do a search of the files on my
server, I cannot locate proj_api.h either.

Should proj_api.h have been created when I installed proj?  Is there an
installation option that I should include?  Should I install it from
source instead of an RPM?

Any advice is appreciated!

Cheers,
Heather Yager
_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj

Markus Neteler | 12 Aug 2008 23:52
Favicon

Re: installation question: proj_api.h

Heather,

On Tue, Aug 12, 2008 at 11:01 PM, Heather M. Yager
<heather.yager <at> gmail.com> wrote:
> Hi!
>
> I don't yet have experience with PROJ4, but I must install it on SuSE in
> order to run MapServer with projection support. The problem: when I
> install proj from an RPM (command I used: "yast -i
> proj-4.4.9-1.guru.suse93.x86_64.rpm") it appears that the installation
> was successful - I can locate proj, I can type "proj" at the command
> line (and receive "Rel. 4.4.9, 29 Oct 2004" back).

You also need to install
 proj-devel-4.4.9-1.guru.suse93.x86_64.rpm
which contains proj_api.h and some more relevant files.

Hope this helps,
Markus

--

-- 
Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/
_______________________________________________
Proj mailing list
Proj <at> lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj


Gmane