|
From: <and...@us...> - 2012-10-24 21:20:05
|
Revision: 12252
http://plplot.svn.sourceforge.net/plplot/?rev=12252&view=rev
Author: andrewross
Date: 2012-10-24 21:19:59 +0000 (Wed, 24 Oct 2012)
Log Message:
-----------
Only compile in support for the old plplot map file format is PL_DEPRECATED is set.
Modified Paths:
--------------
trunk/src/plmap.c
Modified: trunk/src/plmap.c
===================================================================
--- trunk/src/plmap.c 2012-10-24 14:51:30 UTC (rev 12251)
+++ trunk/src/plmap.c 2012-10-24 21:19:59 UTC (rev 12252)
@@ -111,6 +111,7 @@
plmap( void ( *mapform )( PLINT, PLFLT *, PLFLT * ), const char *type,
PLFLT minlong, PLFLT maxlong, PLFLT minlat, PLFLT maxlat )
{
+#if defined (HAVE_SHAPELIB) || defined (PL_DEPRECATED)
int i, j;
char *filename;
char *warning;
@@ -345,6 +346,9 @@
free( bufy );
free( filename );
free( warning );
+#else // defined (HAVE_SHAPELIB) || defined (PL_DEPRECATED)
+ plwarn( "Use of the old plplot map file format is deprecated.\nIt is recommended that the shapelib library is used to provide map support.\n" );
+#endif // defined (HAVE_SHAPELIB) || defined (PL_DEPRECATED)
}
//--------------------------------------------------------------------------
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|