Hi,
Is it possilbe to load shapefiles from a database? I have Access db where the shapefiles are stored as an OLE Object.
Is there a way to read them and display them in your component?
Thanks,
Jakub
Hi,
Is it possilbe to load shapefiles from a database? I have Access db where the shapefiles are stored as an OLE Object.
Is there a way to read them and display them in your component?
Thanks,
Jakub
Jakub,
We didn't support MS Access inherently but you can implement one yourself easily. Here is a Webinar about how to extend Map Suite with the customized OleDbPointFeatureSource / OleDbPointFeatureLayer, have a look and I think you will get the idea how to create your own feature source for your case.
gis.thinkgeo.com/Support/Dis...fault.aspx
Thanks,
Ben
Hi Ben,
thanks for the example. That is a good start, but in the example only points (markers with lat and lon info) are loaded from database and displayed over a shapefile loaded from the file system.
I need to know if I can load actual shapefiles (and all associated info) from the database. I have a Access.mdb that was created and used by Arcview. Features (shapefiles) are stored as OLE objects in a table in the database. I need to be able to attach to that table, query it for a certain shape (polygon) and display it on the map, same as if I loaded the shapefile from the file system.
Can that be done?
Thanks,
Jakub
Jakub,
Yes I think this can be done. Our ShapeFileFeatureLayer can accept streams which is what you will get out of access. In the Access database how does it store the Shx file and the Dbf file, does it use a separate column for these? Does it just store the .Shp file? While I think this can be done it is a more advances scenario than we typically solve here one the forum, that doesn’t mean we can’t solve it though. I suggest that you e-mail support@thinkgeo.com and we can have someone contact you about this. Is there any chance you can also e-mail or FTP them a copy of a sample Access database you have?
David