wiki:Export shape

back to first page..

Problem with the names too long they are renamed with only ten character!!! So maybe we could change it before saving the data inot a shape file ![[BR]]

C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\riversegments.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.riversegments
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\catchments.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.catchments
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\upstream_riversegments.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.upstream_riversegments
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\coast.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.coast
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\islands.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.islands
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\lakes.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.lakes
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\mainrivers.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.mainrivers
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\namedrivers.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.namedrivers
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\rivernodes.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.rivernodes
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\seaoutlets.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.seaoutlets
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\uga.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 uga2010.uga
C:\"Program Files"\PostgreSQL\8.4\bin\pgsql2shp -f "D:\!\exports_shape\riversegments_france.shp" -p 5432 -u postgres -P !!! -g the_geom -r -k eda2.0 ccm21.riversegments_france

Warning, field up_catchment_area renamed to up_catchme
Warning, field up_art_11_13 renamed to up_art_11_
Warning, field up_arable_21 renamed to up_arable_
Warning, field up_permcrop_22 renamed to up_permcro
Warning, field up_pasture_23 renamed to up_pasture
Warning, field up_hetagr_24 renamed to up_hetagr_
Warning, field up_forest_31 renamed to up_forest_
Warning, field up_natural_32_33 renamed to up_natural
Warning, field up_wetlands_4 renamed to up_wetland
Warning, field up_inwat_51 renamed to up_inwat_5
Warning, field up_marwat_52 renamed to up_marwat_
Warning, field catchment_area renamed to catchme_01
Warning, field artificial_surfaces_11_13 renamed to artificial
Warning, field artificial_vegetated_14 renamed to artific_01
Warning, field arable_land_21 renamed to arable_lan
Warning, field permanent_crops_22 renamed to permanent_
Warning, field pastures_23 renamed to pastures_2
Warning, field heterogeneous_agricultural_24 renamed to heterogene
Warning, field natural_32_33 renamed to natural_32
Warning, field inland_waterbodies_51 renamed to inland_wat
Warning, field marine_water_52 renamed to marine_wat
Warning, field distance_source renamed to distance_s

I propose to renamed it (if it's necessary) :

Variablerename to
catchment_areacatch_area
artificial_surfaces_11_13art_surf11_13|
artificial_vegetated_14art_veg14
arable_land_21ara_land21
permanent_crops_22perm_crop22
pastures_23past23
heterogeneous_agricultural_24het_agr24
natural_32_33nat32_33
inland_waterbodies_51inl_wat51
marine_water_52mar_wat52
distance_sourced_source
up_catchment_areau_cat_area
up_art_11_13u_art11_13
up_arable_21u_ara21
up_permcrop_22u_permcr22
up_pasture_23u_past23
up_hetagr_24u_hetagr24
up_forest_31u_fore31
up_natural_32_33u_nat32_33
up_wetlands_4u_wet4
up_inwat_51u_inwat51
up_marwat_52u_marwat52
Last modified 7 years ago Last modified on Jun 1, 2018 6:24:47 PM