This is a migrated thread and some comments may be shown as answers.

How to use spatial data

9 Answers 121 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christian
Top achievements
Rank 1
Christian asked on 04 Mar 2010, 12:42 PM
Hi,
We want to create an application where we want to store geographic information. Therefore we want to use the new spatial features of the SQL Server 2008 from Microsoft. How can we use this new data types with the OR-Mapper?
Thanks.
Christian

9 Answers, 1 is accepted

Sort by
0
Accepted
Jan Blessenohl
Telerik team
answered on 05 Mar 2010, 09:52 PM
Hello Christian,
We will implement support for special types like this directly after the Q1 release. At the moment it is not possible.

Kind regards,
Jan Blessenohl
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Christian
Top achievements
Rank 1
answered on 02 Jun 2010, 08:59 PM
Hello,
is there a new roadmap for spatial data? I can't find any reference to this topic. It's still important for us.
Thanks.
Christian
0
Accepted
Jordan
Telerik team
answered on 04 Jun 2010, 12:27 PM
Hi Christian,

Spatial types are important for us also. This is one of the reasons  behind the custom type support that we have planned to implement. Unfortunately I cannot give you  a specific time frame for this functionality. I can tell you however that we will probably not have it before the Q2 2010 release.

Kind regards,
Jordan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Christian
Top achievements
Rank 1
answered on 03 Aug 2010, 07:08 PM
Hi.
I have read the features of the current version. My question: Are spatial datatypes now available?
Thanks.
Christian
0
Alexander
Telerik team
answered on 04 Aug 2010, 09:05 AM
Hello Christian,

I am afraid that the type converter framework that will allow the usage of those types is still under development. It should be ready soon and we will most probably introduce it in a service pack in a few weeks.

Sincerely yours,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Christian
Top achievements
Rank 1
answered on 16 Sep 2011, 10:54 AM
Hi,
I have read the link about the spatial data type (Blog). How can I use this data type with a project that was created with "old" forward-mapping?
Kind regards.
Christian
0
Accepted
Ady
Telerik team
answered on 21 Sep 2011, 06:23 PM
Hello Christian,

 In case you want to work with the sql server data types you would need to do the following
  1. Add a reference to the 'Microsoft.SqlServer.Types' assembly
  2. define the fields you require your class. For example - private SqlGeography geographyField;
  3. For each such field the mapping in the app.config file should be as follows
<field name="geographyField">
              <extension key="db-column" value="mssql">
                <extension key="db-type" value="LONGVARBINARY" />
                <extension key="db-column-name" value="geographyColumn" />
                <extension key="db-sql-type" value="geography" />
              </extension>
</field>

That's all that is required to work with spatial data types and classic approach.

Do get back in case you need further assistance.
Regards,
Ady
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's SQL Server Community Awards. We are competing in TWO categories and every vote counts! VOTE for Telerik NOW >>

0
Duncan
Top achievements
Rank 2
answered on 06 Jan 2012, 10:28 PM
Sorry to bring this topic up again, i wanted to revist it as i am thinking of using Geography spatial data type. Does the latest version of OpenAccess support it, and what would the data type be in my code?

Am i better off just sticking with decimals?

Duncan
0
Ralph Waldenmaier
Telerik team
answered on 09 Jan 2012, 11:36 AM
Hi Duncan,

Telerik OpenAccess ORM supports the usage of spatial data types. The data type for your Geography property would be SqlGeography. You can find an example of using spatial data types in our SDK "Basic Spatial Data With OpenAccess" or you can look into this blog post, where spatial data is used with a RadMap.

I hope this information is helpful for you. 

Greetings,
Ralph
the Telerik team

SP1 for Q3’11 of Telerik OpenAccess ORM is available for download

Tags
Databases and Data Types
Asked by
Christian
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Christian
Top achievements
Rank 1
Jordan
Telerik team
Alexander
Telerik team
Ady
Telerik team
Duncan
Top achievements
Rank 2
Ralph Waldenmaier
Telerik team
Share this question
or