Changes between Version 11 and Version 12 of CookBook pgsql2shp
- Timestamp:
- Nov 4, 2010 5:41:20 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook pgsql2shp
v11 v12 36 36 == ccm21.riversegments_bretagne == 37 37 {{{ 38 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\ Documents and Settings\cedric\Mes documents\Migrateur\eda\exports_shape\riversegments_bretagne" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 ccm21.riversegments_bretagne38 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\eda\exports_shape\riversegments_bretagne" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 ccm21.riversegments_bretagne 39 39 }}} 40 40 == ccm21.catchments_bretagne == 41 41 {{{ 42 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\ Documents and Settings\cedric\Mes documents\Migrateur\eda\exports_shape\catchments_bretagne" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 ccm21.catchments_bretagne42 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\eda\exports_shape\catchments_bretagne" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 ccm21.catchments_bretagne 43 43 }}} 44 44 == clc.clipped_bretagne1 == 45 45 {{{ 46 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\ Documents and Settings\cedric\Mes documents\Migrateur\eda\exports_shape\clipped_bretagne1" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 clc.clipped_bretagne146 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\eda\exports_shape\clipped_bretagne1" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 clc.clipped_bretagne1 47 47 }}} 48 48 == ccm21.riversegments_france == 49 49 A query selecting a reduced area 50 50 {{{ 51 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\ Documents and Settings\cedric\Mes documents\Migrateur\eda\exports_shape\riversegments_france" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 "select * from ccm21.riversegments where wso_id in (select wso_id from france.wso where area='France');"51 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\eda\exports_shape\riversegments_france" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 "select * from ccm21.riversegments where wso_id in (select wso_id from france.wso where area='France');" 52 52 }}} 53 53 == ccm21.catchments_france == 54 54 55 55 {{{ 56 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\ Documents and Settings\cedric\Mes documents\Migrateur\eda\exports_shape\catchments_france" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 "select * from ccm21.catchments where wso_id in (select wso_id from france.wso where area='France');"56 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\eda\exports_shape\catchments_france" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 "select * from ccm21.catchments where wso_id in (select wso_id from france.wso where area='France');" 57 57 }}} 58 58 == clc.surf_area_final == 59 59 {{{ 60 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\ Documents and Settings\cedric\Mes documents\Migrateur\eda\exports_shape\surf_area_final" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 select clc.surf_area_final60 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\eda\exports_shape\surf_area_final" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 select clc.surf_area_final 61 61 }}} 62 62 == percentage urban == 63 63 {{{ 64 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C: \Documents and Settings\cedric\Mes documents\Migrateur\eda\exports_shape\p_surf_urb_up" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 "select r.gid, c.gid as c_gid, CASE WHEN up_catchment_area=0 THEN 0 WHEN up_catchment_area IS NULL THEN 0 ELSE up_art_11_13/up_catchment_area END as psurf, c.the_geom from ccm21.riversegments r join ccm21.catchments c on c.wso1_id=r.wso1_id where r.wso_id in (select wso_id from france.wso where area='France');"64 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:eda\exports_shape\p_surf_urb_up" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 "select r.gid, c.gid as c_gid, CASE WHEN up_catchment_area=0 THEN 0 WHEN up_catchment_area IS NULL THEN 0 ELSE up_art_11_13/up_catchment_area END as psurf, c.the_geom from ccm21.riversegments r join ccm21.catchments c on c.wso1_id=r.wso1_id where r.wso_id in (select wso_id from france.wso where area='France');" 65 65 }}} 66 67 == roe_ccm_300 == 68 {{{ 69 C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "C:\eda\exports_shape\roe_ccm_300" -p 5433 -u postgres -P postgres -g the_geom -r -k eda2.0 "select r.gid, c.gid as c_gid, CASE WHEN up_catchment_area=0 THEN 0 WHEN up_catchment_area IS NULL THEN 0 ELSE up_art_11_13/up_catchment_area END as psurf, c.the_geom from ccm21.riversegments r join ccm21.catchments c on c.wso1_id=r.wso1_id where r.wso_id in (select wso_id from france.wso where area='France');" 70 }}} 71