<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'Courier New', courier, monaco, monospace, sans-serif;font-size:14pt"><div style="color: black; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 14pt; ">I am trying to use geoprisma but I am just newbie with it. I'd like to know if to edit the config.xml file is enough to be able to display for example a wms layer. I've been working with OpenLayers and GeoExt and it's well doing. Wanting to graduate to geoprisma now...</div><div style="color: black; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 14pt; ">Using one of the tutorials of Mapserver, I've a Mapfile like this:</div><div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;">MAP</span></font></div><div><font
class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> NAME "wmsconfig"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> EXTENT -180 -90 180 90</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> IMAGECOLOR 255 255 255</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> OUTPUTFORMAT</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span
class="Apple-style-span" style="font-size: 19px;"> NAME "gif"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> DRIVER "GD/GIF"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> MIMETYPE "image/gif"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> IMAGEMODE PC256</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span"
style="font-size: 19px;"> EXTENSION "gif"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> TRANSPARENT ON</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> SIZE 400 300</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> STATUS ON</span></font></div><div><font class="Apple-style-span"
color="#0000ff"><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif"><span class="Apple-style-span" style="font-size: 19px;"> </span></font><span class="Apple-style-span" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 19px; ">MAXSIZE 5120</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> PROJECTION</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> "init=epsg:4326"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font
class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;">SYMBOLSET "../symbols/symboles.sym"</span></font></div><div><span class="Apple-style-span" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 19px; "><font class="Apple-style-span" color="#0000ff"> WEB</font></span></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> IMAGEPATH "c:/ms4w/Apache/htdocs/application/mapfiles"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> IMAGEURL "/application/"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier,
monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> METADATA</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> "wms_title" "WMS-service"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"><span> "wms_onlineresource" "<a target="_blank" href="http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/application/mapfiles/wmsconfig.map">http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/application/mapfiles/wmsconfig.map</a>&"</span></span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco,
monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> "wms_srs" "EPSG:4326"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size:
19px;"> LAYER</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> DATA "c:/ms4w/Apache/htdocs/application/data/bluemarble.tiff"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> NAME "bluemarble"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> PROJECTION</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> "init=epsg:4326"</span></font></div><div><font
class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> METADATA</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> "wms_title" "bluemarble"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> "wms_srs" "EPSG:4326"</span></font></div><div><font
class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> STATUS ON</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> TYPE RASTER</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> UNITS METERS</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span
class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> LAYER</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> CONNECTION "host=localhost dbname=mdb user=postgres password=success"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> CONNECTIONTYPE
POSTGIS</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> DATA "the_geom from countries using unique gid"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> NAME "countries"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> PROJECTION</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> "init=epsg:4326"</span></font></div><div><font class="Apple-style-span"
face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> METADATA</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> "wms_title" "countries"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> "wms_srs" "EPSG:4326"</span></font></div><div><font class="Apple-style-span"
face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> STATUS ON</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> TYPE POLYGON</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> UNITS METERS</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span"
style="font-size: 19px;"> CLASS</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> NAME "country"</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> STYLE</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> ANGLE 360</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> COLOR 252 199
101</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> OPACITY 80</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> SYMBOL 0</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> STYLE</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier,
monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> ANGLE 360</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> OPACITY 100</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> OUTLINECOLOR 118 73 1</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> SYMBOL 0</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span
class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif" color="#0000ff"><span class="Apple-style-span" style="font-size: 19px;"> END</span></font></div><div><span class="Apple-style-span" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 19px; "><font class="Apple-style-span" color="#0000ff">END</font></span></div></div><div><span class="Apple-style-span" style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 19px; "><br></span></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif"><span
class="Apple-style-span" style="font-size: 19px;">With OpenLayers, this mapfile runs perfectly. But when I want to intergrate it into geoprima (config.xml), it does work.</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif"><span class="Apple-style-span" style="font-size: 19px;">I think I don't understand the main concepts (resource, datastore). Please, tell me, what is the datastore, or the resource through my mapfile.</span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif"><span class="Apple-style-span" style="font-size: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif"><span class="Apple-style-span" style="font-size: 19px;">How should I complete these blocks of the config.xml file:</span></font></div><div><font class="Apple-style-span" face="'Courier
New', courier, monaco, monospace, sans-serif"><span class="Apple-style-span" style="font-size: 19px;"><div><div><font class="Apple-style-span" color="#0000ff"><wms></font></div><div><font class="Apple-style-span" color="#0000ff"> <name>..???..</name></font></div><div><font class="Apple-style-span" color="#0000ff"> <srs>*</srs></font></div><div><font class="Apple-style-span" color="#0000ff"> <format>*</format></font></div><div><font class="Apple-style-span" color="#0000ff"> <source>..(what to put here) ...</source></font></div><font class="Apple-style-span" color="#0000ff"></wms></font></div><div><font class="Apple-style-span" color="#0000ff"><datastore></font></div><div><font class="Apple-style-span" color="#0000ff"> <name> ...what to put here???..</name></font></div><div><font
class="Apple-style-span" color="#0000ff"> <params></font></div><div><font class="Apple-style-span" color="#0000ff"> <layers>..???..</layers></font></div><div><font class="Apple-style-span" color="#0000ff"> </params></font></div><div><font class="Apple-style-span" color="#0000ff"></datastore></font></div><div><div><font class="Apple-style-span" color="#0000ff"><resource></font></div><div><font class="Apple-style-span" color="#0000ff"> <name>????</name></font></div><div><font class="Apple-style-span" color="#0000ff"><br></font></div><div><font class="Apple-style-span" color="#0000ff"></resource></font></div></div><div><br></div><div>Is it enough to edit the config.xml or do I have to edit the .xslt file?</div><div>Thank you for your answer!</div></span></font></div><div><div><font class="Apple-style-span"
face="'Courier New', courier, monaco, monospace, sans-serif"><span class="Apple-style-span" style="font-size: 19px; "><br></span></font></div></div><div style="color: black; font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 14pt; position: fixed; "></div>
</div></body></html>