Changeset 362 for trunk/zoo-project/zoo-kernel/service_internal_ms.c
- Timestamp:
- Aug 7, 2012, 12:28:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_ms.c
r361 r362 175 175 OSRImportFromWkt( hSRS, &pszProjection ) == CE_None ){ 176 176 char *proj4Str=NULL; 177 if(OSRGetAuthorityName(hSRS,NULL)!=NULL && OSRGetAuthorityCode(hSRS,NULL)!=NULL){ 177 if(OSRGetAuthorityName(hSRS,NULL)!=NULL && 178 OSRGetAuthorityCode(hSRS,NULL)!=NULL){ 178 179 char tmpSrs[20]; 179 180 sprintf(tmpSrs,"%s:%s", … … 236 237 } 237 238 if(msSrs!=NULL){ 238 if(output!=NULL){239 addToMap(output->content,"crs",msSrs->value);240 addToMap(output->content,"crs_isGeographic","true");241 }242 239 msLoadProjectionStringEPSG(&m->projection,msSrs->value); 243 240 msLoadProjectionStringEPSG(&myLayer->projection,msSrs->value); … … 247 244 msInsertHashTable(&(myLayer->metadata),"ows_srs",tmpSrs); 248 245 }else{ 249 if(output!=NULL){250 addToMap(output->content,"crs","EPSG:4326");251 addToMap(output->content,"crs_isGeographic","true");252 }253 246 msLoadProjectionStringEPSG(&m->projection,"EPSG:4326"); 254 247 msLoadProjectionStringEPSG(&myLayer->projection,"EPSG:4326"); 255 248 msInsertHashTable(&(m->web.metadata),"ows_srs","EPSG:4326 EPSG:900913"); 256 249 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"); 257 254 } 258 255 }
Note: See TracChangeset
for help on using the changeset viewer.