Timmie,

 

Sounds like you actually have it running... I will explain the issue you are
seeing.

 

In the OpenOceanMap project we are using a custom projection that is not
found in the srs.db for QGIS.  The base layers that are in the Data
directory are in that projection and by default it is trying to load those
layers.  Since that projection is not in your QGIS installations srs.db it
is not able to find the srs.  To fix that you can do any of the following:

 

1) Check out a new version from svn as I just updated the code to NOT load
any layers by default.  What it does now is tries to grab the srs info from
the first layer loaded (raster or vector) and assign the map srs to that.
So with an "svn up" you should be good to go.

 

2) You could take the srs.db file that is in the Data directory and copy
that over the srs.db file that is in your QGIS installation.  Make a backup
of that file first!  This will give you the srs definition for the base
layers that ship with OpenOceanMap and you can then use them.  The srs.db in
the Data dir is just the base QGIS srs.db + one new projection.

 

3) You can play with a new project I am starting to develop called QGISLite.
It can be found here:

 

http://trac.reprojected.com/qgislite/

 

The intention of this project is to create a very minimal GIS app based on
the python bindings to QGIS that stand alone apps can be built against.  I
just started that one, but look forward to adding to it.  The SVN for that
one is:

 

http://svn.reprojected.com/qgislite/trunk/

 

The exciting thing about the QGISLite is that in testing without any effort
to minimize the distribution yet, I was able to make a test INNO installer
for windows that is about 16 meg:

 

http://trac.reprojected.com/qgislite/downloads/QGISLite_0.01_011508_setup.ex
e

 

Hope this helps and glad to see people finding OpenOceanMap useful!

 

Aaron

 

 

+----------------------------------------+

 Aaron Racicot - GIS Programmer   

 [EMAIL PROTECTED]          

+----------------------------------------+

 z - p u l l e y                        

 pobox 1614

 langley wa 98260

 www.reprojected.com                       

+----------------------------------------+

> -----Original Message-----

> From: [EMAIL PROTECTED] [mailto:qgis-user-

> [EMAIL PROTECTED] On Behalf Of Tim Michelsen

> Sent: Tuesday, January 29, 2008 4:54 AM

> To: [email protected]

> Subject: [Qgis-user] error using the stand alone app Oceanmap

> 

> Hello,

> I am trying to develop a stand alone application based on the QGIS Python

> bindings.

> For testing I run the OpenOceanMap

> (http://trac.infodrizzle.org/openocean).

> 

> When trying to load layers be it a vector or a raster layer I get the

> follwing

> error:

> 

> "

> QgsSpatialRefSys::getRecord failed :  select * from tbl_srs where

> parameters='+proj=aea +lat_1=34 +lat_2=40.5

> +lat_0=0 +lon_0=-120 +x_0=0 +y_0=-4000000 +ellps=GRS80

> +datum=NAD83 +units=m +no_defs'

> "

> 

> What is causeing this problem?

> 

> I set the following paths in the openoceanmap.py:

> 

> #!/C:/python

> ...

> qgis_prefix = "C:/Programme/qgis"

> ...

> 

> Kind regards,

> Timmie

> 

> 

> _______________________________________________

> Qgis-user mailing list

> [email protected]

> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user

Reply via email to