Select to view content in your preferred language

SpatialReference problem

584
1
06-02-2010 06:06 AM
AttilaGál
New Contributor
Hi,

I'm new to programming arcGIS (without any GIS background), but I could create the simplest application with the Silverlight API.
It has a layer with a map, and I wanted to plot some mappoints with data from my database.

I could add the graphic layer and add mappoint as I found in the examples, but my point didn't show up.

After some experiments I found out that if I try a coordinate from the web example, it shows up well, so my coordinates should be "wrong".
Of course the next step was reading the manual and examining the SpatialReference member.
My coordinates are referenced to a Hungarian system called EOV, and after some reading I found that SpatialReference can instantiated with a parameter which holds an ID to the reference system.
I found these links:

http://resources.esri.com/help/9.3/arcgisserver/apis/rest/gcs.html
http://resources.esri.com/help/9.3/arcgisserver/apis/rest/pcs.html

Both of them contains a Hungarian one (I tried both), but I couldn't display my point.
Btw. in the second list there is a row which is the system I wrote about:

23700  Hungarian_1972_Egyseges_Orszagos_Vetuleti


What should I try next?
Maybe the only possibility is that I ask for an algorithm which converts the values to a global system?

Thanks in advance,



      Attila
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
Setting the spatial reference doesn't really do much for you in this case. You still need to make sure that the X and Y values are within a valid extent that matches that of your basemap. Ie. look at the FullExtent property of your basemap. Your x/y values should be within that extent.
0 Kudos