ProjNet4GeoAPI icon indicating copy to clipboard operation
ProjNet4GeoAPI copied to clipboard

How convert proj4js source to this lib source?

Open ahvahsky2008 opened this issue 5 years ago • 0 comments

I want use proj4js data in this lib. How make it?

[$$hashKey: "00B"
a: 6377397.155
a2: 40671194472602.09
axis: "enu"
b: 6356078.962818189
b2: 40399739781579.94
datum: Class
a: 6377397.155
b: 6356078.962818189
datum_params: Array(7)
0: 316.151
1: 78.924
2: 589.65
3: -0.0000076248102069140055
4: 0.000013051620627781706
5: 0.000011378237726064032
6: 1.0000084507
length: 7
__proto__: Array(0)
datum_type: 2
ep2: 0.006719218799174659
es: 0.006674372231802045
__proto__: Object
datum_params: Array(7)
0: 316.151
1: 78.924
2: 589.65
3: -0.0000076248102069140055
4: 0.000013051620627781706
5: 0.000011378237726064032
6: 1.0000084507
length: 7
__proto__: Array(0)
defData: "+title= Московская СК (МГГТ)    +proj=tmerc +lat_0=55.66666666667 +lon_0=37.5 +k=1 +x_0=16.098 +y_0=14.512 +ellps=bessel +towgs84=316.151,78.924,589.650,-1.57273,2.69209,2.34693,8.4507 +units=m +no_defs"
e: 0.0816968312225269
e0: 0.9983293129828279
e1: 0.002507078957150663
e2: 0.000002623256153810457
e3:
3.3874906423706494
e-9
ellipseName: "Bessel 1841"
ellps: "bessel"
ep2: 0.006719218799174659
es: 0.006674372231802045
forward: ƒ (p)
init: ƒ ()
inverse: ƒ (p)
k0: 1
lat0: 0.9715666169435683
lon_0: 37.5
long0: 0.6544984694978736
ml0: 6170810.070243443
projName: "tmerc"
queue: []
readyToUse: true
rf: 299.1528128
srsAuth: "epsg"
srsCode: "EPSG:6335000"
srsCodeInput: "EPSG:6335000"
srsProjNumber: "6335000"
title: "EPSG:6335000 -  Московская СК (МГГТ)    "
units: "m"
x0: 16.098
y0: 14.512](url)

i try python wkt converter, but on map i see coordinate shift

var wkt = csFact.CreateFromWkt( "PROJCS[" Московская СК(МГГТ)",GEOGCS["unknown", DATUM["Unknown based on Bessel 1841 ellipsoid", SPHEROID["Bessel 1841", 6377397.155,299.1528128],TOWGS84[316.151,78.924,589.65,-1.57273,2.69209,2.34693,8.4507]],PRIMEM["Greenwich", 0,AUTHORITY["EPSG", "8901"]], UNIT["degree", 0.0174532925199433,AUTHORITY["EPSG", "9122"]]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin", 55.66666666667],PARAMETER["central_meridian",37.5],PARAMETER["scale_factor",1],PARAMETER["false_easting",16.098],PARAMETER["false_northing",14.512],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH]]"); var trans = ctFact.CreateFromCoordinateSystems(wkt, wgs84);

ahvahsky2008 avatar Dec 10 '20 11:12 ahvahsky2008