Does MapWinGIS support Oracle Spatial format

Jan 4, 2012 at 2:15 PM

Hello,

I have put some shapefile into oracle. Now i have to read it out and display in the panel , Could I do it with MapWinGis?

I use OGR library to operate shapefile, as MapWinGis support GDAL, could it supports OGR?

Thanks and regards,

Coordinator
Jan 5, 2012 at 9:15 AM

Internally MapWinGIS uses GDAL and OGR.

MapWinGIS is not  yet mapping all methods of GDAL/OGR.
We'll try to do so for v4.9: http://mapwindow4.codeplex.com/discussions/278205

But GDAL/ORG isn't compiled using the Oracle libraries. So for now it is not possible to read from an Oracle database using MapWinGIS+OGR.
You can however use Oracle's own library/API to retrieve the data from the database. Next you only need to create a temporarily shapefile that holds the data and you can open it in the map.

--
Paul

Jan 5, 2012 at 2:21 PM

Thank you very much for this reply.

I have compiled GDAL/OGR using the Oracle libraries. If I use this gdal.lib in the mapwingis compile project, will ocx support Oracle?

If I use OGR to read the data from Oracle db, could I change the OGR structure( DataSource, Layer, or Feature) to ShapeFile structure?

If I can change it, I think I can open it in the map. hehe~~

Regards.

Coordinator
Jan 6, 2012 at 11:46 AM

OGR/GDAL methods will only work if the ocx has methods that map those methods.
At this moment the ocx doesn't map any new methods.

If you have compiled OGR with Oracle you can also use ogr2ogr.exe to connect your database and extract a shapefile.
This shapefile can be used in the ocx.
Using the Process class of .NET you can call ogr2ogr.exe from your application.

--
Paul

Mar 1, 2016 at 11:24 AM
Dear All,

Does map window now support OGR Oracle spatial ?

if yes how can I use it .

Thanks in advance.