WFS Refresh Table statement - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Refreshes a WFS table from the server. You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

WFS Refresh Table alias 
	[ Using Map [ Window window_id ] ]
	[ Override Coordinate Order { On | Off } ]

alias is the an alias for an open registered WFS table.

window_id is the integer window identifier of a Map window.

Description

If the table was created with a row filter where the geometry of the wfs table is within the current mapper (the row filter operation will be ogc:BBOX and the value is CURRENT_MAPPER), then the only data in the table will be what is inside the mapper's bounds. Refreshing the table will use the old mapper bounds and ignore any zoom or pan changes made since unless the optional Using Map clause is used. In this case, the bounds of the current mapper will be used and any zoom and pan operations that have occurred will be taken into account.

If the window is not provided, then the topmost map window is used for the bounds. Otherwise the bounds of the map window specified by the window_id will be used.

Specifying a row filter using the mapper bounds can speed up the initial display of the WFS table, since it restricts the amount of data being transferred from the server.

The Override Coordinate Order clause is applied when the coordinate order is incorrect for only some tables retrieved from a server. This clause applies a coordinate order override at the table level (instead of at the server level). This clause can be used in conjunction with the Using Map clause. For an example of how to determine if a Web Feature Service (WFS) table has the coordinate order override set, see the examples under TableInfo() function has New Attributes.

Example

The following example refreshes the local table named watershed.

WFS Refresh Table watershed

If the WFS table was created with a row filter of the bounds of the mapper, and the mapper has been panned, then the parts of the wfs table may not be displayed. To update the table so that it displays everything in the current mapper, the following can be used.

WFS Refresh Table watershed Using Map

See Also:

Register Table statement, TableInfo() function