[GRASS-user] Gdk-WARNING message - what does it mean?

Greetings!
I'm running 6.1cvs on a Fedora Core 4 system. Among the things puzzling me at the moment is an error message that
appears when I display a map to a window:

(firefox-bin:9166): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?)

Can anyone tell me (a) if this is important, and (b) if so, what I should do to correct the problem? [I did not pass
G_MAXLONG, as I have no idea where it came from, what it means, or where it should go.]

TIA,
david adam

Hallo

On Sun, Jun 11, 2006 at 08:37:25PM -0700, David Adam wrote:

Greetings!
I'm running 6.1cvs on a Fedora Core 4 system. Among the things puzzling
me at the moment is an error message that
appears when I display a map to a window:

(firefox-bin:9166): Gdk-WARNING **: gdk_property_get(): length value has
wrapped in calculation (did you pass G_MAXLONG?)

it is problem of your Firefox, not GRASS. GRASS does not (yet) use Gtk,
so this also could not be the problem

Can anyone tell me (a) if this is important, and

no

(b) if so, what I
should do to correct the problem?

start firefox not from command line, you wount get this messages again

[I did not pass
G_MAXLONG, as I have no idea where it came from, what it means, or where
it should go.]

TIA,
david adam

Jachym

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

From
<http://cemml.carleton.ca:8080/OGUG/Members/smitch/raster-elevation-data-in-grass-workshop&gt;
the cs2cs program command line example is:

cs2cs +proj=latlong +datum=NAD83 +to +init=epsg:2146 -r << EOF
? 45d30'0"N 76d0'0"W
? 45d15'0"N 75d30'0"W
? EOF
343875.12 5040130.27 0.00
383295.32 5012713.16 0.00

Now I want to convert from latlong to UTM. However, I can't find the "init" parameter in the cs2cs documention. [Oh, I'm sure it's pilot error, but I did read "Cartographic Projection Procedures for the UNIX
Environment—A User’s Manual" )

The UTM will be in zone 11.
38.16922 -116.84495
36.35138 -115.84293

Could someone provide a bit of guidance here? The correct command line and some explanation of where the parameter come from would be great.

I have the latlong coordinates needed to do the conversion. I'm assuming the EOF is just a control-D.

You find the init parameters in the proj directory. On Ubuntu they are here:

/usr/share/proj

Open one of those files with your text editor and look up the number
for the projection you need. Then when you have found it feed it to
the init parameter like this:

+init=<filename>:<projection number>

Assuming that you do need to convert to UTM zone 11, NAD83 search for
the line in epsg that begins with this:

# NAD83 / UTM zone 11N
<26911>

so the init would be +init=epsg:26911

Keep in mind that there are HARN grids, and many versions of each
ellipsoid. It is worth searching for UTM zone 11N multiple times to
see all the possibilities. Only one of them is probably what you want.

On 6/12/06, gary <lists@lazygranch.com> wrote:

From
<http://cemml.carleton.ca:8080/OGUG/Members/smitch/raster-elevation-data-in-grass-workshop&gt;
the cs2cs program command line example is:

cs2cs +proj=latlong +datum=NAD83 +to +init=epsg:2146 -r << EOF
? 45d30'0"N 76d0'0"W
? 45d15'0"N 75d30'0"W
? EOF
343875.12 5040130.27 0.00
383295.32 5012713.16 0.00

Now I want to convert from latlong to UTM. However, I can't find the
"init" parameter in the cs2cs documention. [Oh, I'm sure it's pilot
error, but I did read "Cartographic Projection Procedures for the UNIX
Environment—A User's Manual" )

The UTM will be in zone 11.
38.16922 -116.84495
36.35138 -115.84293

Could someone provide a bit of guidance here? The correct command line
and some explanation of where the parameter come from would be great.

I have the latlong coordinates needed to do the conversion. I'm assuming
the EOF is just a control-D.

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

--
David Finlayson

gary wrote:

Now I want to convert from latlong to UTM. However, I can't find the
"init" parameter in the cs2cs documention.

cs2cs hints:

get cs2cs parms for the current location with "g.proj -j" or "g.proj -jf"

lat/lon wgs84 is:
  +proj=longlat +towgs84=0.000,0.000,0.000

mind (GRASS's +proj=latlong) == (PROJ4's +proj=longlat) !!,
[shouldn't g.proj -j output in PROJ.4 style!?]
anyway it's always a good idea to reality-check output if you can.

see m.proj in GRASS 6.1 for an easy cs2cs frontend:
  http://grass.ibiblio.org/grass61/manuals/html61_user/m.proj.html

Expert help for cs2cs is available from the proj mailing list.
  http://proj.maptools.org

Hamish

Thanks. On suse 10.0, the file was in the same location. Double checking, it turned out to be WGS84 and 11s, so I used epsg:32711.

Output is:
513581.64 14424601.96 0.00
603821.51 14023544.20 0.00

Using garmin mapsource
11 S 513582 4224602
11 S 603822 4023544

More or less a match if you ignore the "1" in 1442601.96 and 14023544.2

David Finlayson wrote:

You find the init parameters in the proj directory. On Ubuntu they are here:

/usr/share/proj

Open one of those files with your text editor and look up the number
for the projection you need. Then when you have found it feed it to
the init parameter like this:

+init=<filename>:<projection number>

Assuming that you do need to convert to UTM zone 11, NAD83 search for
the line in epsg that begins with this:

# NAD83 / UTM zone 11N
<26911>

so the init would be +init=epsg:26911

Keep in mind that there are HARN grids, and many versions of each
ellipsoid. It is worth searching for UTM zone 11N multiple times to
see all the possibilities. Only one of them is probably what you want.

On 6/12/06, gary <lists@lazygranch.com> wrote:

From
<http://cemml.carleton.ca:8080/OGUG/Members/smitch/raster-elevation-data-in-grass-workshop&gt;

the cs2cs program command line example is:

cs2cs +proj=latlong +datum=NAD83 +to +init=epsg:2146 -r << EOF
? 45d30'0"N 76d0'0"W
? 45d15'0"N 75d30'0"W
? EOF
343875.12 5040130.27 0.00
383295.32 5012713.16 0.00

Now I want to convert from latlong to UTM. However, I can't find the
"init" parameter in the cs2cs documention. [Oh, I'm sure it's pilot
error, but I did read "Cartographic Projection Procedures for the UNIX
Environment—A User's Manual" )

The UTM will be in zone 11.
38.16922 -116.84495
36.35138 -115.84293

Could someone provide a bit of guidance here? The correct command line
and some explanation of where the parameter come from would be great.

I have the latlong coordinates needed to do the conversion. I'm assuming
the EOF is just a control-D.

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

On Mon, 12 Jun 2006, Hamish wrote:

mind (GRASS's +proj=latlong) == (PROJ4's +proj=longlat) !!,
[shouldn't g.proj -j output in PROJ.4 style!?]
anyway it's always a good idea to reality-check output if you can.

Good point - that one goes back a wee while! I have changed in CVS. It should be less confusing at least because it gives a hint as to the order the co-ordinate pairs should be presented in.

Paul

gary wrote:

Thanks. On suse 10.0, the file was in the same location. Double
checking, it turned out to be WGS84 and 11s, so I used epsg:32711.

Output is:
513581.64 14424601.96 0.00
603821.51 14023544.20 0.00

Using garmin mapsource
11 S 513582 4224602
11 S 603822 4023544

More or less a match if you ignore the "1" in 1442601.96 and 14023544.2

The leading 1 corresponds to the false northing of 10,000,000 for the
southern hemisphere. As your latitude coordinates are positive, you
should be using 11n, i.e. epsg:32611.

--
Glynn Clements <glynn@gclements.plus.com>