[mapguide-internals] new projection in csmap

Paul Spencer pspencer at dmsolutions.ca
Wed Apr 29 17:04:12 EDT 2009


That works.  Should it work if I do that on a MapDefinition (will it  
convert all the layer definitions on the fly)?

On 29-Apr-09, at 4:16 PM, Jason Birch wrote:

> In what context?
>
> Do you need it to be accessible in MapGuide Studio's drop-downs?  If  
> not, you can just attach a WKT CS to the relevant MapGuide resources  
> (data source override, map, whatever).
>
> Your WKT looks to be PROJ.4 specific. I think the native version  
> looks something like this:
>
> PROJCS["Popular Visualisation CRS / Mercator",GEOGCS["Popular  
> Visualisation  
> CRS",DATUM["Popular_Visualisation_Datum",SPHEROID["Popular  
> Visualisation Sphere", 
> 6378137,0,AUTHORITY["EPSG","7059"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6055"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4055"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],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]]
>
> I've attached a simple PHP script I threw together to calculate  
> extents of a layer in LL84 and Popular ("Google") projections.
>
> If you do need it to be selectable in Studio, I'm not sure how you  
> would do it.  The preliminary users guide for CS-MAP mentions the  
> CS_COMP.exe, which is generated as part of the open source build.  I  
> wonder if it is as easy as editing the .asc files and (maybe?)  
> recompiling?
>
> Jason
>
> -----Original Message-----
> From: Paul Spencer
> Sent: Wednesday, April 29, 2009 12:26 PM
> To: MapGuide Internals Mail List
> Subject: [mapguide-internals] new projection in csmap
>
> How do I add a new projection to CSMap?  Specifically, the spherical
> mercator projection used by the commercial web mapping folks:
>
> PROJCS["unnamed",GEOGCS["unnamed
> ellipse",DATUM["unknown",SPHEROID["unnamed",
> 6378137,0]],PRIMEM["Greenwich",0],UNIT["degree",
> 0.0174532925199433
> ]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",
> 0],PARAMETER["central_meridian",0],PARAMETER["false_easting",
> 0],PARAMETER["false_northing",0],UNIT["Meter",
> 1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0
> +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext
> +no_defs"]]
> < 
> coords_converter 
> .php.txt>_______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    http://research.dmsolutions.ca/



More information about the mapguide-internals mailing list