Guest User

Untitled

a guest
Jul 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class PItem
  2. {
  3. [BsonIgnoreIfDefault]
  4. public ObjectId ID { get; set; }
  5.  
  6. [BsonElement("loc")]
  7. public PLocation PolyLocations { get; set; }
  8. }
  9.  
  10. public class PLocation
  11. {
  12. public String Type { get; set; }
  13. public GeoJsonPolygon<GeoJson2DGeographicCoordinates> Coordinates { get; set; }
  14. }
  15.  
  16. "loc" : {
  17. "Type" : "Polygon",
  18. "coordinates" : {
  19. "type" : "Polygon",
  20. "coordinates" : [
Add Comment
Please, Sign In to add comment