`
momantang
  • 浏览: 14039 次
  • 性别: Icon_minigender_1
  • 来自: 佛山
社区版块
存档分类
最新评论
文章列表
From http://code.google.com/p/mybatis/wiki/HowToSelectMultipleParams   Solution Add the @Param("name") to your Mapper.java Change the parameterType in Mapper.xml to "map" 1. Add the @Param("name") to your Mapper.java UserMapper.java: import org . apach ...
  mybatis参考 写道 字符串替换 默认情况下,使用#{}格式的语法会导致 MyBat is 创建预处理语句属性并以它为背景设 置安全的值(比如?)。这样做很安全,很迅速也是首选做法,有时你只是想直接在 SQL 语 句中插入一个不改变的字符串。比如,像 ORDER BY,你可以这样来使用: ORDER BY ${columnName} 这里 MyBatis 不会修改或转义字符串。 重要:接受从用户输出的内容并提供给语句中不变的字符串,这样做是不安全的。这会 导致潜在的 SQL 注入攻击,因此你不应该允许用户输入这些字段,或者通常自行转义并检 查。 ...
转自(http://blog.tigerlihao.cn/2010/01/geotools-based-web-map-service.html) 暑假看OGC标准的时候做了一个简单的WMS(Web Map Service),用的是GeoTools工具包。其实做出来用处也不大,应为已经有GeoServer这个项目在做基于GeoTool的网络GIS应 用,并且已经做的比较完善了。我这个纯粹是做着玩,顺便学习Java网络编程和GeoTools的。 OGC的WMS标准我就不多说了,可以直接去看标准文档。GeoTools搞开源GIS开发的应该也不陌生,是一个用Java语言编写的遵循OG ...
 在视图中,不能使用AddGeometryColumn建立geometry字段,postgis参考中明确指出了:在sql视图和批量插入中这两种情况下,你需要把一个geometry字段注册给一个含geometry字段的表,但是此时不能通过AddGeometryColumn实现( 翻译有点烂)。原文如下: ( PostGIS 1.5.1 Manual 写道 Two of the cases where you want a geometry column to be registered in the geometry_columns table, but you can't use Add ...
 在将shapefile数据导入postgis1.5中,导入polygon时,当getNumPoints大于2000(大概,没仔细统计过),postgis中geometry显示为空值,在admin中,郁闷很久。附部分代码, source = shpDataStore.getFeatureSource("world"); FilterFactory2 filterFactory2 = CommonFactoryFinder.getFilterFactory2(null); FeatureCollection collection = source.getFea ...
以下是数据转换中存在的一些问题和解决(部分) 1.把shp文件导入postgis数据库中(非使用shp2pgsql.exe),shp中为polygon类型,转换到数据库则为multipolygin CoordinateReferenceSystem crs = CRS.decode("EPSG:4326"); SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(); SimpleFe ...
转载自http://www.cnblogs.com/flyingfish/archive/2007/10/12/922231.html     很 有用的一篇资料,经常用,经常找,不如搬过来。感谢原作者! 来 源:Classicning Daily Log http://www.classicning.com/blog/post/388.html DE-9IM:The Dimensionally Extended Nine-Intersection Model要使用DE-9IM首先要建立几何对象的interior,boundary和 ...

test

    博客分类:
  • java
test
momantang.3322.org:8080/test  经常关机的人
Global site tag (gtag.js) - Google Analytics