Changeset 330 for trunk


Ignore:
Timestamp:
Sep 1, 2011, 10:59:52 AM (13 years ago)
Author:
djay
Message:

Fix typo.

File:
1 edited

Legend:

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

    r300 r330  
    170170  map* msSrs=NULL;
    171171  hSRS = OSRNewSpatialReference(NULL);
    172   if( OSRImportFromWkt( hSRS, &pszProjection ) == CE_None ){
     172  if( pszProjection!=NULL && strlen(pszProjection)>1 &&
     173      OSRImportFromWkt( hSRS, &pszProjection ) == CE_None ){
    173174    char *proj4Str=NULL;
    174175    if(OSRGetAuthorityName(hSRS,NULL)!=NULL && OSRGetAuthorityCode(hSRS,NULL)!=NULL){
     
    230231      }
    231232      msLoadProjectionStringEPSG(&m->projection,msSrs->value);
    232       msLoadProjectionStringEPSG(&myLayer,msSrs->value);
     233      msLoadProjectionStringEPSG(&myLayer->projection,msSrs->value);
    233234      char tmpSrs[128];
    234235      sprintf(tmpSrs,"%s EPSG:4326 EPSG:900913",msSrs);
     
    241242      }
    242243      msLoadProjectionStringEPSG(&m->projection,"EPSG:4326");
    243       msLoadProjectionStringEPSG(&myLayer,"EPSG:4326");
     244      msLoadProjectionStringEPSG(&myLayer->projection,"EPSG:4326");
    244245      msInsertHashTable(&(m->web.metadata),"ows_srs","EPSG:4326 EPSG:900913");
    245246      msInsertHashTable(&(myLayer->metadata),"ows_srs","EPSG:4326 EPSG:900913");
     
    587588  }
    588589#ifdef DEBUGMS
    589   fprintf(stderr,"Accessing the DataSource \n");
     590  fprintf(stderr,"Accessing the DataSource %s\n",__LINE__);
    590591#endif
    591592
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