AW: [Gdal-dev] ERROR import Shape to PostgreSQL

Frank Warmerdam warmerdam at pobox.com
Tue Jan 20 13:56:18 EST 2004


s duclos wrote:
> Hello Frank,
> 
> Its at:
> http://cvs.sourceforge.net/viewcvs.py/openev/
> 
> in contrib/S52
> 
> or
> http://cvs.sourceforge.net/viewcvs.py/openev/contrib/S52/
> 
> Its not stable .. but I'm getting somewhere :)

Sylvain,

ahh yes, I see.  It is actually parallel to the openev source
directory, but in the openev repository.

... 20 hours pass while Frank struggles to get s52 code going ...

OK, I have s52test sort of working on at least one test file.

A few notes:
  o I reworked the ogr load loop in s52test.c so that it doesn't
    reopen the S57 file each time.  This makes it *much* faster.

  o The S-57 reader now returns the name "S57", so I have modified
    your driver name function in the plugin accordingly.

  o I have attempted to apply all the diffs back to the master OpenEV tree
    and they seem to work.  I like the *idea* of the plugin logic for
    GvShapesLayer, but I think it is likely to be modified substantially
    before it is used beyond the s52 module.

  o I get alot of messages like the following when I tested with
    CA499995A.000:

S52GL.c:605: _win2geo(): ERROR: lat/lon 6651714.379115/-2565545.641663
GL_MODELVIEW_MATRIX:
1.000000         0.000000        0.000000        0.000000
0.000000         1.000000        0.000000        0.000000
0.000000         0.000000        1.000000        0.000000
0.000000         0.000000        0.000000        1.000000
-------------------
GL_PROJECTION_MATRIX:
0.000493         0.000000        0.000000        0.000000
0.000000         0.000493        0.000000        0.000000
0.000000         0.000000        -1.000000       0.000000
6191.274902      -3278.952637    -0.000000       1.000000

  o I had other problems and no final display when I tested with GB4X0000.000.

I made slight changes in CVS to your Makefile, but had to hack my personal
copy more substantially.

In general, after my changes you are likely to need to update to recent
OpenEV and GDAL code.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list