How to get the spatial results, and how to export it to a Mapinfo Table?
-
Thursday, December 22, 2011 5:36 PM
Hi all,
I made a view in SQL Server, and got about 6000 items in the result. Now I am trying to get the spatial results and then I want to export it to a Mapinfo Table. Will you pls tell me what I should do?
Thanks a lot
- Edited by Lydia Cheng Thursday, December 22, 2011 6:29 PM
- Moved by Alex Feng (SQL)Moderator Sunday, December 25, 2011 12:15 PM move to an appropriate forum (From:SQL Server Tools General)
All Replies
-
Saturday, December 24, 2011 11:04 AMDo you have spacial data for these records?
Jeff Wharton
MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCPD, MCITP, MCDBA
Blog: Mr. Wharty's Ramblings
MC ID: Microsoft Transcript
Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker -
Tuesday, December 27, 2011 2:46 AMModerator
Hi Lydia,
Could you please provide the sechema of the view & table Mapinfo and some sample data?
Best Regards,
Peja
Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Tuesday, December 27, 2011 2:18 PMAnswerer
SQL Server has no inbuilt ability to export spatial data in any format other than WKT, WKB, or GML, so you'll need to use a third party tool.
Safe FME (commercial) and OGR2OGR (open source) can both export from SQL Server to MapInfo format.
twitter: @alastaira blog: http://alastaira.wordpress.com/- Edited by tanoshimiMVP, Editor Tuesday, December 27, 2011 2:18 PM
-
Wednesday, December 28, 2011 5:03 PM
Do you have spacial data for these records?
Jeff Wharton
MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCPD, MCITP, MCDBA
Blog: Mr. Wharty's Ramblings
MC ID: Microsoft Transcript
Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker
Hi Jeff,
Yes, I have the spatial data as Column "Shape" for all the records.
Lydia Cheng -
Wednesday, December 28, 2011 5:03 PM
SQL Server has no inbuilt ability to export spatial data in any format other than WKT, WKB, or GML, so you'll need to use a third party tool.
Safe FME (commercial) and OGR2OGR (open source) can both export from SQL Server to MapInfo format.
twitter: @alastaira blog: http://alastaira.wordpress.com/
Actually I believe it does have the ability, and I saw someone do it before.
Lydia Cheng -
Wednesday, December 28, 2011 6:56 PM
Hi Lydia,
Could you please provide the sechema of the view & table Mapinfo and some sample data?
Best Regards,
Peja
Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.Hi Peja,
I have Column "Shape" "MI_PRINX" "#_Place" in the View. And I want to get the spatial results, then export it to Mapinfo Table, TXS.
Lydia Cheng

