- Timestamp:
- Oct 11, 2018, 4:30:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_ms.c
r880 r886 542 542 int imyIndex=getPublishedId(output); 543 543 msMapSetExtent(m,minX,minY,maxX,maxY); 544 m->maxsize=4096;544 //m->maxsize=4096; 545 545 #ifdef DEBUGMS 546 546 fprintf(stderr,"Extent %.15f %.15f %.15f %.15f\n",minX,minY,maxX,maxY); … … 951 951 */ 952 952 GDALAllRegister(); 953 hDataset = GDALOpen( pszFilename, GA_Update ); 953 hDataset = GDALOpen( pszFilename, GA_Update ); /*GA_ReadOnly*/ 954 954 if( hDataset == NULL ){ 955 955 #ifdef DEBUGMS … … 1039 1039 setSrsInformations(output,m,myLayer,pszProjection); 1040 1040 }else{ 1041 fprintf(stderr,"NO SRS FOUND ! %s\n",GDALGetProjectionRef( hDataset )); 1041 fprintf(stderr,"NO SRS FOUND %s %d ! %s\n",__FILE__,__LINE__,GDALGetProjectionRef( hDataset )); 1042 fflush(stderr); 1042 1043 CPLErr sp=GDALSetProjection( hDataset , "+init=epsg:4326" ); 1043 1044 if(sp!=CE_None){ 1044 fprintf(stderr,"NO SRS FOUND! %s\n",CPLGetLastErrorMsg());1045 fprintf(stderr,"NO SRS SET ! %s\n",CPLGetLastErrorMsg()); 1045 1046 } 1046 1047 } … … 1133 1134 1134 1135 CPLErrorReset(); 1135 GDALComputeRasterStatistics( hBand, TRUE, &pdfMin, &pdfMax, &pdfMean, &pdfStdDev, NULL,NULL); 1136 GDALGetRasterStatistics( hBand, TRUE, TRUE, &pdfMin, &pdfMax, &pdfMean, &pdfStdDev); 1137 //GDALComputeRasterStatistics( hBand, TRUE, &pdfMin, &pdfMax, &pdfMean, &pdfStdDev, NULL,NULL); 1136 1138 char tmpN[21]; 1137 1139 sprintf(tmpN,"Band%d",iBand+1); … … 1143 1145 sprintf(tmpI,"%s_interval",tmpN); 1144 1146 msInsertHashTable(&(myLayer->metadata), tmpI, tmpMm); 1145 if(pdfMax>255)1146 1147 //if(pdfMax>255) 1148 msLayerAddProcessing(myLayer,tmpMp); 1147 1149 map* test=getMap(output->content,"msClassify"); 1148 1150 if(test!=NULL && strncasecmp(test->value,"true",4)==0){ … … 1498 1500 fprintf(myMaps,"%s\n",mapfile); 1499 1501 fclose(myMaps); 1500 } 1502 } 1503 free(mapName); 1504 free(tmp); 1501 1505 }
Note: See TracChangeset
for help on using the changeset viewer.