Hi everyone!!
I have a little big problem , I have a file "File CPG (.cpg)",I try to open this in my ARCGIS10 but not let me "Invalid raster dataset. Failed to create raster layer". Any suggestions for open this file? My email is fhas33@gmail.com
Thank you
you don't even need the codepage file... you don't need to open it, you don't even have to look at it, it won't show you anything that you can't already see
the *.cpg file is a codepage file... you don't open it... arcmap uses it for language related stuff
the *.shp file is the geometry portion of a shapefile ... you don't open it either...
a shapefile needs ... as a minimum ... a *.dbf, *.shp, *.shx as a minimum, where the * is the filename. A shapefile may contain many other files like a *.prj (projection file), *.sbx, *.sbn etc etc etc.
Shapefiles are added to ArcMap using the Add data button.
If you are missing one of the three necessary files... you will have some free time on your hands, since there is nothing you can do about it, all 3 are needed as a minimum.
Hi Dan
If, I open the shapefile with Notepad this only display information of ID (column) with 3326 rows (this column only have information with a little description 1x1kmX760Y240 or 2x2kmX760Y241.. etc, etc). This description is poligonos of areas that should bring socio-economic information.
And the .cpg file in Notepad only indicates "UTF-8"
yes, I have seen this thread before in a similar incarnation, I have never gotten an answer as to the source etc. Figuring out whether it is a codepage file is as simple as opening it in notepad or notepad++ If it is a oneliner with UTF in it then it is a codepage file
Hi!! Thanks you for your answer
I have two files:
Grid_CR_suppressed_WB.cpg
Grid_CR_suppressed_WB.shp
I can see the shapefile normally...but this no has many information (only have an column "ID" with values of 2x2kmX365Y280). And the file .cpg, can't open the file ...
I think that these file are related and that the .cpg will give me more information or that this file is a satellite image.
Thanks for your help
I believe that is a component of a shapefile, so I'm surprised at the error you are receiving. By any chance do you have any other files with the same name as the .cpg one, but with different extensions (i.e. .shp, .shx,.dbf, etc)?
.cpg—An optional file that can be used to specify the code page for identifying the character set to be used.
ArcGIS Desktop Help 9.3 - Shapefile file extensions
Dan Patterson
Chris Donohue, GISP
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.