<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<STYLE></STYLE>
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 10pt; COLOR: #000000; PADDING-TOP: 15px; FONT-FAMILY: Arial"
bgColor=#d4d0c8 leftMargin=0 topMargin=0 CanvasTabStop="true" acc_role="text"
name="Compose message area">
<DIV>Greetings!</DIV>
<DIV> </DIV>
<DIV>I'm wondering, how does MapServer retrieve data from database?</DIV>
<DIV> </DIV>
<DIV>Say, I've got a database table with around 10 million records including
points, lines, and polygons. I am drawing a line layer in the scale of 1:100K.
In such scale, many lines won't be visible on the map, and there is a field that
controls the visible scale of objects in the database. How can I make MapServer
retrieves only necessary lines from the database instead of selecting all lines?
This shouldn't be tough if I use MapScript, but Java/MapScript keeps crashing
tomcat so have to give it up.</DIV></BODY></HTML>