<br><div><span class="gmail_quote">On 10/16/07, <b class="gmail_sendername">Mark Leslie</b> &lt;<a href="mailto:mark.leslie@lisasoft.com">mark.leslie@lisasoft.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Don Drake wrote:<br>&gt; Here&#39;s my scenario, I have shapefiles containing polygons of zipcodes.&nbsp;&nbsp;I<br>&gt; have a table in Postgres that has a zip code with data that I would like to<br>&gt; thematically map.&nbsp;&nbsp;I am not interested in loading the zipcodes into PostGIS
<br>&gt; if I don&#39;t have to.&nbsp;&nbsp;I am using PHP/Mapscript, and I was wondering if there<br>&gt; is a way to merge the Postgres data with the shapefile layer on a map?<br>&gt;<br>&gt; Thanks.<br>&gt;<br>&gt; -Don<br>&gt;<br>
<br>That depends what you mean by &#39;merge&#39;.&nbsp;&nbsp;If you want to display both in<br>the same layer, you can come close by defining two layers in the same<br>group (see the GROUP item at<br><a href="http://mapserver.gis.umn.edu/docs/reference/mapfile/layer">
http://mapserver.gis.umn.edu/docs/reference/mapfile/layer</a>).&nbsp;&nbsp;If you want<br>to join the two sources together, Jeff has a nice example in the<br>reference docs<br>(<a href="http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-2-join-from-shp-file-to-postgresql-table">
http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-2-join-from-shp-file-to-postgresql-table</a>).<br>If I&#39;ve missed the point entirely, then I&#39;ll need some more details<br>about what you&#39;re trying to end up with.
<br><br>Mark Leslie<br>LISAsoft<br><a href="http://www.lisasoft.com">www.lisasoft.com</a><br></blockquote></div><br>Very interesting.&nbsp; It looks like the second link is close to what I need, the first is not what I need.<br>
<br>The thing is that the postgres table the data is coming out of does not have a geometry column, the key is the zipcode.&nbsp; Furthermore, it will probably come from a query, or a view.&nbsp; I tried using a view with no geometry and could not get it to work.&nbsp; The geometry will come from a shapefile.
<br><br>If this would work, could I color code using an expression?&nbsp; Is there a Mapscript alternative?<br><br>Thanks.<br><br>-Don<br><br>