ThinkGeo.com    |     Documentation    |     Premium Support

Rectangle Shape - CenterPoint Exception

when calling GetCenterPoint


The shape you provided does not pass our simple validation.


The Shape is contructed as


 



 


new RectangleShape(new PointShape(longitude, latidude), new PointShape(longitude + longStep, latidude + latStep)));.


 



CalculateGridCellValue(



Lars, 
  
 When you use the following constructor, it should follow: 
 longStep > 0 
 LatStep < 0 
  
 Because the first parameter should be upper left point and the second parameter should be lower right Point. The Y axis direction should be from south to north. 
  
 Any more questions please feel free to let me know. 
  
 Thanks. 
  
 Yale