Results 1 to 3 of 3

Thread: WCF (REST) Service with Spatial DB Types?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    WCF (REST) Service with Spatial DB Types?

    I am trying to create a REST endpoint through WCF Data Services to expose some spatial data in a SQL Server 2008 database, but the way I am doing it doesn't support spatial data types (geography/geometry).

    In this intro video it shows how to use the ADO.NET entity data model, but that data model doesn't support spatial types, and shows errors when I select the spatial table.

    Does anyone know of something I can do to resolve this, or can point me in the right place in order to find more info? I just want a REST endpoint that exposes a set of points from my database.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: WCF (REST) Service with Spatial DB Types?

    Hello,

    I think this question is better answered in the WCF Forum. I am going to move it over there.

    Thanks

    Gary

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: WCF (REST) Service with Spatial DB Types?

    I found this link that has a sort of 'hack' by creating a view and casting the field as binary. You can then get it back on the client end by converting it back. In theory, it should work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width