<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I actually ran into the same problem yesterday.<br>
I have not tried to find the explanation, but it seems that some of the<br>
data (Enumerate Schemas?) is cached.<br>
The data prewiew shows correct results, but an updated file<br>
does not show the correct columns in the layer editor.<br>
<br>
The fix is to just open the FeatureSource and click the "Save" button.<br>
Programatically this can be done with a GetResource() then
SetResource() call sequence.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
GordonL skrev:
<blockquote cite="mid:21063818.post@talk.nabble.com" type="cite">
  <pre wrap="">Thanks Dave,
that is true, the SHP does appear when refreshing within Studio Preview
window, but it is still not available to the code.  I wonder if there is a
SESSION based version of a Data Preview "refresh" so that I can see the new
shp file in the Alias folder...

gordon


Dave Wilson-3 wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Open your Data Connection and save it again. You could preview to ensure
it picks up the new files first. This assumes of course you have MG
Studio. Not sure if any of the other tools have the previews.

Dave

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] On Behalf Of GordonL
Sent: Wednesday, December 17, 2008 2:25 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
Subject: [mapguide-users] External SHP file Refresh?


Hi all,
I know that one has to restart the server to see the new External File
Alias, but is this true for additional files added to that folder?

How does one refresh the Data Connection to that folder to see the new
file?

My workflow:
1. User uploads a SHP/DBF/PRJ file into the Aliased folder on the server.
2. Programatically connect to the SHP Data Connection that points to that
folder.
3. Loops over the Features, harvesting coordinates for inserts into Oracle
Spatial (using Bind Variables with PHP).

Everything works if I restart the service, but I really need to upload the
SHP and then use the Data Connection to use the Feature Reader to get the
geometries.
(I know I can use the SHPLIB outside of MapGuide...but I really like
MapGuide!).

Can anyone suggest another way?  Do I really have to restart the service
to
see the new SHP files in the folder?  I thought I only had to restart for
new Aliases, not files within them..

regards,
gordon

--
View this message in context:
<a class="moz-txt-link-freetext" href="http://www.nabble.com/External-SHP-file-Refresh--tp21061784p21061784.html">http://www.nabble.com/External-SHP-file-Refresh--tp21061784p21061784.html</a>
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>