Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm having trouble projecting a simple WGS84 formatted layer over google maps. I can't find a good WKT "API" that not only shows parameters, but explains what each parameter is.

The coordinate system of the MapDefinition I am using is:

GEOGCS[
    "GCS_WGS_1984",
    DATUM[
        "D_WGS_1984",
        SPHEROID["WGS_1984",6378137.0,298.257223563]
    ],
    PRIMEM[
         "Greenwich",
         0.0
    ],
    UNIT[
        "Degree",
        0.0174532925199433
    ]
]

The PROJCS that I started writing but won't validate:

PROJCS[
    "Popular Visualisation CRS / Mercator",
    GEOGCS[
        "GCS_WGS_1984",
        DATUM[
            "D_WGS_1984",
            SPHEROID[
                "WGS_1984",
                6378137.0,
                298.257223563
            ]
        ]
        PRIMEM[
            "Greenwich",
            0.0
        ]
        UNIT[
            "Degree",
            0.0174532925199433
        ]
    ],
    PROJECTION["Mercator_1SP"],
    PARAMETER["central_meridian",0],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    AUTHORITY["EPSG","3785"],
    AXIS["X",EAST],
    AXIS["Y",NORTH]
]

For some reason mapguide won't validate this. What am I doing wrong?

share|improve this question
    
Is the typo "SPHEREOID" in the original? –  whuber Jul 12 '11 at 17:27
    
@whuber - Yes, thank you. It still won't validate. –  Nate Jul 12 '11 at 17:33
add comment

1 Answer

up vote 3 down vote accepted

Try putting commas between DATUM, PRIMEM, and UNIT

share|improve this answer
    
+1, specifically before PRIMEM and UNIT (2 in total) –  Mike T Jul 12 '11 at 21:10
    
Oh my gosh! How did I miss that? Thanks :) –  Nate Jul 13 '11 at 15:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.