Hi

qgis_prefix = "C:/Programme/qgis" <-- Shouldnt that be programme files?

Also are you actually assigning the prefix to qgisapplication?

It will probably be helpful if you print to debug
qgisapplication.srsDbFilePath() to see if its pointing to the correct
place after calling set prefix.

Regards

Tim

2008/1/29, Tim Michelsen <[EMAIL PROTECTED]>:
> 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
>


-- 
Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user

Reply via email to