Changeset 330 for trunk/zoo-project
- Timestamp:
- Sep 1, 2011, 10:59:52 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_ms.c
r300 r330 170 170 map* msSrs=NULL; 171 171 hSRS = OSRNewSpatialReference(NULL); 172 if( OSRImportFromWkt( hSRS, &pszProjection ) == CE_None ){ 172 if( pszProjection!=NULL && strlen(pszProjection)>1 && 173 OSRImportFromWkt( hSRS, &pszProjection ) == CE_None ){ 173 174 char *proj4Str=NULL; 174 175 if(OSRGetAuthorityName(hSRS,NULL)!=NULL && OSRGetAuthorityCode(hSRS,NULL)!=NULL){ … … 230 231 } 231 232 msLoadProjectionStringEPSG(&m->projection,msSrs->value); 232 msLoadProjectionStringEPSG(&myLayer ,msSrs->value);233 msLoadProjectionStringEPSG(&myLayer->projection,msSrs->value); 233 234 char tmpSrs[128]; 234 235 sprintf(tmpSrs,"%s EPSG:4326 EPSG:900913",msSrs); … … 241 242 } 242 243 msLoadProjectionStringEPSG(&m->projection,"EPSG:4326"); 243 msLoadProjectionStringEPSG(&myLayer ,"EPSG:4326");244 msLoadProjectionStringEPSG(&myLayer->projection,"EPSG:4326"); 244 245 msInsertHashTable(&(m->web.metadata),"ows_srs","EPSG:4326 EPSG:900913"); 245 246 msInsertHashTable(&(myLayer->metadata),"ows_srs","EPSG:4326 EPSG:900913"); … … 587 588 } 588 589 #ifdef DEBUGMS 589 fprintf(stderr,"Accessing the DataSource \n");590 fprintf(stderr,"Accessing the DataSource %s\n",__LINE__); 590 591 #endif 591 592
Note: See TracChangeset
for help on using the changeset viewer.