Opened 17 years ago

Last modified 17 years ago

#1479 closed defect (duplicate)

Asking a layer for a layerbyname does not return null if the layer is not present.

Reported by: sleary@… Owned by: warmerdam
Priority: highest Milestone:
Component: OGR_SF Version: unspecified
Severity: minor Keywords:
Cc:

Description

(With 2 open datasources)

The Layer->GetLayerByName(string name) function does not return null if a layer is not present in the datasource. Instead it returns an empty layer.

(This is from gdal-cvs-2006.12.08)

Change History (3)

comment:1 by sleary@…, 17 years ago

Recommend you check the C++ version works as expected 1st.

The cPtr == IntPtr.Zero comparison generated by SWIG would appear not to be functioning if the C++ version works.

(note the datasource i was querying was a postGIS layer)

comment:2 by sleary@…, 17 years ago

Bug is in ogrpgdatasource not c#

comment:3 by szekerest, 17 years ago


*** This bug has been marked as a duplicate of #1480 ***
Note: See TracTickets for help on using tickets.