Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#963 closed defect (fixed)

Get SHP provider functional on 64-bit Linux

Reported by: jng Owned by: jng
Priority: major Milestone:
Component: SHP Provider Version:
Severity: 3 Keywords:
Cc: External ID:

Description (last modified by jng)

The reason the SHP provider still does not work on 64-bit Linux is due to the ShpSpatialIndex component.

A cursory glance at the code reveals heavy usage of long and unsigned long data types which are different sizes on 64-bit Linux.

Also the test suite in general is in a state of disrepair with many false positives test failures on both Windows and Linux.

Change History (3)

comment:1 by jng, 6 years ago

Description: modified (diff)
Summary: ShpSpatialIndex not functional on 64-bit LinuxGet SHP provider functional on 64-bit Linux

comment:2 by jng, 6 years ago

Resolution: fixed
Status: assignedclosed

In 7811:

Merged revision(s) 7790-7810 from sandbox/linux64shp:

Fix up the SHP spatial index for 64-bit Linux. This makes the provider finally functional for FDO client applications like MapGuide on 64-bit Linux.

Fixes #963

comment:3 by jng, 6 years ago

In 7814:

Merged revision(s) 7811-7813 from trunk:
Merged revision(s) 7790-7810 from sandbox/linux64shp:

Fix up the SHP spatial index for 64-bit Linux. This makes the provider finally functional for FDO client applications like MapGuide on 64-bit Linux.

Fixes #963
........
Merged revision(s) 7766-7811 from sandbox/kgoralinux:

Get King Oracle provider working on Linux. The root cause of why this provider did not work on Linux in the past is due to:

a) wchar_t strings being garbage on Linux due to difference in platform size. Where wchar_t* strings are passed to OCI on Windows, they are now #ifdef'd (D_OCI_WIDE_STRINGS) on Linux to pass char* strings instead
b) Possibly the use of OCINlsEnvCreate and OCILogon

  • I could not find a suitable OCI reference code on Linux that demonstrated the use of these 2 APIs.
  • So taking a page out of known OCI reference code (the OGR OCI driver), the provider uses OCIEnvCreate and OCIServerAttach on Linux for OCI setup and connection.

This is backed by a new reproducible test suite that runs a basic set of provider test against an Oracle XE 11g instance. An 11g docker environment is provided to easily spin up such an environment.

Fixes #649, #562
........
Need to add TestCommon and ExpressionEngine projects to KingOracle_vs15.sln to ensure KgOraUnitTest will build in the correct configuration
........

Note: See TracTickets for help on using tickets.