zoukankan      html  css  js  c++  java
  • arcserver开发小结(一)

    一、关于属性查询

    由于要做属性查询,又重新玩起了arcmap中的select by attribute,有很多自己当初玩弄arcmap多年还不是很清楚的东西

    1,字段名

    (1)file geodatabase, shapefile, dBase table, coverage, INFO table-- "AREA" (2)personal geodatabase--[AREA] (3)ArcSDE geodatabase--AREA (4)Excel file (.xls file) or a text file (.txt file)--'AREA'

    2,字符串

    Strings must always be enclosed within single quotes--"CITY_NAME" >= 'M'

    3,通配符(这个比较啰嗦)

    (1)file-based data--'%'means that anything is acceptable in its place; if you want to search with a wildcard that represents one character, use '_'. (2)personal geodatabases--'*' for any number of characters and '?' for one character.

    4,空值

    "POPULATION96" IS NULL "POPULATION96" IS NOT NULL

    5,数值

    You can query numbers using the equal (=), not equal (<>), greater than (>), less than (<), greater than or equal (>=), and less than or equal (<=) operators.

    貌似shp文件数值是不能用like的,这不同于传统的关系型数据库。

    但是好像我用的personal GDB是可以对数值型的字段用like查询的,不知道ESRI是基于什么想法的

    6,运算符

    Calculations can be included in queries using these arithmetic operators: +  -  *  /

    二、关于js代码

    这个东西比较变态,尽量不要写错,因为一个系统下来,你要写的js代码无穷多,最好做好注释。

    曾经我就因为一个地方的js代码写错了,导致了整个系统都不能正常运行,吓死俺了。

    三、关于缓存

    要确定要用和不需要用缓存的地方,做清除高亮显示的地方就不需要用缓存,当时我就是因为设置

    了缓存,导致老是清除之后又跑回来了,搞得我焦头烂额。。。

    四、关于数据源

    貌似每更换一次数据源(我用的是personal geodatabase)之后,是不是要重新启动电脑?而其它数据源又不需要,不知道why?

    五、关于select

    微软就是变态,不完全支持标准的w3c,select不支持innerHTML也算是一个不大不小的bug,firefox就支持,最后没办法,就把select放在了一个div标签对中,改变div的innerHTML算是解决了。其实网上还有很多提供解决的办法,不过个人比较喜欢用div

    六、关于css

    网页布局我采用的是css+div,用的是简单的float,clear,text-align,width,height,但貌似asp.net生成的网页在ie6以下是完全可以按照自己当初的设想显示的,但搬到ie7就不能了,于是就把<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">这一句删除掉了,效果出来了,至今不知道为什么

    就这么多了,再接再厉吧

  • 相关阅读:
    windows环境配置多个tomcat
    navicat 12 破解
    Eclipse创建Maven报异常:Could not get the value for parameter encoding for plugin......
    tomcat设置日志打印到文件中
    修改mysql数据库的休眠时间
    spring的bean标签的常用属性
    redis 安装与下载(windows版本)
    mysql设置远程可访问
    WPF非轮询方式更新数据库变化SqlDependency(数据库修改前台自动更新)
    WPF实战案例-在线程内同步集合数据到UI线程
  • 原文地址:https://www.cnblogs.com/jameslif/p/3929071.html
Copyright © 2011-2022 走看看