[mapguide-users] ETRS89 / Portugal TM06

Jag jaugusto at phinformatica.pt
Fri Apr 20 06:46:45 EDT 2012


I'm using a Map with Coordinate System ETRS89 / Portugal TM06 (  
http://spatialreference.org/ref/epsg/3763/
http://spatialreference.org/ref/epsg/3763/ ) 



but I can't find this Coordinate System in MgCoordinateSystemFactory.

Some code to reproduce the behaviour:


/    Try

        Dim p_cswkt_etrs89 As String


        p_cswkt_etrs89 =
"PROJCS[$ETRS89 / Portugal
TM06$,GEOGCS[$ETRS89$,DATUM[$European_Terrestrial_Reference_System_1989$,SPHEROID[$GRS
1980$,6378137,298.257222101,AUTHORITY[$EPSG$,$7019$]],AUTHORITY[$EPSG$,$6258$]],PRIMEM[$Greenwich$,0,AUTHORITY[$EPSG$,$8901$]],UNIT[$degree$,0.01745329251994328,AUTHORITY[$EPSG$,$9122$]],AUTHORITY[$EPSG$,$4258$]],UNIT[$metre$,1,AUTHORITY[$EPSG$,$9001$]],PROJECTION[$Transverse_Mercator$],PARAMETER[$latitude_of_origin$,39.66825833333333],PARAMETER[$central_meridian$,-8.133108333333334],PARAMETER[$scale_factor$,1],PARAMETER[$false_easting$,0],PARAMETER[$false_northing$,0],AUTHORITY[$EPSG$,$3763$],AXIS[$X$,EAST],AXIS[$Y$,NORTH]]" 

        p_cswkt_etrs89 =
Replace(p_cswkt_etrs89, "$", """")


        Dim code_etrs89 As String =
csf.ConvertWktToCoordinateSystemCode(p_cswkt_etrs89)


        Dim epsgcode_etrs89 As
String = csf.ConvertWktToEpsgCode(p_cswkt_etrs89)


        ' epsgcode_etrs89 is ""
!!!!!

        ' Lets try to use 3763 


        code_etrs89 = "3763"


        Dim
myCoordinateSystem_etrs89 As MgCoordinateSystem

        myCoordinateSystem_etrs89 =
csf.CreateFromCode(code_etrs89 )

    Catch ex As Exception

        MsgBox(ex.Message)

    End Try/



It's possible to add new Coordinate Systems to the libraries? How can I
resolve this problem?

I need to perform coordinate conversion and therefore need to use
MgCoordinateSystemFactory.


Thanks in advance

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/ETRS89-Portugal-TM06-tp4901537p4901537.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20120420/8b120594/attachment.html


More information about the mapguide-users mailing list