[mapserver-users] problems and questions in java mapscript
orkun
temiz at deprem.gov.tr
Sat Jul 12 06:17:45 PDT 2008
I couldn't manage with java mapscript queryByPoint.
I followed this procedure.
int q= jeolayer.queryByPoint(map1, pt1, mapscript.MS_SINGLE , 0);
int numResults =jeolayer.getNumResults();
if (numResults != 0) {
jeolayer.open();
for (int j = 0; j< numResults; j++) {
resultCacheMemberObj resultMember = jeolayer.getResult(j);
shapeObj shape = new shapeObj(jeolayer.getType().swigValue()); #
# Is .swigValue() correct ?
int qshape=jeolayer.getShape(shape,resultMember.getTileindex(),
resultMember.getShapeindex()); ### it doesn't return to
shapeObj ?
if (shape != null) {
mresult.put(j, shape); #mresult is my Map type object
... # how can I get values of db column . Whatever I tried I got
weird results
}
}
jeolayer.close();
I would appreciate if anyone made suggestions
regards
--
Ahmet Temiz
Jeo. Müh.
Afet İşleri Gen. Md.lüğü
Deprem Ar. D.
Ahmet Temiz
Geo. Eng.
General Dir. of
Disaster Affairs
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MapServer-users
mailing list