Sunday, September 12, 2010

OGR MS SQL 2008 Spatial driver

I've now added the initial revision of the OGR MS SQL Spatial driver to the GDAL repository. For further information please refer to the driver information page.
Working binaries (which always contain all the recent fixes) can be downloaded from the daily build system available at: http://vbkto.dyndns.org/sdk/

Since I didn't have the chance to test with all kind of the fancy spatial data types any feedback on the potential issues are graciously accepted.

Upon the experiences gathered when writing this driver, I'm also planning to add support for accessing the native SqlGeometry/SqlGeography serialization format in the MapServer sql2008 driver which appears to provide a significant increment in the performance of the data retrieval.

15 comments:

  1. Any updates on GEOGRAPHY support for the MapServer driver?

    ReplyDelete
  2. Geography support has already been added in the development versions, you can download the corresponding binaries from http://vbkto.dyndns.org/sdk/

    According to the implementation, for the geography type you should specify the colum type in the DATA section explicitly, like:

    DATA "ogr_geometry(geography) from rivers USING UNIQUE ogr_fid USING SRID=4326"

    For more information about the MSSQL driver in MapServer see: http://mapserver.org/trunk/input/vector/mssql.html

    ReplyDelete
  3. Thank you for the SQL 2008 Spatial driver, it is very welcome!

    I have been relying upon Morten's SqlSpatialTools to import shapefiles into SQL 2008. Finally, now there is a driver that allows me to use ogr2ogr to create a shapefile directly from SQL Server! Thank You!

    I have found that geometry data type is exported to shapefile correctly. An export using SQL Server geography data type, however, appears to have the coordinates reversed. That is x=y and y=x...

    Other than that, no issues so far using the driver.

    ReplyDelete
    Replies
    1. How to make to mssql driver works in Ubuntu 13.04 with QGIS 1.8?

      Delete
  4. Thank you for your information. I love to read it much. Gamingguide

    ReplyDelete
  5. We have all of the 2020 Australian AFL football fixtures for today, this week & every afl live tv streaming season.football fixtures site for the 2020 Australian AFL.

    ReplyDelete
  6. Some of these encounters are going to be great. Emmanuel Navarrete is the Mexican and he is currently holding the WBO super welterweight bout champion. As far as he is concerned, Fury Wilder PPV the fight is due or die affair because he needs to prove that he deserves to hold that belt. Joe Santissima will pose a difficult challenge for him.

    ReplyDelete
  7. Our buyers are our assets. And we don’t hesitate to go the extra mile to halal meat philadelphia serve them with the best. We make sure no one waits and keep shelves full of groceries 24 hours a day.

    ReplyDelete
  8. Dr. Samra-Latif Estafan is committed to helping you achieve wellness strawberry lipo near me and total health through a holistic and integrative approach to dedicated healthcare.

    ReplyDelete
  9. Law Offices Of Rizwan M. Khalid is here to protect your legal rights and help defend you in need. Immigration clients are Best Lawyers Near Me served throughout the United States and the world. Other legal services are offered only in New Jersey and Pennsylvania.

    ReplyDelete
  10. Kabobi serves you Halal kabobeesh food. We offer you healthy and delicious food. You can order a variety of food from our Halal food menu, which would be served to you in minutes.

    ReplyDelete
  11. Williamson Caterers is a preferred caterer for venues and historic locations Caterers Philadelphia throughout the region. We also bring our services to your home, place of worship, office, school or any unique location you may find.

    ReplyDelete
  12. I believe you have noted some very interesting details , thankyou for the post. VerzuzBattleOnline

    ReplyDelete