Ignore:
Timestamp:
Jan 18, 2012, 4:25:14 PM (8 years ago)
Author:
djay
Message:

Set supported WMS SRS informations correctly when the SRS is an EPSG code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal_ms.c

    r348 r350  
    179179      msLoadProjectionStringEPSG(&m->projection,tmpSrs);
    180180      msLoadProjectionStringEPSG(&myLayer->projection,tmpSrs);
    181       msInsertHashTable(&(m->web.metadata), "ows_srs", tmpSrs);
    182       msInsertHashTable(&(myLayer->metadata), "ows_srs", tmpSrs);
     181     
     182      char tmpSrss[256];
     183      fprintf(tmpSrss,"EPSG:4326 EPSG:900913 %s",tmpSrs);
     184
     185      msInsertHashTable(&(m->web.metadata), "ows_srs", tmpSrss);
     186      msInsertHashTable(&(myLayer->metadata), "ows_srs", tmpSrss);
     187
    183188#ifdef DEBUGMS
    184189      fprintf(stderr,"isGeo %b\n\n",OSRIsGeographic(hSRS)==TRUE);
     
    198203        fprintf(stderr,"PROJ (%s)\n",proj4Str);
    199204#endif
    200         msLoadProjectionString(&m->projection,proj4Str);         
    201         msLoadProjectionString(&myLayer->projection,proj4Str);
     205        msLoadProjectionString(&(m->projection),proj4Str);
     206        msLoadProjectionString(&(myLayer->projection),proj4Str);
    202207        if(output!=NULL){
    203208          if(OSRIsGeographic(hSRS)==TRUE)
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png