Hi I would like to make an application where I check GeoCoordinates against postal code polygons of the country of Denmark.
I have found a file which I hope contains the data I need to import: ftp://ftp.kms.dk/DAGI/MAPINFO/DAGI2M.zip
I hope the above file contains the data I need, when I first tried to run Shape2SQL, it wrote "geom" in the Geometry Name field instead of "geog", which is perhaps what I need to perfom the above highlighted task?
The postal code data are in the files:
POSTNUMMER.cpg
POSTNUMMER.dbf
POSTNUMMER.prj
POSTNUMMER.shp
POSTNUMMER.shx
I would like to use the Shape2SQL tool which I am able to run.
I have also got the book "Beginning Spatial with SQL Server 2008", where chapter 6 describes how to do what I want to do.
I think that the above POSTNUMMER files contains more data than I need, I am thinking that I just need the postal code and the polygon.
Now it seems like I have everything to do what I want to do, still I am unsure about how to proceed.
For example shall I create a database? What columns should I then put in the database? I am also unsure about what I shall write as Server name: in the Database Configuration in the Shape2SQL tool? I just downloaded the SQL Server 2008 R2, I think it's an Express version. When I open SSMS it says that the server name is "PC" and that I am using Windows Authentication, and that the User name is pc\a, so I guess I shall just write "PC" as the Server name in the Database Configuration in the Shape2SQL tool? I have already tried a couple of times to import my Shapefile with the Shape2SQL tool, but I haven't succeeded so far, I started to change some of the values in the "Shapefile Uploader for SQL Server 2008" window of Shape2SQL tool, and now the tool seems to remember my randomly entered values, I guess I need to clear the values somehow, but the Shape2SQL persist in remembering the old eronous values eventhough I try to reload the .shp file.
Anyway what shall I do to do this?
Shall I start with creating a database, if so with what columns?
How do I make sure that "Shapefile Uploader for SQL Server 2008" window of Shape2SQL has the right values?
rune007