ThinkGeo.com    |     Documentation    |     Premium Support

Co- Ordinates mismatch problem

Hi all


Am using geoTIF image with inbuild co ordinates. map layer loading and ploting my points in my map everythng working well. but the problem is


----- the co ordinate is mismatching.


when am loading my map layer in my application it showing some other co ordinates. i cant correctly locate my real co ordinates in my map.. when am trying to locate co ordinates it being located some other locations in map.


i don know how to convert my co ordinates to the WPFMAP default co ordinates.


-- and i want to show some thing when user click on the located point. how to cal that in our map suite. is it possible here.


Can u tel tel me resolve this... 














Hi dCODE,


 


For your first question, I want to clarify some information with you:


 


1.       You are using two layers in your map control, one is a GeoTiffRasterLayer holding the tiff image, and the other is a ShapeFileFeatureLayer holding some points, and they are not matched each other, am I right?


2.       Do you know any projection information about your tiff image? Is it in WGS 84 coordinate system or some other projection? You have to make sure your tiff layer and your shape file layer are displaying in the same projection, and you also should make sure the map unit property is setting correctly in your application.


3.       If you are not sure about the information of your data, could you please give us a simple sample and the sample data so that we can recreate your problem quickly?


 


For the second questions, I think you could use the the MapClick event in the map control. You can retrieve a PointShape in world coordinate from the EventArgs to see if it match with any located point.


 


Hope this helps and any more questions please let me know.


 


Thanks,


 


Sun



Hi Sun, 
  
 1.      Am uisng two layers. One in GdiPlusRasterLayer for loading map and InMemoryFeatureLayer for loading my loaction on map. But u asked me wheather am using GeoTiff and shapeFileFeature Layer. i don know which one is the rite way to use. can u tell wheather my using of layer is rite or not. if so i wil chage my code to geoTiff and shapefile.My need is to load my GeoTiff and am having my own co ordinates and symbols. i need to load diff symbols for diff co ordinates. for acheiving this which layer type is better for me. 
  
 2. my GeoTiff is WGS84 co ordinate system.how to set projection and unit property  to my map as u mentioned above 
  


 


dCODE,
 
Thank Sun for his sharing.
 
I think that it would be ideal if you could send us the sample project and the screen-shot which can show your problem. That way we can go directly to resolving your problem instead of spending time setting up your scenario and trying to recreate the problem on our side. 
 
If you don't fell comfortable sending your project in the Discussion Forum, you can use one of your Support tickets in the Customer Portal. 




About set the projection for GeoTiff, I am afraid that we don’t it so far, you can look at the following post.
gis.thinkgeo.com/Support/Dis...fault.aspx
 
If you want to know more information about projection, you can look at the following post, it also contains many links which can get useful extra information.
gis.thinkgeo.com/Support/Dis...fault.aspx
 
Thanks.
 
James

so u telling that plotting world co-ordinates locations in my geoTif is not possible by the map suite ???

James i think am doing wrong in mentioning projection here 
  
 wpfMap1.CurrentExtent = new RectangleShape(-900, -100, 2186, -100); 
  
 how to specity and fine the projection for my map… 
  


deep, 
  
 I am sorry that my english is not good that my rely let you misunderstand. 
  
 I remember I told you how to plot world co-ordinates locations in your geoTif at another post, but your environment has some problem so that you can not run the HowDoI sample.  
  
 This post is about mismatching the coordinates, so they’re two things. My meaning is that you can not project the GeoTiff, but you can project your location in another layer. 
  
 Please let me know if I am still not clear. 
  
 James

i got james,


thanks for your time.


 



Any more questions about this please let us know. 
  
 Thanks, 
  
 Sun