Opened 12 years ago

Last modified 10 years ago

#4331 closed enhancement

Adding SXF file format driver — at Version 9

Reported by: bidandou Owned by: bidandou@…
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: SXF
Cc: warmerdam, dron, rutsky

Description (last modified by dron)

Hi,

Just found a time to look into this issue.

I should say that I have a code for SXF format developed by me several years ago, but it is still out of OGR tree because there were no pressing need for that driver (and the OGC SF model is not sufficient for SXF, so I developed a separate library for SXF reading and writing to be able to explore all the features of the format). Moreover, I actually have two drivers: the one based on SDK from KB Panorama, and another one with my own code only. I should note that official format spec is bad and vague and a bit of experimentation and reverse engineering is needed to properly read SXF files.

There is a separate contribution now, so I am bit late with my own stuff, but it is certainly a time to introduce this new driver. So we need to come to some solution how we will proceed. I can invest some time for this development and push my code too. Though I don't want to put down a new contributor I should note that my code supports more SXF variations and goes further. Also it is architecture and compiler independent.

Change History (20)

by bidandou, 12 years ago

Attachment: drv_sxf.html added

by bidandou, 12 years ago

Attachment: makefile.vc added

by bidandou, 12 years ago

Attachment: GNUmakefile added

comment:1 by Even Rouault, 12 years ago

Cc: warmerdam dron added

I have several high level remarks and questions :

  • For significant contributions like a new driver, we'd ask that you publicly declare in an email to gdal-dev mailing list that your contribution matches the requirements of the "Legal" paragraph of http://trac.osgeo.org/gdal/wiki/rfc3_commiters
  • Do you have rights to publish sxf.h under the X/MIT licence ? There's no copyright notice in the file, and I've got under the impression that it might come from another project. Please correct me if I'm wrong.
  • Is there a public specification of the format somewhere ?
  • You should put your full name in the copyright notice of the files, not the osgeo id.
  • The first thing to fix is the indendation of the files. Please don't use tab characters, but use instead 4 spaces for each indentation level. See http://trac.osgeo.org/gdal/wiki/rfc8_devguide
  • Remove dead code that is commented
  • Remove printf statements. You can use CPLDebug infrastructure if needed
  • Do you have links to SXF datasets that could be used to test your contribution ? Ideally we would need a freely redistribuable and small datasource so that a regression test can be written.
  • With which OS did you test your driver : Linux, Windows ?
  • Your code will only work on little-endian processors. Not a critical issue for now however...

Note : to avoid the proliferation of files when you update new revisions of your work, you can overwrite existing files attached to the ticket by checking the "Replace existing attachment of the same name" box.

CC'ing Andrey Kiselev who has contributed stuff in GDAL for Panorama SRS

Merci de votre contribution !

comment:2 by bidandou, 12 years ago

Description: modified (diff)

comment:3 by bidandou, 12 years ago

Description: modified (diff)

comment:4 by bidandou, 12 years ago

Description: modified (diff)

comment:5 by bidandou, 12 years ago

Description: modified (diff)

comment:6 by bidandou, 12 years ago

SXF datasets that could be used to test the contribution : some SXF files exist on thos URL :
http://gistoolkit.ru/download/

the most interesting thing is the availability of a free downladable softwares in the above site alowing the cration and the export of SXF files in different configurations to do tests.

see: http://www.gisinfo.net/download/download.htm

for the OS I used to test my driver : Windows XP SP3 and Windows 7?

I'm Using Visual Studio 2008 Expess Edition for the developpement. dont try to compile with gcc.

I submit the files above just to know how does mechanism of contriburions work. My work is not finished.

Thank you for your interest, soon I'll correct my work and I'll submit more comprehensible code.

by bidandou, 12 years ago

Attachment: ogr_sxf.h added

by bidandou, 12 years ago

Attachment: ogrsxfdatasource.cpp added

by bidandou, 12 years ago

Attachment: ogrsxfdriver.cpp added

by bidandou, 12 years ago

Attachment: org_sxf_defs.h added

by bidandou, 12 years ago

Attachment: sxf.h added

by bidandou, 12 years ago

Attachment: sxf.2.h added

by bidandou, 12 years ago

Attachment: systypes.h added

by bidandou, 12 years ago

Attachment: ogrsxflayer.cpp added

comment:7 by Even Rouault, 12 years ago

Ali, (sorry if I misidentified your first name ?)

Thanks for the updates.

comment:8 by bidandou, 12 years ago

Yes you are right, the ogr_sxf_defs.h comes from the spec of the SXF file format transtated to english.

you can find an SXF file in :

http://gistoolkit.ru/download/examplemap.zip

For now I consider that my work is not ready enough, there still some importants thinks to do, so I'd like to have time to do that.

Thank you for you assistance

comment:9 by dron, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.