<div>David,</div>
<div>   thanku,it works.</div>
<div>---zhang</div>
<div>Date: Tue, 01 Jul 2008 09:30:42 +0200<br>From: Jean David TECHER <<a href="mailto:david.techer@davidgis.fr">david.techer@davidgis.fr</a>><br>Subject: Re: [postgis-users] shp2pgsql using problems<br>To: <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
Message-ID: <<a href="mailto:20080701093042.y199j0pwo0oosc4w@192.168.2.5">20080701093042.y199j0pwo0oosc4w@192.168.2.5</a>><br>Content-Type: text/plain;       charset=ISO-8859-1;     DelSp="Yes";<br>       format="flowed"</div>

<p>Hi Zhang,</p>
<p>There is no problem.</p>
<p>This is the ewkb format used by postgis in order to storing geo data.</p>
<p>Use the astext() function if you want to see you data in human<br>readable format (wkt)</p>
<p>select astext(the_geom) from pt_gsqy_point;</p>
<p>it should be good! :)</p>
<p> </p>
<p>Quoting zhengyong zhang <<a href="mailto:shieldly@gmail.com">shieldly@gmail.com</a>>:</p>
<p>> when I'm trying to use shp2pgsql to convert a shp file into postgresql.<br>> as I do it using the following commands:<br>> 1, shp2pgsql pt_gsqy_point.shp pt_gsqy_point postgis> pt_gsqy_point.sql<br>> 2, psql -d postgis -f pt_gsqy_point.sql >log.txt<br>
><br>> after I run *the first command*, and I got sql script file:<br>> the content is :<br>> BEGIN;<br>> CREATE TABLE "pt_gsqy_point" (gid serial PRIMARY KEY,<br>> "name" varchar(40));<br>
> SELECT AddGeometryColumn('','pt_gsqy_point','the_geom','-1','POINT',2);<br>> INSERT INTO "pt_gsqy_point" ("name",the_geom) VALUES ('the first location<br>
> name','010100000085EC6F9141E2C5C0E829EE9F0AC98240');<br>> INSERT INTO "pt_gsqy_point" ("name",the_geom) VALUES ('the second location<br>> name','0101000000CCFE346E05B4C5C0A9A946F9A30D8640');<br>
> .....<br>> ...<br>> etc...<br>><br>> and after *I run the second command*, in the pgadmin, I got to see the<br>> values<br>> in it. but the geometry values can not be used directly, as the values are<br>
> those : '010100000085EC6F9141E2C5C0E829EE9F0AC98240',<br>> anyone in the mailist have used the shp2pgsql.exe???<br>> how to deal with it, so that I can use those point coordinates to do some<br>> operations, such as select a point using the point coordinate to get the<br>
> name of it.<br>> thankyou.<br>><br>> yours, shieldy<br>></p>
<p> </p>
<p>===================<br>Jean David TECHER<br>06 60 46 85 05<br>04 99 77 17 87<br>===================</p>