[mapguide-users] External SHP file Refresh?
Zac Spitzer
zac.spitzer at gmail.com
Thu Dec 18 03:28:46 EST 2008
just be aware that will clear any associated tile caches which
reference that feature source!
On Thu, Dec 18, 2008 at 7:19 PM, Kenneth Skovhede, GEOGRAF A/S
<ks at geograf.dk> wrote:
> I actually ran into the same problem yesterday.
> I have not tried to find the explanation, but it seems that some of the
> data (Enumerate Schemas?) is cached.
> The data prewiew shows correct results, but an updated file
> does not show the correct columns in the layer editor.
>
> The fix is to just open the FeatureSource and click the "Save" button.
> Programatically this can be done with a GetResource() then SetResource()
> call sequence.
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
> GordonL skrev:
>
> 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:
>
>
> 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: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of GordonL
> Sent: Wednesday, December 17, 2008 2:25 PM
> To: mapguide-users at lists.osgeo.org
> 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:
> http://www.nabble.com/External-SHP-file-Refresh--tp21061784p21061784.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
More information about the mapguide-users
mailing list