Advertisement
Guest User

Untitled

a guest
Feb 12th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. #mod_wsgi
  2.  
  3. WSGIScriptAlias / WSGI "C: OSGeo4W apache htdocs qgis-web-client-master WSGI" WSGIScriptAliasMatch ^ / WSGI / ([^ /] +) "C: OSGeo4W apache htdocs qgis -Web-client-master $ 1.wsgi"
  4.  
  5. LoadModule wsgi_module modules/mod_wsgi.so
  6.  
  7. Alias /wsgi/ C:OSGeo4W/wsgi/ #**NOTE
  8. #This will allow to change the path of the wsgi folder (which contains your wsgi/python scripts) to a shorter one -> /wsgi/
  9.  
  10. <Directory "C:OSGeo4W/wsgi/">
  11. SetHandler wsgi-script
  12. Options ExecCGI
  13. Order allow,deny
  14. Allow from all
  15. </Directory>
  16.  
  17. DB_CONN_STRING="host='hostname' dbname='DATABASE_NAME' port='5432' user='myuser' password='mypassword'"
  18.  
  19. searchtables[sheme_name.table_name,...];
  20.  
  21. CREATE OR REPLACE VIEW view_name AS
  22. SELECT concat ('this column represents a display text') AS displaytext,
  23. concat('this column represents search category (best if same as searchstring)') AS search_category,
  24. concat('this column represents our search string') AS searchstring,
  25. concat('this column im not really sure what it does') AS showlayer,
  26. wkb_geomtry AS the_geom --this field is the most important one since it will zoom to this geometry
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement