<div dir="ltr">The column names are truncated because the DBF format used by Shapefiles has a limit of 10 characters for field names [1].<div>With shp2pgsql there is an option to provide a mapping file to map to longer names for table columns. [2]</div><div><br></div><div>You should say which utility generates the warning.  Does the PostGIS data have a spatial reference defined?  What is it?</div><div> <br><div>[1] <a href="https://en.wikipedia.org/wiki/Shapefile#Data_storage">https://en.wikipedia.org/wiki/Shapefile#Data_storage</a></div></div><div>[2] <a href="https://postgis.net/docs/manual-3.0/using_postgis_dbmanagement.html#shp2pgsql_usage">https://postgis.net/docs/manual-3.0/using_postgis_dbmanagement.html#shp2pgsql_usage</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 10, 2020 at 3:02 PM Diego Vargas <<a href="mailto:diegov@karbondb.com">diegov@karbondb.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello, I am using pgsql2shp and shp2pgsql to dump and load a table with gis data, and I’m getting the following message:<br>
<br>
"WARNING: Cannot determine spatial reference (empty table or unknown spatial ref). No prj file will be generated."<br>
<br>
Now, there is no problem at the load since it seems that the the whole table is loaded without issue.<br>
Yet, I wonder if should I concern about the warning or not at all… <br>
<br>
Also, the column name gets truncated/renamed, is there a way to avoid that? <br>
<br>
Thanks in advance,<br>
Diego<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>