Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projection problem #35

Open
tech4bot opened this issue Apr 14, 2016 · 4 comments
Open

Projection problem #35

tech4bot opened this issue Apr 14, 2016 · 4 comments

Comments

@tech4bot
Copy link

Hello,
After loading a file with a projection inside (EPSG:31700 --- prj file --- http://spatialreference.org/ref/epsg/dealul-piscului-1970-stereo-70/prj/) all areas are not fitting correctly on map:
shapefile

Is there any way to fix this or what should I do to shift all the areas after import?

Thank you!

@calvinmetcalf
Copy link
Owner

calvinmetcalf commented Apr 14, 2016

we use proj4js to deal with projections and it doesn't have that datum or ellipsoid you are using and I've never actually encountered that one before, this are the supported datums and supported ellipsoids

@tech4bot
Copy link
Author

tech4bot commented Apr 15, 2016

thank you for your clarification.
one more question, I found inside the shp.js file the following function:
module.exports = function(defs) {
defs('EPSG:4326', "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees");
[...]

Here I found defs('EPSG:31700', "+proj=sterea +lat_0=46 +lon_0=25 +k=0.99975 +x_0=500000 +y_0=500000 +ellps=krass +nadgrids=stereo70_etrs89A.gsb +units=m+no_defs ");
I've try to add this but I still see no difference.
I also found out that my projection (EPSG:31700) is deprecated and alternative is EPSG:3844, and I've try to add in shp.js: defs['EPSG:31700'] = defs['EPSG:3844']; but same, I don't see any difference.
Am I doing something wrong?

Thank you!

@calvinmetcalf
Copy link
Owner

calvinmetcalf commented Nov 26, 2016 via email

@tech4bot
Copy link
Author

I will wait for your input maybe you find something how to use it. I am looking for something like when I am using .prj file to use the string you give me.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants