Select to view content in your preferred language

(esriSRProjCS_NAD1983_UTM_Zone_60N) ERROR

1010
3
Jump to solution
06-20-2013 08:51 AM
LindseyWood
Deactivated User
I am wondering if anyone knows why 1N and 2N do not seem to be available and are giving me an error I am converting from vb to vb.net 3.5 also 59 and 60 are not found. the code goes on to include 60 cases just thought it would be too repetitive.
Thanks!

    '** Project the specified points into the appropriate UTM projection     Private Function UTMNAD83(ByVal UTM_Zone As Integer, _                               ByVal pPCS As IProjectedCoordinateSystem) As Boolean          Dim pSpatialRefFactory As ISpatialReferenceFactory2          UTMNAD83 = False          'Specify the output map projection         pSpatialRefFactory = New SpatialReferenceEnvironment          Select Case UTM_Zone             Case 1                 pPCS = pSpatialRefFactory.CreateProjectedCoordinateSystem _                     (esriSRProjCS_NAD1983UTM_10N)                 '(esriSRProjCS_NAD1983_UTM_Zone_1N)             Case 2                 pPCS = pSpatialRefFactory.CreateProjectedCoordinateSystem _                                                     (esriSRProjCS_NAD1983_UTM_Zone_2N)             Case 3                 pPCS = pSpatialRefFactory.CreateProjectedCoordinateSystem _                                                     (esriSRProjCS_NAD1983UTM_3N)             Case 4                 pPCS = pSpatialRefFactory.CreateProjectedCoordinateSystem _                                                     (esriSRProjCS_NAD1983UTM_4N)

[ATTACH=CONFIG]25386[/ATTACH] It doesn't seem to exist in this lib
0 Kudos
1 Solution

Accepted Solutions
LindseyWood
Deactivated User
finally found it in this lib must be a .NET thing.
Imports ESRI.ArcGIS.Geometry.esriSRProjCS4Type

View solution in original post

0 Kudos
3 Replies
ShaunWalbridge
Esri Regular Contributor
It doesn't seem to exist in this lib


esriSRProjCS_NAD1983_UTM_Zone_1N works fine for me, the reason it isn't listed in the autocomplete you listed is two-fold: You're looking at the 'NAD1927' section, and the list isn't sorted numerically -- so all values starting with '1' will be grouped together, and 1 will be next to 10, not 2.

cheers,
Shaun
0 Kudos
LindseyWood
Deactivated User
I wish that were the case but they are not in the list at all and if you put them in manually they give the ref doesn't exist error with the blue line.  Could the syntax be a little different or 1,2, 59, 60 be with a different lib?
[ATTAC[ATTACH=CONFIG]25395[/ATTACH]H=CONFIG]25394[/ATTACH]

Also if you notice between 2 and 3 there is a slightly different syntax 1 and 2 have the word Zone and more underscores.  If I change them to look like 3 I still get the same error.
0 Kudos
LindseyWood
Deactivated User
finally found it in this lib must be a .NET thing.
Imports ESRI.ArcGIS.Geometry.esriSRProjCS4Type
0 Kudos