Changeset 6650 for geovis/trunk/RendererCmd.cpp
- Timestamp:
- Dec 1, 2016, 1:20:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/RendererCmd.cpp
r6649 r6650 3086 3086 } 3087 3087 char *profile = Tcl_GetString(objv[6]); 3088 if (strcmp(profile, "global-geodetic") == 0 || 3089 strcmp(profile, "geodetic") == 0 || 3090 strcmp(profile, "epsg:4326") == 0 || 3091 strcmp(profile, "wgs84") == 0 || 3092 strcmp(profile, "plate-carre") == 0 || 3093 strcmp(profile, "plate-carree") == 0) { 3094 // As of osgearth 2.7, these are not permitted as map profiles. 3095 // Use epsg:32663 instead 3096 Tcl_AppendResult(interp, "Invalid profile: can't use geographic coordinate system as projection. Consider using an equirectangular projection (epsg:32663) instead.", (char*)NULL); 3097 return TCL_ERROR; 3098 } 3088 3099 if (objc > 7) { 3089 3100 if (objc < 11) { … … 3108 3119 bounds[3] < -90. || bounds[3] > 90.) { 3109 3120 Tcl_AppendResult(interp, "invalid bounds", (char*)NULL); 3110 return TCL_ERROR;3111 }3112 // Note: plate-carre generates same SRS as others, but with3113 // _is_plate_carre flag set3114 // In map profile, _is_plate_carre is forced on for3115 // geographic+projected SRS3116 if (strcmp(profile, "geodetic") == 0 ||3117 strcmp(profile, "epsg:4326") == 0 ||3118 strcmp(profile, "wgs84") == 0 ||3119 strcmp(profile, "plate-carre") == 0 ||3120 strcmp(profile, "plate-carree") == 0) {3121 // As of osgearth 2.7, these are not permitted as map profiles.3122 // Use epsg:32663 instead3123 Tcl_AppendResult(interp, "Invalid profile: can't use geographic coordinate system as projection. Consider using an equirectangular projection (epsg:32663) instead.", (char*)NULL);3124 3121 return TCL_ERROR; 3125 3122 }
Note: See TracChangeset
for help on using the changeset viewer.