I am using proj4js, and I am having difficulty getting good projection with a new projection definition. It is entirely possible that I don't have the correct syntax for the definition file (or that I am totally missing something required), but it's giving results that are off by a factor of 3 in 1 dimension (either X or Y, but not both).
I am creating a definition for Pennsylvania State Plane, and this is the file EPSG2272.js:
Proj4js.defs["EPSG:2272"] = "+proj=lcc \
I searched in http://www.epsg-registry.org/, and those are correct decimal degrees values. I try to transform the location of Philadelphia, PA ( -75.163808,39.951639 ), and I always get x:2189468, y:71889. I am expecting something like x:2694800,y:236500.
At first, I thought it was a ft/meter conversion, but when I add "+to_meter=0.3048006096012192" to the definition, the projected Y coordinate looks good, but the X coordinate is way off.
Any help would be greatly appreciated,