Do you plan to update the EPSG list on your product?
Can we add some EPSG to the list or only adding the proj4 string manually in the code?
Do you plan to update the EPSG list on your product?
Can we add some EPSG to the list or only adding the proj4 string manually in the code?
Rui,
We get the EPSG list update about every 6 months from Proj4 trac.osgeo.org/proj/
I don't know about all the intricacies of how the Proj4 string is pulled from the EPSG code, but I know that you cannot just add some Code to the EPSG.rtf file. You will need to pass the entire string as parameters in the code.
Hello Val!
But you don't support 3763
? Proj4Projection.GetEpsgParametersString(3763);
""
And I browse into svn.osgeo.org/metacrs/proj/trunk/proj/nad/epsg and got :
# ETRS89 / Portugal TM06
<3763> +proj=tmerc +lat_0=39.66825833333333 +lon_0=-8.133108333333334 +k=1 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs <>
And inside the proj4 Source I see nad\epsg with the same thing, and is pretty old.
Could you please update the list?
Rui,
I passed this issue to the Development team and they should tell us why we cannot just pass the EPSG code 3763.
In the meantime, to have a working solution, I suggest you use the proj4 string as you find in spatial-reference.org/ref/epsg/3763/
I tested out going with a point roughly in Portugal (within the valid range of that projection) going from WGS84 (Lat/Long) to your Portugal projection and it seems to work. See the code below
ManagedProj4Projection proj4 = new ManagedProj4Projection();
proj4.InternalProjectionParameters = ManagedProj4Projection.GetWgs84ParametersString();
//Use the string instead of the EPSG code (ManagedProj4Projection.GetEpsgParametersString(3763))
proj4.ExternalProjectionParameters = "+proj=tmerc +lat_0=39.66825833333333 +lon_0=-8.133108333333334 +k=1 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs";
proj4.Open();
Vertex projVertex = proj4.ConvertToExternalProjection(-6, 40);
proj4.Close();
// projVertex.X = 182161.7452352008
// projVertex.Y = 39013.949815345877
Rui,
We have added this issue to our working system, we will update EPSG list before next public release (around May 1st).
So far, we just can use the code like Val’s. Sorry for inconvenience.
Thanks,
James
I already have this.
But I’m having some issues related with OpenLayers because the map SRS is not EPSG:3763. I’ll dig a bit more into this… thanks
Rui,
Sounds good. When you have more info let us know.
Does version 5.0 has this Projection by default?
Rui,
Yes,it does.
Let me know if you have more comments.
Thanks,
Gary