Ignore:
Timestamp:
Aug 7, 2012, 12:28:05 PM (12 years ago)
Author:
djay
Message:

Fix multiple values for the same identifier.

File:
1 edited

Legend:

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

    r361 r362  
    175175      OSRImportFromWkt( hSRS, &pszProjection ) == CE_None ){
    176176    char *proj4Str=NULL;
    177     if(OSRGetAuthorityName(hSRS,NULL)!=NULL && OSRGetAuthorityCode(hSRS,NULL)!=NULL){
     177    if(OSRGetAuthorityName(hSRS,NULL)!=NULL &&
     178       OSRGetAuthorityCode(hSRS,NULL)!=NULL){
    178179      char tmpSrs[20];
    179180      sprintf(tmpSrs,"%s:%s",
     
    236237    }
    237238    if(msSrs!=NULL){
    238       if(output!=NULL){
    239         addToMap(output->content,"crs",msSrs->value);
    240         addToMap(output->content,"crs_isGeographic","true");
    241       }
    242239      msLoadProjectionStringEPSG(&m->projection,msSrs->value);
    243240      msLoadProjectionStringEPSG(&myLayer->projection,msSrs->value);
     
    247244      msInsertHashTable(&(myLayer->metadata),"ows_srs",tmpSrs);
    248245    }else{
    249       if(output!=NULL){
    250         addToMap(output->content,"crs","EPSG:4326");
    251         addToMap(output->content,"crs_isGeographic","true");
    252       }
    253246      msLoadProjectionStringEPSG(&m->projection,"EPSG:4326");
    254247      msLoadProjectionStringEPSG(&myLayer->projection,"EPSG:4326");
    255248      msInsertHashTable(&(m->web.metadata),"ows_srs","EPSG:4326 EPSG:900913");
    256249      msInsertHashTable(&(myLayer->metadata),"ows_srs","EPSG:4326 EPSG:900913");
     250    }
     251    if(output!=NULL){
     252      addToMap(output->content,"crs",msSrs->value);
     253      addToMap(output->content,"crs_isGeographic","true");
    257254    }
    258255  }
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