上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 作用 在 GeoServer 中 查询、删除可以通过 url 指定工作区: http://127.0.0.1:8888/geoserver/camera_workspace/wfs 但是插入必须要通过 featureNS 指定工作区的 uri url: http://127.0.0.1:8888/g 阅读全文
posted @ 2022-07-20 11:55 develon 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 查找图层对应id <qgis> <layer-tree-group> <layer-tree-group checked="Qt::Checked" name="xxx" expanded="1"> <customproperties/> <layer-tree-layer checked="Qt: 阅读全文
posted @ 2022-07-20 11:33 develon 阅读(90) 评论(0) 推荐(0) 编辑
摘要: SQL WITH a as (SELECT id, row_number() OVER() rn FROM camera) UPDATE camera SET id = (SELECT rn FROM a WHERE camera.id = a.id); 阅读全文
posted @ 2022-07-18 18:17 develon 阅读(32) 评论(0) 推荐(0) 编辑
摘要: # 添加编译目标 首先明确一下,Rust 有个平台支持等级的概念,处于等级1的平台可以使用 `rustup default [stable-x86_64-pc-windows-msvc]` 设置为主机平台,其它等级的只能使用以下方式设置为编译目标: ``` rustup target add aar 阅读全文
posted @ 2022-07-10 23:10 develon 阅读(2956) 评论(7) 推荐(0) 编辑
摘要: 安装 https://postgis.net/install/ Ubuntu直接看这篇:https://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS24UbuntuPGSQL10Apt 开放TCP 查找pg_hba.conf文件 root@ubuntu:~ 阅读全文
posted @ 2022-04-28 17:11 develon 阅读(24) 评论(0) 推荐(0) 编辑
摘要: bincode fn bin<T>(p: &T) { bin2(p, std::mem::size_of_val(p) as i8); } fn bin2<T>(p: *const T, le: i8) { let p = p as *const u8; println!("show {:p}, c 阅读全文
posted @ 2022-03-15 17:55 develon 阅读(259) 评论(1) 推荐(0) 编辑
摘要: C/C++字符串编码 MSVC++编译器本身支持的源文件编码是本地编码、带BOM的UTF-8、UTF-16LE、UTF-16BE,不支持不带BOM的UTF-8,会被误认为BGK这样的本地编码,所以字符串会直接被复制到程序中,不进行执行字符集的转换。所以会出现下面这种情况,程序中出现了UTF-8编码的 阅读全文
posted @ 2022-03-15 11:40 develon 阅读(1561) 评论(0) 推荐(1) 编辑
摘要: 研究性代码 alert('doo'); #[no_mangle] // extern "C" fn using(f: extern "C" fn()) { extern "C" fn using(f: *const u8) { let a = (&f) as *const _ as *const f 阅读全文
posted @ 2022-03-11 18:31 develon 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: 使用 cmake 的局限性 .lib 合并问题 cmake 不会将多个 .lib 合并, 因此可能需要使用 add_custom_command 命令手动使用 MSVC 工具 lib.exe 来创建最终具有 C ABI 的 .lib 静态库文件供Rust调用. set(Target "output" 阅读全文
posted @ 2022-03-07 22:53 develon 阅读(1764) 评论(1) 推荐(0) 编辑
摘要: 重载虚函数 #include <iostream> #include <thread> using namespace std; class Animal { protected: string name; public: Animal(string name) { cout << "Animal( 阅读全文
posted @ 2022-02-15 17:19 develon 阅读(44) 评论(0) 推荐(0) 编辑
摘要: code BOOL EnumWindowsProc(HWND hwnd, LPARAM lParam) { wchar_t classname[256] = {0}; GetClassNameW(hwnd, classname, sizeof classname); if (lstrcmpW(cla 阅读全文
posted @ 2022-02-08 18:08 develon 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 导出DllMain 也可以看看: https://github.com/HackerajOfficial/injectAllTheThings/blob/master/rdll/dllmain.cpp #include <Windows.h> #include <stdio.h> #define p 阅读全文
posted @ 2022-01-26 16:02 develon 阅读(53) 评论(0) 推荐(0) 编辑
摘要: settings.json { "window.enableMenuBarMnemonics": false, "liveServer.settings.donotVerifyTags": true, "liveServer.settings.donotShowInfoMsg": true, "de 阅读全文
posted @ 2022-01-21 16:40 develon 阅读(277) 评论(0) 推荐(0) 编辑
摘要: code 由于AsyncLock无法在线程间传递,所以使用事件代替线程,模拟线程间同步: import AsyncLock from 'async-lock'; var lock = new AsyncLock(); function main() { setTimeout(() => task(1 阅读全文
posted @ 2021-12-23 17:14 develon 阅读(470) 评论(0) 推荐(0) 编辑
摘要: settings.json { "window.enableMenuBarMnemonics": false, "liveServer.settings.donotVerifyTags": true, "liveServer.settings.donotShowInfoMsg": true, "de 阅读全文
posted @ 2021-12-23 12:02 develon 阅读(468) 评论(1) 推荐(1) 编辑
摘要: Atomics Atomics 对象提供了一组静态方法对 SharedArrayBuffer 和 ArrayBuffer 对象进行原子操作。 code import { isMainThread, parentPort, Worker } from 'worker_threads'; functio 阅读全文
posted @ 2021-12-21 11:45 develon 阅读(73) 评论(1) 推荐(0) 编辑
摘要: fn http_server() { std::thread::spawn(|| { let rt = tokio::runtime::Runtime::new().unwrap(); rt.block_on(actix()); }); } #[actix_web::get("/*")] async 阅读全文
posted @ 2021-12-10 14:31 develon 阅读(119) 评论(0) 推荐(0) 编辑
摘要: ENABLE_VIRTUAL_TERMINAL_PROCESSING 当用WriteFile或WriteConsole写入时,字符被解析为VT100和类似的控制字符序列,这些字符控制光标移动、颜色/字体模式和其他操作,也可以通过现有的Console APIs执行。欲了解更多信息,请参见控制台虚拟终端 阅读全文
posted @ 2021-12-10 12:18 develon 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 什么是原生(原始)字符串? 原始字符串文字,是指没有转义字符的字符串 Kotlin 仅避免转义,变量占位符${var}仍有效 """C:\Windows""" C# @"C:\Windows" Rust r"C:\Windows" 转义\字符 r#""C:\Windows""# 使用终结符,如此可以 阅读全文
posted @ 2021-12-07 11:03 develon 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 结论 //SetWindowLong(mainWnd, GWL_EXSTYLE, GetWindowLong(mainWnd, GWL_EXSTYLE) | WS_EX_LAYERED); // 指定在组合分层窗口时要使用的透明度颜色键。窗口以这种颜色绘制的所有像素都将是透明的。 SetLayere 阅读全文
posted @ 2021-11-29 17:56 develon 阅读(286) 评论(0) 推荐(0) 编辑
摘要: code import * as express from 'express'; import * as http from 'http'; import { WebSocket, WebSocketServer } from 'ws'; const app = express(); const s 阅读全文
posted @ 2021-11-15 14:18 develon 阅读(70) 评论(0) 推荐(0) 编辑
摘要: allowSyntheticDefaultImports tsconfig.json "esModuleInterop": true, // 发出额外的JavaScript以缓解对导入CommonJS模块的支持。这使得允许SyntheticDefaultImports的类型兼容。 "allowSyn 阅读全文
posted @ 2021-10-29 16:43 develon 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 接口 interface IModal { root: HTMLElement; container: HTMLElement; content: HTMLElement; mount(root?: HTMLElement): IModal; remove(): IModal; appendCont 阅读全文
posted @ 2021-10-12 17:26 develon 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 八月>47K,九月>43K,十月>63K,十一月>98K,十二月>135K 发布时间: 下午7:37 · 2021年6月20日·Twitter Web App 第1轮狂暴牛市,开始于2011-4-30 ($3.29),结束于2011-7-6 ($14.8),历时67天,于第39天2011-6-8达到 阅读全文
posted @ 2021-10-04 19:56 develon 阅读(56) 评论(0) 推荐(0) 编辑
摘要: css-loader css-loader 是一个 webpack 模块编译器,支持 CSS Modules . module: { rules: [ { test: /\.global\.css$/, use: [$style_loader, $css_loader] }, { test: /(? 阅读全文
posted @ 2021-09-22 16:44 develon 阅读(39) 评论(0) 推荐(0) 编辑
摘要: import './index.html'; import './index.global.css'; import * as ReactDOM from 'react-dom'; import * as React from 'react'; var A: React.FC<{ v: number 阅读全文
posted @ 2021-09-17 10:40 develon 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 多边形转换 遍历点,转换后重新new一个Polygon对象 var s = [[547225.076059,3375153.970705],[547268.959189,3374903.376212],[547381.875693,3374854.140213],[547555.065457,337 阅读全文
posted @ 2021-09-07 09:40 develon 阅读(929) 评论(0) 推荐(0) 编辑
摘要: MediaSource <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" 阅读全文
posted @ 2021-09-01 10:43 develon 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 示例 backdrop-filter: blur(10px); 兼容性 Chrome: >= 76 see https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter END 阅读全文
posted @ 2021-08-31 16:34 develon 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 过滤函数参考 https://docs.geoserver.org/stable/en/user/filter/function_reference.html#filter-function-reference CQL_Filter https://docs.geoserver.org/stable 阅读全文
posted @ 2021-08-27 09:50 develon 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 请求WMS图片 /** * 请求WMS图片 * @param {string} url * @param {WMS_QUERY} query * @typedef {Object} WMS_QUERY * @property {string} LAYERS 图层名,可设置多个,用 "," 隔开 * 阅读全文
posted @ 2021-08-26 11:30 develon 阅读(184) 评论(0) 推荐(0) 编辑
摘要: //import { Projection, addProjection } from 'ol/proj' import proj4 from 'proj4'; import epsg from 'epsg'; import { register } from 'ol/proj/proj4'; fu 阅读全文
posted @ 2021-08-24 15:53 develon 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 定义类型 /** * 得到一个字段 * @typedef {Object} WFS * @property {import('ol/format/WFS')} writeGetFeature */ /** * 得到全部字段 * @typedef {import('ol/format/WFS').de 阅读全文
posted @ 2021-08-23 17:12 develon 阅读(28) 评论(0) 推荐(0) 编辑
摘要: WFS 文档 https://docs.geoserver.org/stable/en/user/services/wfs/index.html WFS 几何查询, 要素的几何字段不是 geometry , 而是 geom ! https://my.oschina.net/u/588631/blog 阅读全文
posted @ 2021-08-22 23:44 develon 阅读(79) 评论(0) 推荐(0) 编辑
摘要: code insidePolygon(testPoint, points) { const x = testPoint[0], y = testPoint[1]; let inside = false; for (let i = 0, j = points.length - 1; i < point 阅读全文
posted @ 2021-08-17 21:56 develon 阅读(30) 评论(0) 推荐(0) 编辑
摘要: TRANSPARENT 只需添加 URI 查询参数TRANSPARENT=true即可: http://localhost:8080/geoserver/ttt/wms?service=WMS&version=1.1.0&request=GetMap&layers=ttt%3Ahello_shp&b 阅读全文
posted @ 2021-08-13 16:30 develon 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 提示 您希望我们为您注册 GDAL_DATA 环境变量,以便栅格转换正常工作吗? 如果您有现有设置,这将覆盖它们。 提示 提示 阅读全文
posted @ 2021-08-11 00:40 develon 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 我的解决方案是在 Internet 属性中启用 TLS 1.2 支持。但是坚持住!你最好先更新你的 Windows,因为有一个更新默认启用对这个协议的支持。如果您出于某些原因不想更新您的 Windows,请按照以下步骤操作: 转到 Internet 属性,您可以在开始菜单、控制面板中找到它,或者点击 阅读全文
posted @ 2021-08-09 16:14 develon 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 设置cfg选项以有条件地进行编译 RUSTFLAGS='--cfg buffersize="32"' cargo build see 关于rust - 如何设置cfg选项以有条件地进行编译?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com 阅读全文
posted @ 2021-07-27 10:41 develon 阅读(117) 评论(0) 推荐(0) 编辑
摘要: use super :: *; #[cfg(test)] mod tests { // Note this useful idiom: importing names from outer (for mod tests) scope. use super::*; #[test] fn test_ad 阅读全文
posted @ 2021-07-22 15:03 develon 阅读(94) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页