[postgis-users] shp2pgsql and shx

Martin Davis mbdavis at refractions.net
Mon Jan 28 15:27:11 PST 2008


Actually the SHP and DBF files are "linked" simply by the order of the 
records in the files.  So the SHX file isn't needed to read the data.  
It is only required if you want to read the data through the index.

P Kishor wrote:
> On 1/28/08, Andrea Maschio <andrea.maschio at gmail.com> wrote:
>   
>>  Hello all, is it normal that trying to convert a shape into sql with
>> shp2pgsql I have an error stating that i need the .shx index file? Is there
>> an option for importing having only the .shp file?
>>
>>  Thanks
>>
>>  Andrea Maschio
>>
>>     
>
> The .shx file is the link between the geometry (.shp) and the
> attributes (.dbf). These three are the minimum necessary components of
> an ESRI Shapefile. If your .shx/.dbf are missing then you have any
> incomplete Shapefile.
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>   

-- 
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022




More information about the postgis-users mailing list