Hi,
I have found an issue when using shape file and a projection… looks like that a projection must be open. was working fine before using the latest daily build (7.0.155.0). Could you check it?
thanks
jm.
screen cast: screencast.com/t/0X4qbUguRhY
Latest 7.0.155.0 projection issues with shapefile
Hi Jm,
Thanks for your video.
We tried to recreate it but failed. It seems a bit weird as I can see the projection have been opened before using it and the codes looks well also. Would you please provide us a sample to recreate it if it is convenience for you?
One more thing is could you let us know which versions before 7.0.155.0 works fine? it will help us to narrow down the modifications recently.
Thanks,
Johnny
Hi Johnny
I can tell you that the error with the projection open… wasn’t there with the version before 155 for instance 151 doesn’t have the issue.
jm.
ps: i am sorry but I am too busy for sample applications… I know this could be better for you but I am alone here…
last but not least I do have the latest unmanaged from the 157 build installed on my system. But I have just compile the application with the dll from the 151… is that an issue?
Hi Jm,
Ok, thanks for your information, we did find some modifications between the two dlls on projection but not sure which one is the root of the issue and now we are still working on it. but we still can’t recreate the issue and I guess your case might be some differences with our tests.
Would you please comment out some layers one by one to see whether it is related with them? Or a sample or partial codes which can recreate is highly appreciate if you have any time to do it.
I don’t think there are any issues using the 151 dlls and the unmanaged dlls 157 as they should be isolate. I think you can use them temporary till the projection issue is fixed.
Thanks,
Johnny
Hi Johnny,
it is clear that by changing the DLLs from 151 to more recent is breaking the projection. please find the attached zip file with the shape files used by my application and I think you should be able to see from where the issue is coming from. The .prj file is inside the zip file as well.
projection code :
var geoProjection = new Proj4Projection
{
InternalProjectionParametersString = Proj4Projection.ConvertPrjToProj4(prjFileText),
ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString()
};
thanks again for your excellent support!
ps: my files are too big to be uploaded on the forum, I shall send them by email to Moritz today.
Hi Jm,
You are so welcome.
Now, It’s time to thank you for your projection file as it is a bug we have found out with it. :)
Please get the latest version(7.0.163.0) to fix this issue or just do a trim on the InternalProjectionParametersString:
InternalProjectionParametersString = Proj4Projection.ConvertPrjToProj4(prjFileText).Trim()
Regards,
Johnny