[GRASS-dev] spam on the wiki :(

Hi,

On 7 Feb a user called 'Mikael' added a huge list of mostly invisible
links to the main wiki page and the 'GRASS_Wiki:About' page. This is
done as a scummy move to take advantage of our good web browser ranking
to push their customer's rankings slightly higher.

I have now removed the spam. I would ask the wiki maintainer* to delete
that account, and blacklist their IP addr if possible (as feel good
measures still make you feel good).

[*] "Your name here"
  http://grass.gdf-hannover.de/wiki/Project_jobs#Wiki_manager

argh,
Hamish

Hi developers,
I'm trying to make udig speak the same language as GRASS, but I found
one main issue, I'm not able to resolve.

GRASS and UDig use different projection definitions.
- in Grass the projection file is something like:
      name: Transverse Mercator
      proj: tmerc
      datum: rome40
      towgs84: -225.000,-65.000,9.000
      a: 6378388
      es: 0.0067226700
      lat_0: 0
      lon_0: 9
      k: 0.999600
      x_0: 1500000
      y_0: 0
      no_defs: defined

- whereas in UDig it is WKT:
      PROJCS["Monte Mario / Italy zone 1",
      GEOGCS["Monte Mario",
      DATUM["Monte_Mario",
      SPHEROID["International 1924", 6378388.0, 297.0,
AUTHORITY["EPSG","7022"]],
      AUTHORITY["EPSG","6265"]],
      PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
      UNIT["degree", 0.017453292519943295],
      AXIS["Lon", EAST],
      AXIS["Lat", NORTH],
      AUTHORITY["EPSG","4265"]],
      PROJECTION["Transverse_Mercator"],
      PARAMETER["central_meridian", 9.0],
      PARAMETER["latitude_of_origin", 0.0],
      PARAMETER["scale_factor", 0.9996],
      PARAMETER["false_easting", 1500000.0],
      PARAMETER["false_northing", 0.0],
      UNIT["m", 1.0],
      AXIS["x", EAST],
      AXIS["y", NORTH],
      AUTHORITY["EPSG","3003"]]

I'm no projection wizard, has anyone an idea about how I can go from one
to the other and back in an easy way?

Thanks for any help,
Cheers,
Andrea

On 12/02/07 13:58, Andrea Antonello wrote:

Hi developers,
I'm trying to make udig speak the same language as GRASS, but I found
one main issue, I'm not able to resolve.

GRASS and UDig use different projection definitions.
- in Grass the projection file is something like:
      name: Transverse Mercator
      proj: tmerc
      datum: rome40
      towgs84: -225.000,-65.000,9.000
      a: 6378388
      es: 0.0067226700
      lat_0: 0
      lon_0: 9
      k: 0.999600
      x_0: 1500000
      y_0: 0
      no_defs: defined

- whereas in UDig it is WKT:
      PROJCS["Monte Mario / Italy zone 1",
      GEOGCS["Monte Mario",
      DATUM["Monte_Mario",
      SPHEROID["International 1924", 6378388.0, 297.0,
AUTHORITY["EPSG","7022"]],
      AUTHORITY["EPSG","6265"]],
      PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
      UNIT["degree", 0.017453292519943295],
      AXIS["Lon", EAST],
      AXIS["Lat", NORTH],
      AUTHORITY["EPSG","4265"]],
      PROJECTION["Transverse_Mercator"],
      PARAMETER["central_meridian", 9.0],
      PARAMETER["latitude_of_origin", 0.0],
      PARAMETER["scale_factor", 0.9996],
      PARAMETER["false_easting", 1500000.0],
      PARAMETER["false_northing", 0.0],
      UNIT["m", 1.0],
      AXIS["x", EAST],
      AXIS["y", NORTH],
      AUTHORITY["EPSG","3003"]]

I'm no projection wizard, has anyone an idea about how I can go from one
to the other and back in an easy way?

g.proj -w "Print projection information in WKT format"

Moritz

Thanks Moritz,
this also means that there is no easy way (something like parse that and
that and then create the WTK), the proj pack has to be there, right?

Andrea

Moritz Lennert probaly wrote:

On 12/02/07 13:58, Andrea Antonello wrote:

Hi developers,
I'm trying to make udig speak the same language as GRASS, but I found
one main issue, I'm not able to resolve.

GRASS and UDig use different projection definitions.
- in Grass the projection file is something like:
      name: Transverse Mercator
      proj: tmerc
      datum: rome40
      towgs84: -225.000,-65.000,9.000
      a: 6378388
      es: 0.0067226700
      lat_0: 0
      lon_0: 9
      k: 0.999600
      x_0: 1500000
      y_0: 0
      no_defs: defined

- whereas in UDig it is WKT:
      PROJCS["Monte Mario / Italy zone 1",
      GEOGCS["Monte Mario",
      DATUM["Monte_Mario",
      SPHEROID["International 1924", 6378388.0, 297.0,
AUTHORITY["EPSG","7022"]],
      AUTHORITY["EPSG","6265"]],
      PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
      UNIT["degree", 0.017453292519943295],
      AXIS["Lon", EAST],
      AXIS["Lat", NORTH],
      AUTHORITY["EPSG","4265"]],
      PROJECTION["Transverse_Mercator"],
      PARAMETER["central_meridian", 9.0],
      PARAMETER["latitude_of_origin", 0.0],
      PARAMETER["scale_factor", 0.9996],
      PARAMETER["false_easting", 1500000.0],
      PARAMETER["false_northing", 0.0],
      UNIT["m", 1.0],
      AXIS["x", EAST],
      AXIS["y", NORTH],
      AUTHORITY["EPSG","3003"]]

I'm no projection wizard, has anyone an idea about how I can go from one
to the other and back in an easy way?

g.proj -w "Print projection information in WKT format"

Moritz

Hi Andrea,

please take a look at g.proj:

g.manual g.proj
or
http://grass.itc.it/grass63/manuals/html63_user/g.proj.html

The command:
g.proj -w
exports to wkt and the
wkt=
parameters reads from WKT.

cheers
Markus

On Mon, Feb 12, 2007 at 01:58:40PM +0100, Andrea Antonello wrote:

Hi developers,
I'm trying to make udig speak the same language as GRASS, but I found
one main issue, I'm not able to resolve.

GRASS and UDig use different projection definitions.
- in Grass the projection file is something like:
      name: Transverse Mercator
      proj: tmerc
      datum: rome40
      towgs84: -225.000,-65.000,9.000
      a: 6378388
      es: 0.0067226700
      lat_0: 0
      lon_0: 9
      k: 0.999600
      x_0: 1500000
      y_0: 0
      no_defs: defined

- whereas in UDig it is WKT:
      PROJCS["Monte Mario / Italy zone 1",
      GEOGCS["Monte Mario",
      DATUM["Monte_Mario",
      SPHEROID["International 1924", 6378388.0, 297.0,
AUTHORITY["EPSG","7022"]],
      AUTHORITY["EPSG","6265"]],
      PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
      UNIT["degree", 0.017453292519943295],
      AXIS["Lon", EAST],
      AXIS["Lat", NORTH],
      AUTHORITY["EPSG","4265"]],
      PROJECTION["Transverse_Mercator"],
      PARAMETER["central_meridian", 9.0],
      PARAMETER["latitude_of_origin", 0.0],
      PARAMETER["scale_factor", 0.9996],
      PARAMETER["false_easting", 1500000.0],
      PARAMETER["false_northing", 0.0],
      UNIT["m", 1.0],
      AXIS["x", EAST],
      AXIS["y", NORTH],
      AUTHORITY["EPSG","3003"]]

I'm no projection wizard, has anyone an idea about how I can go from one
to the other and back in an easy way?

Thanks for any help,
Cheers,
Andrea

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

--
Markus Neteler <neteler itc it> http://mpa.itc.it/markus/
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy

On 12/02/07 14:10, Andrea Antonello wrote:

Thanks Moritz,
this also means that there is no easy way (something like parse that and
that and then create the WTK), the proj pack has to be there, right?

You might be able to get a better idea by looking at

Check GPJ_grass_to_osr in lib/proj/convert.c
and
OSRExportToWkt in the proj source code.

But I'm really no expert on this.

Moritz

Andrea

Moritz Lennert probaly wrote:

On 12/02/07 13:58, Andrea Antonello wrote:

Hi developers,
I'm trying to make udig speak the same language as GRASS, but I found
one main issue, I'm not able to resolve.

GRASS and UDig use different projection definitions.
- in Grass the projection file is something like:
      name: Transverse Mercator
      proj: tmerc
      datum: rome40
      towgs84: -225.000,-65.000,9.000
      a: 6378388
      es: 0.0067226700
      lat_0: 0
      lon_0: 9
      k: 0.999600
      x_0: 1500000
      y_0: 0
      no_defs: defined

- whereas in UDig it is WKT:
      PROJCS["Monte Mario / Italy zone 1",
      GEOGCS["Monte Mario",
      DATUM["Monte_Mario",
      SPHEROID["International 1924", 6378388.0, 297.0,
AUTHORITY["EPSG","7022"]],
      AUTHORITY["EPSG","6265"]],
      PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
      UNIT["degree", 0.017453292519943295],
      AXIS["Lon", EAST],
      AXIS["Lat", NORTH],
      AUTHORITY["EPSG","4265"]],
      PROJECTION["Transverse_Mercator"],
      PARAMETER["central_meridian", 9.0],
      PARAMETER["latitude_of_origin", 0.0],
      PARAMETER["scale_factor", 0.9996],
      PARAMETER["false_easting", 1500000.0],
      PARAMETER["false_northing", 0.0],
      UNIT["m", 1.0],
      AXIS["x", EAST],
      AXIS["y", NORTH],
      AUTHORITY["EPSG","3003"]]

I'm no projection wizard, has anyone an idea about how I can go from one
to the other and back in an easy way?

g.proj -w "Print projection information in WKT format"

Moritz

Hamish wrote on 02/12/2007 01:37 PM:

Hi,

On 7 Feb a user called 'Mikael' added a huge list of mostly invisible
links to the main wiki page and the 'GRASS_Wiki:About' page. This is
done as a scummy move to take advantage of our good web browser ranking
to push their customer's rankings slightly higher.

I have now removed the spam. I would ask the wiki maintainer* to delete
that account, and blacklist their IP addr if possible (as feel good
measures still make you feel good).
  
... Account blocked.

I have added Martin Landa as Sysop, so it no longer depends on me and the inactive
sysops.

Markus

[*] "Your name here"
  http://grass.gdf-hannover.de/wiki/Project_jobs#Wiki_manager

argh,
Hamish

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

> [*] "Your name here"
> http://grass.gdf-hannover.de/wiki/Project_jobs#Wiki_manager

Markus wrote:

I have added Martin Landa as Sysop, so it no longer depends on me and
the inactive sysops.

Excellent.

thanks,
Hamish

Andrea Antonello wrote:

this also means that there is no easy way (something like parse that
and that and then create the WTK), the proj pack has to be there,
right?

I am not sure I full understand, but to repeat what Markus said,

from within GRASS:

# print Well Known Text (WTK) style projection info for the current
# location:
g.proj -w

# create a new GRASS location using WKT:
g.proj -c location=newLocation wkt=- << EOF
PROJCS["UTM Zone 13, Northern Hemisphere",
    GEOGCS["clark66",
        DATUM["North_American_Datum_1927",
            SPHEROID["Clarke_1866",6378206.4,294.9786982]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",-105],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    UNIT["meter",1]]
EOF

GRASS tends to use a style similar to PROJ4 instead of WKT internally,
but is happy to translate back and forth as best it can.

Hamish