New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapserver 6.2.1 Linux ArcSDE 10.0 Query Problem #4700

Closed
weisbend opened this Issue Jul 11, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@weisbend

weisbend commented Jul 11, 2013

MapServer 6.2.1 compiled with GDAL 1.9 on 64 Bit Linux Red Hat 6 Enterprise displaying ArcSDE10.0 data fine but a query generates an Internal Server 500 error.

The solution was combine the code below with a patch that Steve Lime provided to the mapsde.c file.

void msSDELayerFreeItemInfo(layerObj *layer)
{

ifdef USE_SDE

msSDELayerInfo *sde = NULL;
int i;
if (!msSDELayerIsOpen(layer)) {
    msSetError( MS_SDEERR,
                "SDE layer has not been opened.",
                "msSDELayerFreeItemInfo()");
}
sde = layer->layerinfo;
if (sde != NULL && sde->basedefs) {
    SE_table_free_descriptions(sde->basedefs);
    sde->basedefs = NULL;
}
if (sde != NULL && sde->joindefs) {
    SE_table_free_descriptions(sde->joindefs);
    sde->joindefs = NULL;
}
if (layer->iteminfo) {
    :

@weisbend weisbend closed this Jul 11, 2013

@sdlime sdlime reopened this Jul 12, 2013

@ghost ghost assigned sdlime Jul 12, 2013

@sdlime

This comment has been minimized.

Show comment
Hide comment
@sdlime

sdlime Jul 12, 2013

Member

See also #4521 (the other patch Eric is referring too). --Steve

Member

sdlime commented Jul 12, 2013

See also #4521 (the other patch Eric is referring too). --Steve

tbonfort referenced this issue in tbonfort/mapserver Aug 6, 2013

refactor SDE detection in cmake files (#4512,#4700)
- add a specific plugin configuration
- checks for sde,sg and pe libs, adds pthread,socketi and dl if found
- adds #define SDE64 on 64 bit platforms
@tbonfort

This comment has been minimized.

Show comment
Hide comment
@tbonfort

tbonfort Aug 8, 2013

Member

I'm closing this one in favor of #4521 (patch migrated over there)

Member

tbonfort commented Aug 8, 2013

I'm closing this one in favor of #4521 (patch migrated over there)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment