From: Richard G. <ric...@gm...> - 2007-04-01 23:16:50
|
On 3/30/07, chrismacgregor <chr...@xt...> wrote: > Hi, > I'm new to Mapbuilder and would like help to setup a new projection. I > would like NZGD2000(New Zealand Traverse Mercator) setup. I have read > elsewhere how to setup a new projection and have used the values from > proj epsg: > > <2193> +proj=tmerc +lat_0=0 +lon_0=173 +k=0.999600 +x_0=1600000 > +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs > > this converted to: > > case "EPSG:2193": //New Zealand Transverse Mercator > this.Init=tminit; > this.Forward=ll2tm; > this.Inverse=tm2ll; > this.Init(new Array(grs80[0], grs80[1], 0.9996, 173.0, 0.0, > 1600000, 10000000)); > this.units="meters"; > this.title = "NZ Transverse Mercator (tmerc)"; > break; > I am using mapserver as my WMS and have verified that the map file > renders correctly with a static html page. > When viewed through mapbuilder there is no image available, the lon lat > viewer extents appears correctly but the lat's are inverted (i.e. > Northern hemisphere). I have searched for examples of southern > hemisphere Mercator examples but haven't found any. > Question: Is this a problem with my case in the Proj.js or will I have > to modify ll2tm and tm2ll? > Any advice would be greatly appreciated. Thanks > Chris Macgregor proj.js is not required, or even used, in the display of the image in mapbuilder. If you are not even getting an image, your problem is elsewhere. Try posting your query on the mapbuilder-user list, where there are more readers that may be able to help you. Rich -- Richard Greenwood ric...@gm... www.greenwoodmap.com |