Opened 16 years ago
Closed 9 years ago
#2084 closed defect (wontfix)
Core depends on drivers (KML/GeoJson)
Reported by: | wbaer | Owned by: | warmerdam |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | WinCE Port | Version: | 1.5.0 betas/RCs |
Severity: | normal | Keywords: | WinCE |
Cc: | hobu, warmerdam |
Description
Hi,
I wanted to testbuild 1.5b2 on wince and encountered unresolved symbol linker errors due to
a new dependency of the core ogrgeometry.cpp class on KML / GeoJson drivers for the exportToKML/Json methods.
Personally I would like to see export/import/conversion methods not in the ogrgeometry class
but in an own class with an own header file. But thats maybe something for
an 1.6 release. Until then the methods in the ogrgeometry should be guarded by the appropriate ifdefs.
Attachments (1)
Change History (6)
by , 16 years ago
Attachment: | ogrgeometry.patch added |
---|
comment:1 by , 16 years ago
Cc: | added |
---|---|
Component: | OGR_SF → ConfigBuild |
Priority: | high → normal |
Status: | new → assigned |
A related error occurs if you build --without-ogr on linux.
/wrk/home/warmerda/wrk/gdal-1.5.0b2/.libs/libgdal.so: undefined reference to `AVCBinReadOpen' /wrk/home/warmerda/wrk/gdal-1.5.0b2/.libs/libgdal.so: undefined reference to `AVCBinReadClose' /wrk/home/warmerda/wrk/gdal-1.5.0b2/.libs/libgdal.so: undefined reference to `OGR_G_ExportToJson' /wrk/home/warmerda/wrk/gdal-1.5.0b2/.libs/libgdal.so: undefined reference to `OGR_G_ExportToKML' /wrk/home/warmerda/wrk/gdal-1.5.0b2/.libs/libgdal.so: undefined reference to `AVCBinReadNextTableRec'
comment:2 by , 16 years ago
Severity: | critical → normal |
---|
comment:3 by , 16 years ago
Cc: | added |
---|---|
Component: | ConfigBuild → WinCE Port |
Owner: | changed from | to
Status: | assigned → new |
I've skimmed the proposed patch, but I don't understand where the GEOJSON_ENABLED and KML_ENABLED macros are supposed to come from. In any event, the method must not be removed from the OGRGeometry API even if they are not implemented ... they should just issue a CPLError().
I have made some changes in ogrgeometry.cpp and aigdataset.cpp that fix the case where no OGR drivers are built and OGR_ENABLED is FALSE (r13334 in trunk), but this does not fix the problem on WinCE where it is common to build without most drivers. I'm turning this into a WinCE ticket, and turning over to mloskot to address as he sees fit (as long as it doesn't impact other platforms).
comment:4 by , 14 years ago
Keywords: | WinCE added |
---|---|
Milestone: | 1.5.4 |
Owner: | changed from | to
Priority: | normal → low |
The WinCE port is currently orphaned for lack of developers.
comment:5 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Unrealistic to believe that bugs in Windows CE port will be fixed.
ifdefs KML/GeoJSON export methods