+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+--
+-- $Id$
+--
+-- PostGIS - Spatial Types for PostgreSQL
+-- http://postgis.refractions.net
+-- Copyright 2001-2003 Refractions Research Inc.
+--
+-- This is free software; you can redistribute and/or modify it under
+-- the terms of hte GNU General Public Licence. See the COPYING file.
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+-- $Log$
+-- Revision 1.2 2003/07/01 18:30:55 pramsey
+-- Added CVS revision headers.
+--
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+
--
-- GiST support functions
--
+
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+--
+-- $Id$
+--
+-- PostGIS - Spatial Types for PostgreSQL
+-- http://postgis.refractions.net
+-- Copyright 2001-2003 Refractions Research Inc.
+--
+-- This is free software; you can redistribute and/or modify it under
+-- the terms of hte GNU General Public Licence. See the COPYING file.
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+-- $Log$
+-- Revision 1.2 2003/07/01 18:30:55 pramsey
+-- Added CVS revision headers.
+--
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
BEGIN TRANSACTION;
+
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+--
+-- $Id$
+--
+-- PostGIS - Spatial Types for PostgreSQL
+-- http://postgis.refractions.net
+-- Copyright 2001-2003 Refractions Research Inc.
+--
+-- This is free software; you can redistribute and/or modify it under
+-- the terms of hte GNU General Public Licence. See the COPYING file.
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+-- $Log$
+-- Revision 1.3 2003/07/01 18:30:55 pramsey
+-- Added CVS revision headers.
+--
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
-- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-- UPDATE_GEOMETRY_STATS()
+
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+--
+-- $Id$
+--
+-- PostGIS - Spatial Types for PostgreSQL
+-- http://postgis.refractions.net
+-- Copyright 2001-2003 Refractions Research Inc.
+--
+-- This is free software; you can redistribute and/or modify it under
+-- the terms of hte GNU General Public Licence. See the COPYING file.
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+-- $Log$
+-- Revision 1.2 2003/07/01 18:30:55 pramsey
+-- Added CVS revision headers.
+--
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
BEGIN TRANSACTION;
-- You might have to define the PL/PgSQL language usually done with the
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+--
+-- $Id$
+--
+-- PostGIS - Spatial Types for PostgreSQL
+-- http://postgis.refractions.net
+-- Copyright 2001-2003 Refractions Research Inc.
+--
+-- This is free software; you can redistribute and/or modify it under
+-- the terms of hte GNU General Public Licence. See the COPYING file.
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+-- $Log$
+-- Revision 1.4 2003/07/01 18:30:55 pramsey
+-- Added CVS revision headers.
+--
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+
--
-- 7.3 explicit casting definitions
--
+
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+--
+-- $Id$
+--
+-- PostGIS - Spatial Types for PostgreSQL
+-- http://postgis.refractions.net
+-- Copyright 2001-2003 Refractions Research Inc.
+--
+-- This is free software; you can redistribute and/or modify it under
+-- the terms of hte GNU General Public Licence. See the COPYING file.
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+-- $Log$
+-- Revision 1.2 2003/07/01 18:30:55 pramsey
+-- Added CVS revision headers.
+--
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
BEGIN TRANSACTION;
-- You might have to define the PL/PgSQL language usually done with the
+
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+--
+-- $Id$
+--
+-- PostGIS - Spatial Types for PostgreSQL
+-- http://postgis.refractions.net
+-- Copyright 2001-2003 Refractions Research Inc.
+--
+-- This is free software; you can redistribute and/or modify it under
+-- the terms of hte GNU General Public Licence. See the COPYING file.
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+-- $Log$
+-- Revision 1.11 2003/07/01 18:30:55 pramsey
+-- Added CVS revision headers.
+--
+--
+-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
-- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-- SPATIAL_REF_SYS
-/*
+/**********************************************************************
* $Id$
*
- * Author: Jeff Lounsbury, jeffloun@refractions.net
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
*
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
* $Log$
+ * Revision 1.19 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
* Revision 1.18 2003/02/04 21:39:20 pramsey
* Added CVS substitution strings for logging.
*
- *
- */
+ **********************************************************************/
#include <stdio.h>
#include <stdlib.h>
}
}
+
-/*
+/**********************************************************************
* $Id$
*
* Author: Jeff Lounsbury, jeffloun@refractions.net
*
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
* $Log$
+ * Revision 1.36 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
* Revision 1.35 2003/06/18 16:30:56 pramsey
* It seems that invalid geometries where in the shapefile (as far as shapelib
* let shp2pgsql know). LINEZ objects with less then 2 vertices. I've
* Revision 1.28 2003/02/04 21:39:20 pramsey
* Added CVS substitution strings for logging.
*
- *
+ **********************************************************************
* Using shapelib 1.2.8, this program reads in shape files and
* processes it's contents into a Insert statements which can be
* easily piped into a database frontend.
* Specifically designed to insert type 'geometry' (a custom
* written PostgreSQL type) for the shape files and PostgreSQL
* standard types for all attributes of the entity.
- */
+ **********************************************************************/
#include "shapefil.h"
#include <stdio.h>
}//end main()
+
-/*
- * Geometric types for Postgis
+
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.30 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
*
- * point3d, line3d, and polygon3d are the base types.
*
+ **********************************************************************/
+
+/*
* Everything is stored in a geometry3d, which is just a conglomeration
* of the base types (and a little bit of other info).
*/
-
-
#include "utils/geo_decls.h"
+
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.6 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
+
#include "postgres.h"
-/*************************************************************
- postGIS - geometric types for postgres
-
- This software is copyrighted (2001).
-
- This is free software; you can redistribute it and/or modify
- it under the GNU General Public Licence. See the file "COPYING".
-
- More Info? See the documentation, join the mailing list
- (postgis@yahoogroups.com), or see the web page
- (http://postgis.refractions.net).
-
- *************************************************************/
-
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.9 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
#include "postgres.h"
-/******************************************************
- postGIS - geometric types for postgres
-
- This software is copyrighted (2001).
-
- This is free software; you can redistribute it and/or modify
- it under the GNU General Public Licence. See the file "COPYING".
-
- More Info? See the documentation, join the mailing list
- (postgis@yahoogroups.com), or see the web page
- (http://postgis.refractions.net).
-
- GiST indexing functions for pgsql >= 7.2
- ******************************************************/
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.5 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
- //If you're modifiying this file you should read the postgis mail list as it has
+ // If you're modifiying this file you should read the postgis mail list as it has
// detailed descriptions of whats happening here and why.
#include "postgres.h"
-/*************************************************************
- postGIS - geometric types for postgres
-
- This software is copyrighted (2001).
-
- This is free software; you can redistribute it and/or modify
- it under the GNU General Public Licence. See the file "COPYING".
-
- More Info? See the documentation, join the mailing list
- (postgis@yahoogroups.com), or see the web page
- (http://postgis.refractions.net).
-
- *************************************************************/
-
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.22 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
#include "postgres.h"
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.4 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
-//--------------------------------------------------------------------------
-//
#ifdef USE_GEOS
#include "postgres.h"
-/******************************************************
- postGIS - geometric types for postgres
- This software is copyrighted (2001).
-
- This is free software; you can redistribute it and/or modify
- it under the GNU General Public Licence. See the file "COPYING".
-
- More Info? See the documentation, join the mailing list
- (postgis@yahoogroups.com), or see the web page
- (http://postgis.refractions.net).
-
- GiST indexing functions fo pgsql < 7.2
- ******************************************************/
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.2 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
#include "postgres.h"
-/******************************************************
- postGIS - geometric types for postgres
- This software is copyrighted (2001).
-
- This is free software; you can redistribute it and/or modify
- it under the GNU General Public Licence. See the file "COPYING".
-
- More Info? See the documentation, join the mailing list
- (postgis@yahoogroups.com), or see the web page
- (http://postgis.refractions.net).
-
- GiST indexing functions for pgsql >= 7.2
- ******************************************************/
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.5 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************
+ *
+ * GiST indexing functions for pgsql >= 7.2
+ *
+ **********************************************************************/
#include "postgres.h"
-/*************************************************************
- postGIS - geometric types for postgres
-
- This software is copyrighted (2001).
-
- This is free software; you can redistribute it and/or modify
- it under the GNU General Public Licence. See the file "COPYING".
-
- More Info? See the documentation, join the mailing list
- (postgis@yahoogroups.com), or see the web page
- (http://postgis.refractions.net).
-
- *************************************************************/
-
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.21 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
#include "postgres.h"
-/*************************************************************
- postGIS - geometric types for postgres
- This software is copyrighted (2001).
-
- This is free software; you can redistribute it and/or modify
- it under the GNU General Public Licence. See the file "COPYING".
-
- More Info? See the documentation, join the mailing list
- (postgis@yahoogroups.com), or see the web page
- (http://postgis.refractions.net).
-
- *************************************************************/
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.9 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
#include "postgres.h"
+
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.7 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
+
#include "postgres.h"
+
+/**********************************************************************
+ * $Id$
+ *
+ * PostGIS - Spatial Types for PostgreSQL
+ * http://postgis.refractions.net
+ * Copyright 2001-2003 Refractions Research Inc.
+ *
+ * This is free software; you can redistribute and/or modify it under
+ * the terms of hte GNU General Public Licence. See the COPYING file.
+ *
+ **********************************************************************
+ * $Log$
+ * Revision 1.13 2003/07/01 18:30:55 pramsey
+ * Added CVS revision headers.
+ *
+ *
+ **********************************************************************/
+
#include "postgres.h"