locked
Shape-file to Geo-referenced Image Search RRS feed

  • Question

  • I have a repository of images, and I am calling this repository a database. Now in each image folder there are multiple files in which there is a KML files that have "ISO-8859-1" encoding standard. The KML file describes the Latitude, Longitude information of the image.

    Now I am going to develop an application that will ask the user to provide its shape-file for image searching. The images that are within that shape-file will show up to the user. 

    I have no other information regarding each image in repository to uniquely identify it except Latitude and Longitude (of corner and middle points). 

    So I want to know that how can I search images by shape-file?

    Engr. Mudassar Ali Software Engineer

    Sunday, January 5, 2014 5:35 PM

Answers

  • Not sure when you say Shape-File if you mean ESRI ShapeFile (a spatial file format) or if you are referring to the KML files. I'll assume KML. If I understand this correctly you have a bunch of KML files that have information about each image and you want to search through each file and fine which one's have the same coordinates (or possibly approximate coordinates). There are a couple of approaches. One is to loop through each file and search through the data in it and do comparisons on the contents. This will be very slow. Another option is to use a real database and either store the metadata of the images in there and cross reference to the KML files or store all the data including the images in the Database. This will allow you to search all the images in one place. You would also be able to use indexes on the coordinates which would result in really good performance. In either case you will need to be able to read KML files. Take a look at the SharpKML project on codeplex here: http://sharpkml.codeplex.com/

    http://rbrundritt.wordpress.com

    Monday, January 6, 2014 11:42 AM

All replies

  • Not sure when you say Shape-File if you mean ESRI ShapeFile (a spatial file format) or if you are referring to the KML files. I'll assume KML. If I understand this correctly you have a bunch of KML files that have information about each image and you want to search through each file and fine which one's have the same coordinates (or possibly approximate coordinates). There are a couple of approaches. One is to loop through each file and search through the data in it and do comparisons on the contents. This will be very slow. Another option is to use a real database and either store the metadata of the images in there and cross reference to the KML files or store all the data including the images in the Database. This will allow you to search all the images in one place. You would also be able to use indexes on the coordinates which would result in really good performance. In either case you will need to be able to read KML files. Take a look at the SharpKML project on codeplex here: http://sharpkml.codeplex.com/

    http://rbrundritt.wordpress.com

    Monday, January 6, 2014 11:42 AM
  • Thanks Ricky_Brundri for the idea.

    Yes its ESRI Shape-File which is in UTM coordinate system with WGS 1984 standard that I have read from relevant .prj file. I am facing main problem that how can i convert latitude/ longitude (reading from KML file of image) to the coordinate system of ESRI Shape-File and which API I will use to determine whether this latitude/ longitude resides inside ESRI Shape-File or not? I am developing this application in c#.

    Secondly I want to know that can I store my images (of size nearly 1 GB each) directly in database (SQL server etc.)? or will I store them in server directory, like in folder structure by year vice order? which one is better?


    Engr. Mudassar Ali Software Engineer

    Monday, January 6, 2014 4:28 PM